create_agent
Create a new agent for optimization. IMPORTANT: You must specify the LLM model this agent uses. Different models support different parameters. Opus 5 uses reasoningEffort and rejects temperature/topP; other models may support sampling controls. Always ask the user which model they use if it is not specified.
NOTE: After creating an agent, upload run transcripts with create_run before running optimization.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the agent | |
| tags | No | Tags for organization (e.g., ['customer-support', 'onboarding']) | |
| topP | No | Nucleus sampling parameter (0-1). Alternative to temperature for controlling randomness. | |
| content | Yes | The agent's system prompt content | |
| llmModel | Yes | REQUIRED: The LLM model this agent uses (e.g., 'gpt-4o', 'claude-sonnet-5-5', 'o1', 'gemini-3.8-flash'). This determines which parameters are relevant. | |
| maxTokens | No | Maximum tokens in response. Important for cost control and response length. | |
| objective | No | Business objective for this agent | |
| customerId | No | (Converra superadmin only) Target customer ID to act on behalf of | |
| constraints | No | What must NOT change during optimization - required structural elements, output formats, or sections that would break downstream integrations (e.g., 'Must return JSON with fields: name, score, summary') | |
| description | No | Optional description of what the agent does | |
| temperature | No | Temperature setting (0-2 for GPT, 0-1 for Claude). Controls randomness. Not applicable for reasoning models (o1/o3) - use reasoningEffort instead. | |
| technicalNotes | No | Engineering rationale explaining why the agent's prompt is structured this way (e.g., 'Uses XML tags because downstream parser expects structured output') | |
| presencePenalty | No | Encourages new topics (-2 to 2). GPT models only. | |
| reasoningEffort | No | For reasoning models: controls reasoning depth. Opus 5 supports low, medium, high, xhigh, and max. | |
| frequencyPenalty | No | Reduces repetition of token sequences (-2 to 2). GPT models only. | |
| customEvaluations | No | Agent-level custom evaluation criteria (overrides org-level). Max 5. |