@@ -213,9 +213,8 @@ const (
213
213
)
214
214
215
215
type StreamedChat struct {
216
- EventType EventType `json:"event_type"`
217
- FinishReason FinishReason `json:"finish_reason"`
218
- Response NonStreamedChat `json:"response"`
216
+ EventType EventType `json:"event_type"`
217
+ Response NonStreamedChat `json:"response"`
219
218
}
220
219
221
220
type FinishReason string
@@ -240,12 +239,17 @@ const (
240
239
)
241
240
242
241
type NonStreamedChat struct {
243
- Text string `json:"text"`
244
- GenerationID string `json:"generation_id"`
245
- Citations []Citation `json:"citations"`
246
- Documents []Document `json:"documents"`
247
- SearchQueries []SearchQuery `json:"search_queries"`
248
- SearchResults []SearchResult `json:"search_results"`
242
+ Text string `json:"text"`
243
+ GenerationID string `json:"generation_id"`
244
+ Citations []Citation `json:"citations"`
245
+ Documents []Document `json:"documents"`
246
+ IsSearchRequired bool `json:"is_search_required"`
247
+ SearchQueries []SearchQuery `json:"search_queries"`
248
+ SearchResults []SearchResult `json:"search_results"`
249
+ FinishReason FinishReason `json:"finish_reason"`
250
+ ToolCalls []ToolCall `json:"tool_calls"`
251
+ ChatHistory []ChatMessage `json:"chat_history"`
252
+ ForceSingleStep bool `json:"force_single_step,omitempty"`
249
253
}
250
254
251
255
type SearchResult struct {
0 commit comments