This project uses the openai-agents package to build and manage AI agents with OpenAI's APIs. The environment is managed using conda, ensuring reproducibility and easy setup for all contributors.
More info at: DeepWiki
openai-agents is a Python package that provides tools and abstractions for building, running, and managing AI agents powered by OpenAI models. It simplifies agent orchestration, prompt management, and integration with OpenAI's API.
git clone git@github.com:cannarocks/openai-sdk-example.git
cd openai-sdk-exampleDownload and install Miniconda or Anaconda.
Create the conda environment from the provided environment.yml file:
conda env create -f environment.ymlconda activate openai-sdk-agentAll dependencies, including openai-agents, will be installed automatically when you create the environment. If you add new dependencies, update the environment.yml and let your collaborators know.
You can now use the openai-agents package in your Python scripts:
import openai_agents
# Your code hereIf you install new packages, export the updated environment:
conda env export --no-builds > environment.yml- Always activate the conda environment before working.
- Update
environment.ymlif you add or remove dependencies. - Open issues or pull requests for improvements or bug fixes.
Happy collaborating!