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

Method AgentContext

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

Source from the content-addressed store, hash-verified

5053}
5054
5055func (c *unixSocketClient) AgentContext(
5056 ctx context.Context,
5057 credentials agentidentity.Credentials,
5058) (AgentContextRecord, error) {
5059 var response contract.AgentContextResponse
5060 if err := c.doAgentJSON(ctx, http.MethodGet, "/api/agent/context", nil, nil, credentials, &response); err != nil {
5061 return AgentContextRecord{}, err
5062 }
5063 return response.Context, nil
5064}
5065
5066func (c *unixSocketClient) AgentSpawn(
5067 ctx context.Context,

Calls 1

doAgentJSONMethod · 0.95