OpenAI Agents SDK

Paket

Lightweight Python and TypeScript framework for multi-agent workflows

Fiyat
Free, open source
Erişim
OpenAI or other LLM API key

Hakkında

The OpenAI Agents SDK is an MIT-licensed library for agents with tools, handoffs, guardrails, sessions and built-in tracing. It defaults to OpenAI models but also works with 100+ other LLMs. You pay only for model usage.

Neler yapabilirsin

  • Build an agent that calls your Python functions and MCP tools
  • Hand off conversations between specialised agents with guardrails
  • Build realtime voice agents on OpenAI speech models

Başlarken

  1. Install the package with pip install openai-agents
  2. Set OPENAI_API_KEY in your environment

Örnek kod

from agents import Agent, Runner

agent = Agent(name="Assistant", instructions="You are a helpful assistant")
result = Runner.run_sync(agent, "Write a haiku about recursion in programming.")
print(result.final_output)

Ayrıntılar

Barındırma
Kendi bilgisayarında
Kullanılabildiği yerler
Tüm dünya
Resmi SDK'lar
Python, JavaScript/TypeScript
MCP sunucusu
Yok
Entegrasyonlar
OpenAI

Görevler

Alternatifler

Aynı görevler için başka araçlar.

Son kontrol: .