View the source code for this module on GitHub: https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/agents/base.py
Base agent interface for MCP tools API Documentation
from mcp_use.agents.base import BaseAgent
method initializedef initialize():
method stepReturnsThe query to run.Optional list of previous steps.
SignatureThe result of the step.
def step(query: str, previous_steps: list[dict[str, typing.Any]] | None = None):
Was this page helpful?