( ctx context.Context, name string, query AgentQuery, )
| 3327 | } |
| 3328 | |
| 3329 | func (c *unixSocketClient) GetAgentSoul( |
| 3330 | ctx context.Context, |
| 3331 | name string, |
| 3332 | query AgentQuery, |
| 3333 | ) (AgentSoulRecord, error) { |
| 3334 | var response AgentSoulRecord |
| 3335 | path := "/api/agents/" + url.PathEscape(strings.TrimSpace(name)) + "/soul" |
| 3336 | if err := c.doJSON(ctx, http.MethodGet, path, agentValues(query), nil, &response); err != nil { |
| 3337 | return AgentSoulRecord{}, err |
| 3338 | } |
| 3339 | return response, nil |
| 3340 | } |
| 3341 | |
| 3342 | func (c *unixSocketClient) ValidateAgentSoul( |
| 3343 | ctx context.Context, |
nothing calls this directly
no test coverage detected