gateway: add workspace param to agent protocol schema

This commit is contained in:
kumarabhirup 2026-02-19 21:51:11 -08:00
parent d43d226ee8
commit 459ec9766a
No known key found for this signature in database
GPG Key ID: DB7CA2289CAB0167
2 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,7 @@ export const AgentParamsSchema = Type.Object(
timeout: Type.Optional(Type.Integer({ minimum: 0 })),
lane: Type.Optional(Type.String()),
extraSystemPrompt: Type.Optional(Type.String()),
workspace: Type.Optional(Type.String()),
inputProvenance: Type.Optional(
Type.Object(
{

View File

@ -189,6 +189,7 @@ export const agentHandlers: GatewayRequestHandlers = {
groupSpace?: string;
lane?: string;
extraSystemPrompt?: string;
workspace?: string;
idempotencyKey: string;
timeout?: number;
label?: string;
@ -557,6 +558,7 @@ export const agentHandlers: GatewayRequestHandlers = {
lane: request.lane,
extraSystemPrompt: request.extraSystemPrompt,
inputProvenance,
workspace: typeof request.workspace === "string" ? request.workspace.trim() : undefined,
},
defaultRuntime,
context.deps,