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
Agents
Display
Display API Documentation
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Display API Documentation
function log_agent_streamfrom mcp_use.agents.display import log_agent_stream
SignaturerequiredEvent dictionary from LangChain’s astream_eventsdefault:"True"If True, use rich formatting. If False, do nothing.
def log_agent_stream(chunk, pretty_print = True):
Was this page helpful?