(progress map[string]any)
| 78 | } |
| 79 | |
| 80 | func BuildProgressEvent(progress map[string]any) StreamEvent { |
| 81 | return NewStreamEvent("tool_progress", stringFromAny(progress["chunk"]), map[string]any{ |
| 82 | "tool_use_id": stringFromAny(progress["tool_use_id"]), |
| 83 | "tool_name": stringFromAny(progress["tool_name"]), |
| 84 | }) |
| 85 | } |
| 86 | |
| 87 | func AddToolFailureHint(state *AgentState, toolResults []map[string]any, executor SlotLookup) []map[string]any { |
| 88 | if len(toolResults) == 0 || executor == nil { |
no test coverage detected