GetAgentCard
Source:
src/AWS/BedrockAgentCore/GetAgentCard.ts
Fetches the A2A agent card describing the agent runtime’s capabilities.
Bind a Runtime inside a function runtime to call the
AgentCore data-plane API against it. Provide AgentCore.GetAgentCardHttp
on the Function effect to implement the binding.
Agent Discovery
Section titled “Agent Discovery”// initconst getAgentCard = yield* AgentCore.GetAgentCard(runtime);
return { fetch: Effect.gen(function* () { // runtime const result = yield* getAgentCard({}); return HttpServerResponse.json({ card: result.agentCard }); }),};