Base A2A server that sets up agent cards and request handlers, compatible with browser and Express environments.
// Source: https://github.com/strands-agents/harness-sdk | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
/**
* Base A2A server that manages agent card and request handler setup.
*
* This module is browser-compatible. For Express-based HTTP serving,
* see {@link A2AExpressServer} in `./express-server.ts`.
*
* The A2A protocol is experimental, so breaking changes in the underlying SDK
* may require breaking changes in this module.
*/
import type { AgentCard, AgentSkill } from '@a2a-js/sdk'
import type { TaskStore, A2ARequestHandler } from '@a2a-js/sdk/server'
import { DefaultRequestHandler, InMemoryTaskStore } from '@a2a-js/sdk/server'
import type { InvokableAgent } from '../types/agent.js'
import { A2AExecutor, type AgentFactory } from './exec
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key