- Agent Server OpenAI Protocol: AG-Kit agents can expose OpenAI-compatible endpoints
- Client OpenAI Protocol: AG-Kit can consume OpenAI-compatible APIs from other services
AG-Kit OpenAI Support
Agent Server OpenAI Protocol
AG-Kit Server provides OpenAI-compatible endpoints at/chat/completions (or /v1/aibot/bots/{AgentId}/chat/completions in cloud environments):
Client OpenAI Protocol
AG-Kit can also consume OpenAI-compatible APIs from other services:Client Integration
OpenAI SDK Integration
Use AG-Kit agents with the official OpenAI SDK:Function Calling Support
AG-Kit agents support OpenAI function calling:Smart Hardware Integration
IoT Device Integration
Connect smart hardware devices to AG-Kit agents:Key Features
- Chat Completions: Full support for chat completion endpoints
- Function Calling: Complete function calling and tool use support
- Streaming: Real-time streaming responses
- Error Handling: OpenAI-compatible error codes and messages
- Authentication: API key authentication support
Compatibility Matrix
| Feature | OpenAI API | AG-Kit Support | Status |
|---|---|---|---|
| Chat Completions | v1 | Full support | Stable |
| Function Calling | v1 | Full support | Stable |
| Streaming | v1 | Full support | Stable |
| Error Handling | v1 | Full support | Stable |
| Authentication | v1 | Full support | Stable |