
# ResponseEvent

Agent response event. Text deltas/finals and tool-call batches are both represented as response events; tool-call batches have `data.tools`.

## Properties

Name | Type
------------ | -------------
`id` | string
`type` | string
`timestamp` | number
`taskId` | string
`conversationId` | string
`data` | [ResponseEventData](ResponseEventData.md)

## Example

```typescript
import type { ResponseEvent } from '@asciidev/box-sdk'

// TODO: Update the object below with actual values
const example = {
  "id": null,
  "type": null,
  "timestamp": null,
  "taskId": null,
  "conversationId": null,
  "data": null,
} satisfies ResponseEvent

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as ResponseEvent
console.log(exampleParsed)
```

[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
