Skip to main content
POST
/
v1
/
reasoning-agent
/
completions
{}

Headers

x-api-key
string
required

Body

application/json
agent_name
string | null
default:reasoning-agent
description
string | null
default:A reasoning agent that can answer questions and help with tasks.
model_name
string | null
default:claude-sonnet-4-20250514
system_prompt
string | null
max_loops
integer | null
default:1
swarm_type
enum<string> | null
default:reasoning_duo
Available options:
reasoning-duo,
self-consistency,
ire,
reasoning-agent,
consistency-agent,
ire-agent,
ReflexionAgent,
GKPAgent,
AgentJudge
num_samples
integer | null
default:1
output_type
enum<string> | null
default:dict-all-except-first
Available options:
list,
dict,
dictionary,
string,
str,
final,
last,
json,
all,
yaml,
xml,
dict-all-except-first,
str-all-except-first,
basemodel,
dict-final,
list-final
num_knowledge_items
integer | null
memory_capacity
integer | null
task
string | null

Response