Agent basic settings

The agent has the following main basic settings:

Model: The AI model that performs the text completion task. Here, reference a model from Models.

Response format: You can set up agents to either produce text or structured output. Select text when you want to create a chat client, or implement some other kind of text completion task.

Use json_schema when you want to produce structured output.

Example Structured Output

You are building a customer service form, that has one main text area field. You do not want to burden the user with filling out structured data about their request, but you need to route the request to the right person.

To implement this, you decide to leverage an agent that shall output one of the categories of departmentA | departmentB | departmentC | unclear. To make sure, that the output confirms to this schema, you select json_schema as the response format. Furthermore, you define the JSON schema in the tab AdvancedModel & Other ConfigurationsJSON Schema.