(text: string, systemEnvironment?: string)
| 122 | >; |
| 123 | type SafeToolCallEvent = Extract<AgentConversationEvent, { readonly name: SafeToolName }>; |
| 124 | type ToolResultEvent = Extract<AgentConversationEvent, { readonly type: 'tool-result' }>; |
| 125 | |
| 126 | export type GroupedConversationItem = |
| 127 | | { |
| 128 | readonly event: AgentConversationEvent; |
| 129 | readonly type: 'event'; |
| 130 | } |
| 131 | | { |
| 132 | readonly result?: Extract<AgentConversationEvent, { readonly type: 'tool-result' }>; |
| 133 | readonly toolCall: Extract<AgentConversationEvent, { readonly type: 'tool-call' }>; |
no test coverage detected