https://github.com/buildfrom/openai-agents
Repository built using the OpenAI Agents SDK and Ollama models, compatible with the OpenAI API
https://github.com/buildfrom/openai-agents
backend gemma3 local-first ollama openai-agents-sdk
Last synced: 6 months ago
JSON representation
Repository built using the OpenAI Agents SDK and Ollama models, compatible with the OpenAI API
- Host: GitHub
- URL: https://github.com/buildfrom/openai-agents
- Owner: BuildFrom
- Created: 2025-04-05T08:24:42.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-04-05T14:25:27.000Z (6 months ago)
- Last Synced: 2025-04-05T15:26:54.048Z (6 months ago)
- Topics: backend, gemma3, local-first, ollama, openai-agents-sdk
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## POST /api/v1/agents/command
## Note:
To enable, function_tool, tool, and handoffs, you need to set official OPENAI_API_KEY### Description:
This endpoint allows you to interact with the assistant agent to process a command by providing a prompt. The assistant will generate a response based on the provided prompt.### Request Body:
A JSON object containing the prompt for the agent. The prompt should describe the task or query you want the assistant to process.#### Example Request:
```json
{
"prompt": "Create a breakfast plan for a single day"
}
```#### Example Response:
```json
{
"output": "Here’s a simple breakfast plan for a single day: 1. Scrambled eggs with toast, 2. Fresh fruit salad, 3. Coffee or juice."
}
```## POST http://0.0.0.0:9000/api/v1/agents/functional
#### Example Request:
```json
{
"prompt": "What's the weather in Tokyo?"
}
```#### Example Response:
```json
{
"output": "# The weather in Tokyo is sunny."
}
```## POST http://0.0.0.0:9000/api/v1/agents/handoffs
#### Example Request:
```json
{
"prompt": "Hola, ¿cómo estás?"
}
```#### Example Response:
```json
{
"output": "¡Hola! Estoy bien, gracias por preguntar. ¿Y tú, cómo estás?"
}
```