# Object Response

The Object response is a configurable JSON response for your agent. This ensures a predictable response format from your agent.&#x20;

Functions are not available on Object Responses as they are returned on every api call.&#x20;

You can configure your object response parameters on your agent configuration form as seen below.

<figure><img src="https://4270573731-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPD5pBqGI9shvhtXlZ9t2%2Fuploads%2F3k1AWyABKV6mTcZqZgMT%2FScreenshot%202024-10-06%20at%2010.23.39%E2%80%AFPM.png?alt=media&#x26;token=c49a199f-1b3c-4600-b940-f66823bf3d44" alt=""><figcaption></figcaption></figure>

Each parameter data type can be String, Number or Boolean. A parameter name  and parameter description is required. For example, an agent meant to classify movies in genre would have a configuration like so: &#x20;

Name: Class\
Description: The genre of the movie \
Type: String&#x20;

Below is a sample response from a diagnosis fraud analysis agent

```json
{
    "message": {
        "id": "duH7f5mOItDIlpYRbMPDE",
        "role": "assistant",
        "content": {
            "fraud": false,
            "comment": "The diagnosis of Pediculus Capitis (head lice) is a valid medical condition. The details provided do not indicate any fraudulent activity."
        }
    }
}
```

\
The parameters from the above response are fraud (string) and comment (string).

{% hint style="info" %}
Object responses do not allow functions and hence non-long running.  Agent responses are returned on every requests. Your configured parameters are returned as the "content" response object.
{% endhint %}
