Skip to content

Conversation

sumitaryal
Copy link
Contributor

This pull request adds a new example for using the Agents SDK in Python, demonstrating how to set up an agent with local OpenAI-compatible models, integrate a filesystem MCP server, and stream agent responses. It also introduces a minimal pyproject.toml for dependency management.

New Python example demonstrating Agents SDK usage:

  • Added example.py showing how to:
    • Set up an asynchronous OpenAI client for local model serving.
    • Connect to a filesystem MCP server via npx.
    • Define and use a custom weather tool with the agent.
    • Stream and handle agent events, including tool calls and message outputs.

Project setup:

  • Added pyproject.toml specifying the minimum Python version and the openai-agents dependency for easy installation and reproducibility.

@dkundel-openai dkundel-openai merged commit 08e50b3 into openai:main Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants