MCPcopy Create free account
hub / github.com/compozy/agh / GetAgent

Method GetAgent

internal/cli/client.go:3312–3327  ·  view source on GitHub ↗
(ctx context.Context, name string, query AgentQuery)

Source from the content-addressed store, hash-verified

3310}
3311
3312func (c *unixSocketClient) GetAgent(ctx context.Context, name string, query AgentQuery) (AgentRecord, error) {
3313 var response struct {
3314 Agent AgentRecord `json:"agent"`
3315 }
3316 if err := c.doJSON(
3317 ctx,
3318 http.MethodGet,
3319 "/api/agents/"+url.PathEscape(strings.TrimSpace(name)),
3320 agentValues(query),
3321 nil,
3322 &response,
3323 ); err != nil {
3324 return AgentRecord{}, err
3325 }
3326 return response.Agent, nil
3327}
3328
3329func (c *unixSocketClient) GetAgentSoul(
3330 ctx context.Context,

Callers 1

Calls 2

doJSONMethod · 0.95
agentValuesFunction · 0.85

Tested by 1