Skip to content

AskContext

autogen.beta.mcp.executor.AskContext dataclass #

AskContext(variables=None, tools=None, prompt=None)

Per-request context to inject into the agent turn — the kwargs :meth:Agent.ask accepts. Returned by a context_provider; any field left None is omitted, so the default is the stateless behavior.

variables class-attribute instance-attribute #

variables = None

tools class-attribute instance-attribute #

tools = None

prompt class-attribute instance-attribute #

prompt = None