MCPcopy
hub / github.com/alibaba/page-agent / Message

Interface Message

packages/llms/src/types.ts:9–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7 * Message format - OpenAI standard (industry standard)
8 */
9export interface Message {
10 role: 'system' | 'user' | 'assistant' | 'tool'
11 content?: string | null
12 tool_calls?: {
13 id: string
14 type: 'function'
15 function: {
16 name: string
17 arguments: string // JSON string
18 }
19 }[]
20 tool_call_id?: string
21 name?: string
22}
23
24/**
25 * Tool definition - uses Zod schema (LLM-agnostic)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected