This commit is contained in:
@@ -28,6 +28,10 @@ export interface GatewayOptions {
|
||||
agents?: EnabledAgent[];
|
||||
/** Override the bearer token (otherwise read from ~/.a2a/credentials.json). */
|
||||
token?: string | null;
|
||||
/** Test/advanced override for one-shot upstream JSON-RPC calls. */
|
||||
upstreamRequestTimeoutMs?: number;
|
||||
/** Test/advanced override for idle SSE upstream tools/call streams. */
|
||||
upstreamStreamIdleTimeoutMs?: number;
|
||||
/** Optional override for the underlying MCP Server (tests). */
|
||||
server?: Server;
|
||||
}
|
||||
@@ -56,6 +60,8 @@ export async function buildGateway(opts: GatewayOptions = {}): Promise<GatewayHa
|
||||
new UpstreamAgent({
|
||||
name: a.name, url: a.url, token,
|
||||
cpJwt, cpUrl, bucket,
|
||||
requestTimeoutMs: opts.upstreamRequestTimeoutMs,
|
||||
streamIdleTimeoutMs: opts.upstreamStreamIdleTimeoutMs,
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user