(content: string)
| 193 | |
| 194 | /** Create a simple user message with a single text part. */ |
| 195 | export function createUserMessage(content: string): Message { |
| 196 | return { |
| 197 | role: 'user', |
| 198 | content: [{ type: 'text', text: content }], |
| 199 | toolCalls: [], |
| 200 | }; |
| 201 | } |
| 202 | |
| 203 | /** Create an assistant message from content parts and optional tool calls. */ |
| 204 | export function createAssistantMessage(content: ContentPart[], toolCalls?: ToolCall[]): Message { |
no outgoing calls