CurrentAgentToolsetStatuses returns one ToolsetStatus per toolset of the active agent. The list is in declaration order. Toolsets that wrap another (StartableToolSet, Multiplexer) are unwrapped so the inner supervisor's state is visible.
()
| 990 | // another (StartableToolSet, Multiplexer) are unwrapped so the inner |
| 991 | // supervisor's state is visible. |
| 992 | func (r *LocalRuntime) CurrentAgentToolsetStatuses() []tools.ToolsetStatus { |
| 993 | a := r.CurrentAgent() |
| 994 | if a == nil { |
| 995 | return nil |
| 996 | } |
| 997 | toolSets := a.ToolSets() |
| 998 | statuses := make([]tools.ToolsetStatus, 0, len(toolSets)) |
| 999 | for _, ts := range toolSets { |
| 1000 | statuses = append(statuses, toolsetStatusFor(ts)) |
| 1001 | } |
| 1002 | return statuses |
| 1003 | } |
| 1004 | |
| 1005 | // AgentToolsetStatuses returns one ToolsetStatus per toolset of the named |
| 1006 | // agent, in declaration order. It mirrors CurrentAgentToolsetStatuses but for |
nothing calls this directly
no test coverage detected