contextSize property

WebSearchContextSize? contextSize
final

Search context size for providers that support it

  • OpenAI: Maps to web_search_options.search_context_size
  • Perplexity: Maps to search context size parameter
  • OpenRouter: Not directly supported
  • xAI/Anthropic: Not applicable

Implementation

final WebSearchContextSize? contextSize;