AgentResponse
Assistant result with consumer-rendered content, streaming state, sources, actions, and follow-up prompts.
Render and sanitize response content in application code. Place sources beside the claims they support. Label every supplied source, action, and follow-up collection. Announce completed semantic chunks, not each streamed token.
Interactive example
Loading interactive example
API
| Member | Type | Kind | Required | Default |
|---|---|---|---|---|
actions | readonly AgentResponseAction[] | undefined | prop | No | [] |
actionsLabel | string | prop | No | undefined |
announcement | string | prop | No | undefined |
content | Snippet | snippet | Yes | |
followups | readonly AgentResponseFollowup[] | undefined | prop | No | [] |
followupsLabel | string | prop | No | undefined |
label | string | prop | Yes | |
onSourcesOpenChange | (open: boolean) => void | callback | No | undefined |
responseId | string | prop | Yes | |
sources | readonly AgentSource[] | undefined | prop | No | [] |
sourcesLabel | string | prop | No | undefined |
sourcesOpen | boolean | binding | No | false |
streaming | boolean | prop | No | false |
streamingLabel | string | prop | No | undefined |
Examples
Source
Loading source