An open API service indexing awesome lists of open source software.

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

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?"
}
```