Cookbook: Using Moss with OpenAI Agents SDK
Add a cookbook example showing how to wire Moss into an OpenAI Agents SDK agent as a retrieval tool.
What the example should cover
- Load a Moss index locally (
load_index) before querying, to demonstrate sub-10ms retrieval
- Wrap
client.query() as a function tool using the OpenAI Agents SDK @function_tool decorator
- Show optional metadata filter support passed as tool arguments
- End-to-end agent run: agent receives a question, calls the Moss tool, returns a grounded answer
Acceptance Criteria
Cookbook: Using Moss with OpenAI Agents SDK
Add a cookbook example showing how to wire Moss into an OpenAI Agents SDK agent as a retrieval tool.
What the example should cover
load_index) before querying, to demonstrate sub-10ms retrievalclient.query()as a function tool using the OpenAI Agents SDK@function_tooldecoratorAcceptance Criteria
examples/cookbook/openai-agents/load_index()before the agent runs (not silently skipped)query,top_k, and optionalfilterarguments