MCPcopy Create free account
hub / github.com/docker/docker-agent / CurrentAgentSkillsToolset

Method CurrentAgentSkillsToolset

pkg/runtime/runtime.go:1183–1194  ·  view source on GitHub ↗

CurrentAgentSkillsToolset returns the skills toolset for the current agent, or nil if not enabled.

()

Source from the content-addressed store, hash-verified

1181
1182// CurrentAgentSkillsToolset returns the skills toolset for the current agent, or nil if not enabled.
1183func (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.
1197func (r *LocalRuntime) ExecuteMCPPrompt(ctx context.Context, promptName string, arguments map[string]string) (string, error) {

Callers 1

RunSkillForkMethod · 0.95

Calls 2

CurrentAgentMethod · 0.95
ToolSetsMethod · 0.80

Tested by

no test coverage detected