AssistantMessage
Defined in: react-hooks/src/use-assistant.ts:15
Assistant message with additional metadata.
Extends
Section titled “Extends”Properties
Section titled “Properties”annotations?
Section titled “annotations?”
optionalannotations:Annotation[]
Defined in: react-hooks/src/use-assistant.ts:21
File annotations
content
Section titled “content”content:
string
Defined in: react-core/dist/types/types.d.ts:68
Message content
Inherited from
Section titled “Inherited from”createdAt?
Section titled “createdAt?”
optionalcreatedAt:Date
Defined in: react-core/dist/types/types.d.ts:70
Creation timestamp
Inherited from
Section titled “Inherited from”id:
string
Defined in: react-core/dist/types/types.d.ts:64
Unique message ID
Inherited from
Section titled “Inherited from”role:
"user"|"assistant"|"system"
Defined in: react-core/dist/types/types.d.ts:66
Message role
Inherited from
Section titled “Inherited from”runId?
Section titled “runId?”
optionalrunId:string
Defined in: react-hooks/src/use-assistant.ts:19
Run ID
threadId?
Section titled “threadId?”
optionalthreadId:string
Defined in: react-hooks/src/use-assistant.ts:17
Thread ID
toolCalls?
Section titled “toolCalls?”
optionaltoolCalls:ToolCall[]
Defined in: react-core/dist/types/types.d.ts:72
Tool calls made by this message
Inherited from
Section titled “Inherited from”toolInvocations?
Section titled “toolInvocations?”
optionaltoolInvocations:ToolInvocation[]
Defined in: react-core/dist/types/types.d.ts:74
Tool invocations and results