MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / BuildProgressEvent

Function BuildProgressEvent

agent/messages.go:80–85  ·  view source on GitHub ↗
(progress map[string]any)

Source from the content-addressed store, hash-verified

78}
79
80func 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
87func AddToolFailureHint(state *AgentState, toolResults []map[string]any, executor SlotLookup) []map[string]any {
88 if len(toolResults) == 0 || executor == nil {

Callers 1

executeAndCommitToolsMethod · 0.85

Calls 2

NewStreamEventFunction · 0.85
stringFromAnyFunction · 0.70

Tested by

no test coverage detected