Run multi-agent
import requests
import json

url = 'https://api.simplex.sh/multi_agent'
headers = {
    'X-API-Key': 'your_api_key_here'
}

sub_agents = [
    {
        'name': 'login_agent',
        'prompt': 'Handle login tasks',
        'tool_schema': {
            'description': 'Login handler',
            'input_schema': {}
        }
    }
]

data = {
    'session_id': 'your_session_id',
    'task_manager_prompt': 'Coordinate the agents to complete the task',
    'sub_agents_config': json.dumps(sub_agents),
    'initial_message': 'Start the task'  # Optional
}

response = requests.post(url, headers=headers, data=data)
print(response.json())
{
  "succeeded": true,
  "result": {},
  "error": "<string>"
}
Runs multiple AI agents to collaborate on a task.

Authorizations

X-API-Key
string
header
required

Simplex API Key

Body

multipart/form-data

Response

Multi-agent response

The response is of type object.