create-agent
Creates and configures an AI agent with a required name, system prompt, and model, plus optional tools, style instructions, chat history access, and default media models.
Instructions
Create an AI agent. Mirrors syntx.agents.create. Posts multipart/form-data to POST /api/v1/agents/create. name, system_prompt and model_name are required (the web client enforces the same). enabled_tools / default_models are objects and travel as JSON strings inside the multipart body.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Agent display name. | |
| model_name | Yes | Model the agent runs on, e.g. "gpt-4.1". | |
| description | No | Optional short description. | |
| style_prompt | No | Optional response-style instructions. | |
| enabled_tools | No | Tool toggles, e.g. `{"web_search": true, "sora_image": true, "suno_audio": true, "veo3_video": true, "code_interpreter": true}`. Unknown tool names are rejected server-side. | |
| system_prompt | Yes | System instructions that drive the agent. | |
| default_models | No | Default model per media scope, e.g. `{"image": "gpt-image-1"}`. | |
| use_chat_history | No | Whether the agent may read the conversation history. |