mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-13 22:37:29 +00:00
withX402() wraps the Web handler so unpaid calls get a standard HTTP 402 challenge (x402Version + accepts[]) and paid calls fall through to the agent. Payment verification is injectable (host wires CoinPay/x402); CORS preflight passes through untouched; custom challenge responses supported. README documents the optional c0mpute.com GPU backend. 4 new tests; 38/38 pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
40 lines
1.4 KiB
TypeScript
40 lines
1.4 KiB
TypeScript
/**
|
|
* @logicsrc/agentswarm — embeddable multi-agent swarm runtime, wrapping deepagents.
|
|
*
|
|
* Mount {@link createSwarmHandler} on a route in your own app (e.g. `/swarm`);
|
|
* back it with {@link createDeepAgentRunner} or any custom {@link SwarmRunner}.
|
|
*/
|
|
export { createSwarmHandler } from "./handler.js";
|
|
export type { SwarmHandlerOptions } from "./handler.js";
|
|
export { withX402 } from "./x402.js";
|
|
export type { X402Options, X402Accept } from "./x402.js";
|
|
export { createDeepAgentRunner } from "./runner.js";
|
|
export type { DeepAgentRunnerOptions } from "./runner.js";
|
|
export { createSwarm, createLLMRouter } from "./swarm.js";
|
|
export type {
|
|
SwarmAgent,
|
|
SwarmRouter,
|
|
SwarmRouterInput,
|
|
SwarmHandoff,
|
|
SwarmOptions,
|
|
LLMRouterOptions
|
|
} from "./swarm.js";
|
|
export {
|
|
createC0mputeModel,
|
|
resolveC0mputeConnector,
|
|
c0mputeConnectorFromEnv,
|
|
C0MPUTE_DEFAULT_BASE_URL,
|
|
C0MPUTE_DEFAULT_MODEL
|
|
} from "./compute.js";
|
|
export type { C0mputeConnector, ResolvedC0mputeConnector } from "./compute.js";
|
|
export { InMemoryBudgetLedger, withBudget } from "./budget.js";
|
|
export type { AgentIdentity, BudgetLedger, BudgetRunnerOptions } from "./budget.js";
|
|
export { createRubricRunner, createLLMJudge } from "./rubric.js";
|
|
export type {
|
|
RubricEvaluation,
|
|
RubricJudge,
|
|
RubricJudgeInput,
|
|
RubricRunnerOptions,
|
|
LLMJudgeOptions
|
|
} from "./rubric.js";
|
|
export * from "./types.js";
|