Skip to main content
Any tool-calling runtime can use Caesar with two functions: web_search and web_fetch. The same tool names appear in the MCP server and AI SDK tools.

TypeScript dispatcher

Adapt the schema wrapper (input_schema, parameters, or similar) to your model runtime, but keep the inner field names snake_case. Those names match the API and reduce translation errors.

Python dispatcher

Feedback

Tool-calling loops often stop after the model produces an answer. If you can observe which result the agent used, close the loop:

For agents

  • Use response_format: "compact" for initial searches. Request standard or full only when you need passages or capture provenance.
  • Pass doc_id from web_search into web_fetch. Prefer it over reusing the URL when you have it.
  • Preserve search_id until the task is done so feedback can be attributed to the right ranked list.
  • Do not expose API keys as tool arguments. Configure CAESAR_API_KEY in the runtime environment.