Skip to content

@graphty/graphty-element / ai / Message

Interface: Message ​

Defined in: graphty-element/src/ai/providers/types.ts:6

Represents a message in a conversation with an LLM.

Properties ​

content ​

content: string

Defined in: graphty-element/src/ai/providers/types.ts:10

The content of the message


role ​

role: "user" | "system" | "assistant" | "tool"

Defined in: graphty-element/src/ai/providers/types.ts:8

The role of the message sender


toolCallId? ​

optional toolCallId?: string

Defined in: graphty-element/src/ai/providers/types.ts:12

ID of the tool call this message is responding to (for tool role)


toolCalls? ​

optional toolCalls?: ToolCall[]

Defined in: graphty-element/src/ai/providers/types.ts:14

Tool calls made by the assistant (for assistant role)