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

Method AgentMe

internal/cli/client.go:5044–5053  ·  view source on GitHub ↗
(
	ctx context.Context,
	credentials agentidentity.Credentials,
)

Source from the content-addressed store, hash-verified

5042}
5043
5044func (c *unixSocketClient) AgentMe(
5045 ctx context.Context,
5046 credentials agentidentity.Credentials,
5047) (AgentMeRecord, error) {
5048 var response contract.AgentMeResponse
5049 if err := c.doAgentJSON(ctx, http.MethodGet, "/api/agent/me", nil, nil, credentials, &response); err != nil {
5050 return AgentMeRecord{}, err
5051 }
5052 return response.Me, nil
5053}
5054
5055func (c *unixSocketClient) AgentContext(
5056 ctx context.Context,

Calls 1

doAgentJSONMethod · 0.95