MCPcopy
hub / github.com/docker/docker-agent / ResolveInput

Method ResolveInput

pkg/app/app.go:393–401  ·  view source on GitHub ↗

ResolveInput resolves the user input by trying skill commands first, then agent commands. Returns the resolved content ready to send to the agent.

(ctx context.Context, input string)

Source from the content-addressed store, hash-verified

391// ResolveInput resolves the user input by trying skill commands first,
392// then agent commands. Returns the resolved content ready to send to the agent.
393func (a *App) ResolveInput(ctx context.Context, input string) string {
394 if resolved, err := a.ResolveSkillCommand(ctx, input); err != nil {
395 return fmt.Sprintf("Error loading skill: %v", err)
396 } else if resolved != "" {
397 return resolved
398 }
399
400 return a.ResolveCommand(ctx, input)
401}
402
403// CurrentAgentModel returns the model ID for the current agent.
404// Returns the tracked model from AgentInfoEvent, or falls back to session overrides.

Calls 2

ResolveSkillCommandMethod · 0.95
ResolveCommandMethod · 0.95