AgUiReaderOptions
Defined in: react/src/ag-ui/types.ts:181
Extends
Section titled “Extends”Properties
Section titled “Properties”binding
Section titled “binding”binding: AgUiBinding;Defined in: react/src/ag-ui/types.ts:173
Inherited from
Section titled “Inherited from”error?
Section titled “error?”optional error?: (failure) => DisplayError;Defined in: react/src/ag-ui/types.ts:189
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
failure |
{ code?: string; message: string; } |
failure.code? |
string |
failure.message |
string |
Returns
Section titled “Returns”label?
Section titled “label?”optional label?: (toolName) => string;Defined in: react/src/ag-ui/types.ts:182
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
toolName |
string |
Returns
Section titled “Returns”string
limits?
Section titled “limits?”optional limits?: AgUiLimits;Defined in: react/src/ag-ui/types.ts:174
Inherited from
Section titled “Inherited from”project?
Section titled “project?”optional project?: (event) => | readonly ChatEvent[] | undefined;Defined in: react/src/ag-ui/types.ts:195
Explicit safe projection for activity, reasoning, RAW and non-providerkit CUSTOM events.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
event |
AgUiEvent |
Returns
Section titled “Returns”| readonly ChatEvent[]
| undefined
projectPart?
Section titled “projectPart?”optional projectPart?: (part) => | DisplayPart | undefined;Defined in: react/src/ag-ui/types.ts:178
Explicitly project opaque fields (data, input, forms and edits). Return a rebuilt part, not a spread of raw data. Without this callback these fields stay hidden. Functions, capabilities and reserved credential fields are refused even here.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
part |
DisplayPart |
Returns
Section titled “Returns”| DisplayPart
| undefined
Inherited from
Section titled “Inherited from”request?
Section titled “request?”optional request?: (interrupt) => | RequestPart | undefined;Defined in: react/src/ag-ui/types.ts:188
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
interrupt |
AgUiInterrupt |
Returns
Section titled “Returns”| RequestPart
| undefined
state?
Section titled “state?”optional state?: (snapshot) => readonly DisplayPart[];Defined in: react/src/ag-ui/types.ts:193
No shared state is retained without this callback. Patch failures leave it unchanged.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
snapshot |
unknown |
Returns
Section titled “Returns”readonly DisplayPart[]
optional text?: (source) => boolean;Defined in: react/src/ag-ui/types.ts:191
Native child text is private unless this host callback selects it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
source |
{ messageId: string; role: string; subagentRunId?: string; } |
source.messageId |
string |
source.role |
string |
source.subagentRunId? |
string |
Returns
Section titled “Returns”boolean
optional tool?: (result) => | Pick<ToolPart, "data" | "summary" | "detail"> | undefined;Defined in: react/src/ag-ui/types.ts:183
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
result |
{ content: string; name: string; toolCallId: string; } |
result.content |
string |
result.name |
string |
result.toolCallId |
string |
Returns
Section titled “Returns”| Pick<ToolPart, "data" | "summary" | "detail">
| undefined