Skip to content

@chinmaymk/aikit v0.0.40


@chinmaymk/aikit / Message

Interface: Message

Defined in: types.ts:109

A single message in a conversation. It's a bit like a text message, but with more structured data.

Properties

role

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

Defined in: types.ts:111

Who's talking? A user, the assistant, the system, or a tool.


content

content: Content[]

Defined in: types.ts:113

The actual content of the message. It's an array, because life is complicated.


toolCalls?

optional toolCalls: ToolCall[]

Defined in: types.ts:115

If the assistant is calling a tool, the details will be in here.

Released under the MIT License.