View the source code for this module on GitHub: https://github.com/mcp-use/mcp-use/blob/main/libraries/python/mcp_use/server/context.py
Context
method sample
Request a client-side LLM sampling invocation.ParametersReturnsThe sampling prompt(s). Accepts a simple string, a singleMaximum number of tokens to request from the client LLM.Optional system instructions to prepend.Whether to ask the client to include MCP context.Optional sampling temperature.Optional stop sequences to pass to the client LLM.Optional provider-specific metadata.Optional hint about the desired model.WhenTruereturns the fullCreateMessageResultinstead of
Signature