currentAgentName is the context-free internal accessor. LocalRuntime resolves the active agent purely from in-memory state, so its internal callers (event callbacks, logging) use this directly; the exported context-taking method exists to satisfy the Runtime interface, whose remote implementation ne
()
| 709 | // context-taking method exists to satisfy the Runtime interface, whose |
| 710 | // remote implementation needs a context for its one-time lookup. |
| 711 | func (r *LocalRuntime) currentAgentName() string { |
| 712 | return r.agents.Name() |
| 713 | } |
| 714 | |
| 715 | func (r *LocalRuntime) setCurrentAgent(name string) { |
| 716 | r.agents.Set(name) |
no test coverage detected