openai-agents-go  by nlpodyssey

Go framework for advanced multi-agent AI workflows

Created 10 months ago
252 stars

Top 99.6% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

This Go framework offers a lightweight yet powerful solution for building multi-agent workflows, enabling developers to orchestrate complex LLM interactions. It targets Go developers seeking to integrate sophisticated AI agent capabilities, providing a provider-agnostic approach for flexibility.

How It Works

The core concepts are Agents (LLMs with instructions, tools, guardrails, handoffs), Handoffs (control transfer), and Guardrails (validation). This Go port of the OpenAI Agents Python SDK aims for API parity and supports various LLM providers via integrations like LiteLLM. The agent loop processes LLM responses, tool calls, and handoffs until a final output is produced, facilitating deterministic flows and complex agent coordination.

Quick Start & Requirements

Install via go get github.com/nlpodyssey/openai-agents-go. Requires OPENAI_API_KEY environment variable and a Go environment. The examples/ directory showcases diverse use cases.

Highlighted Details

  • Agent Patterns: Demonstrates routing, guardrails, parallelization, and complex bots (e.g., research assistants).
  • Tool Integration: Supports built-in tools (code interpreter, file search, web search) and custom function tools.
  • Model Context Protocol (MCP): Includes examples for local MCP server/client setups.
  • Voice Capabilities: Offers static and streaming voice response examples.
  • Provider Agnosticism: Facilitates integration with custom model providers via LiteLLM.

Maintenance & Community

Initiated by Matteo Grella and Marco Nicola, the project welcomes community contributions. It builds upon the OpenAI Agents Python SDK and leverages the OpenAI Go client library and Anthropic's MCP Go SDK.

Licensing & Compatibility

A Go port of the OpenAI Agents Python SDK; the specific license is referenced from the Python SDK's license. Its provider-agnostic design enhances LLM service compatibility.

Limitations & Caveats

Requires external LLM API access and keys. Maturity is tied to the original Python SDK and community development. Advanced features like MCP may require separate service setup.

Health Check
Last Commit

4 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
10 stars in the last 30 days

Explore Similar Projects

Starred by Andrew Ng Andrew Ng(Founder of DeepLearning.AI; Cofounder of Coursera; Professor at Stanford), Jack Lukic Jack Lukic(Author of Semantic UI), and
5 more.

ag2 by ag2ai

0.6%
4k
AgentOS for building AI agents and facilitating multi-agent cooperation
Created 1 year ago
Updated 11 hours ago
Starred by Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
7 more.

SuperAGI by TransformerOptimus

0.2%
17k
Open-source framework for autonomous AI agent development
Created 2 years ago
Updated 1 year ago
Feedback? Help us improve.