View the source code for this module on GitHub: https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/agents/display.py
Display API Documentation
function log_agent_streamfrom mcp_use.agents.display import log_agent_stream
SignatureEvent dictionary from LangChain’s astream_eventsIf True, use rich formatting. If False, do nothing.
def log_agent_stream(chunk, pretty_print = True):
Was this page helpful?