(tcID string)
| 119 | e.launch(tcID) |
| 120 | return true |
| 121 | } |
| 122 | |
| 123 | func (e *StreamingToolExecutor) SetToolDecisionMapValue(mapKey, tcID, value string) { |
| 124 | if e == nil || mapKey == "" || tcID == "" { |
| 125 | return |
| 126 | } |
| 127 | e.mu.Lock() |
| 128 | defer e.mu.Unlock() |
| 129 | decisions, _ := e.Context[mapKey].(map[string]string) |
| 130 | if decisions == nil { |
| 131 | decisions = map[string]string{} |
| 132 | e.Context[mapKey] = decisions |
| 133 | } |
| 134 | decisions[tcID] = value |
| 135 | } |
| 136 |