Skip to main content

Interface: ChatResult<T>

Defined in: packages/client/src/types.ts:369

Type Parameters​

T​

T = unknown

Properties​

message​

message: Message

Defined in: packages/client/src/types.ts:376

The assistant message, with its tool calls.


object?​

optional object?: T

Defined in: packages/client/src/types.ts:372

Parsed and validated structured output, when a schema was given.


outcome?​

optional outcome?: unknown

Defined in: packages/client/src/types.ts:374

Value passed to endTurn() by a tool, if one ended the turn.


provider​

provider: ProviderInfo

Defined in: packages/client/src/types.ts:377


text​

text: string

Defined in: packages/client/src/types.ts:370