(w http.ResponseWriter, text string, inputTokens, outputTokens int)
| 600 | Destructive: coretools.BoolPtr(false), |
| 601 | }}, started: started} |
| 602 | } |
| 603 | |
| 604 | func (t *blockingTool) Execute(ctx context.Context, _ coretools.ExecutionContext, _ any) (string, error) { |
| 605 | close(t.started) |
| 606 | <-ctx.Done() |
| 607 | return "", ctx.Err() |
| 608 | } |
| 609 | |
| 610 | func writeOpenAIStream(w http.ResponseWriter, text string, inputTokens, outputTokens int) { |
no test coverage detected