CurrentAgentSkillsToolset returns the skills toolset for the current agent, or nil if not enabled.
()
| 1181 | |
| 1182 | // CurrentAgentSkillsToolset returns the skills toolset for the current agent, or nil if not enabled. |
| 1183 | func (r *LocalRuntime) CurrentAgentSkillsToolset() *skills.ToolSet { |
| 1184 | a := r.CurrentAgent() |
| 1185 | if a == nil { |
| 1186 | return nil |
| 1187 | } |
| 1188 | for _, ts := range a.ToolSets() { |
| 1189 | if st, ok := tools.As[*skills.ToolSet](ts); ok { |
| 1190 | return st |
| 1191 | } |
| 1192 | } |
| 1193 | return nil |
| 1194 | } |
| 1195 | |
| 1196 | // ExecuteMCPPrompt executes an MCP prompt with provided arguments and returns the content. |
| 1197 | func (r *LocalRuntime) ExecuteMCPPrompt(ctx context.Context, promptName string, arguments map[string]string) (string, error) { |
no test coverage detected