Documentation Index
Fetch the complete documentation index at: https://docs.mcp-use.com/llms.txt
Use this file to discover all available pages before exploring further.
log_agent_step
function log_agent_step
Display or log an agent step based on pretty_print flag.from mcp_use.agents.display import log_agent_step
Parameters
Signaturedef log_agent_step(item, pretty_print = True):
log_agent_stream
function log_agent_stream
Handle streaming events from astream_events.from mcp_use.agents.display import log_agent_stream
Parameters
Event dictionary from LangChain’s astream_events
If True, use rich formatting. If False, do nothing.
Signaturedef log_agent_stream(chunk, pretty_print = True):