MCPcopy
hub / github.com/coder/mux / buildTaskToolAgentArgsSchema

Function buildTaskToolAgentArgsSchema

src/common/utils/tools/toolDefinitions.ts:498–502  ·  view source on GitHub ↗
(options: {
  includeIsolation: boolean;
})

Source from the content-addressed store, hash-verified

496 * local runtimes the parameter is omitted from the schema entirely so it never enters LLM context.
497 */
498export function buildTaskToolAgentArgsSchema(options: {
499 includeIsolation: boolean;
500}): typeof TaskToolArgsSchema | typeof TaskToolArgsSchemaWithoutIsolation {
501 return options.includeIsolation ? TaskToolArgsSchema : TaskToolArgsSchemaWithoutIsolation;
502}
503
504const TaskHandleKindSchema = z.enum(["agent_task", "workspace_turn"]);
505const TaskToolSpawnedTaskSchema = z

Callers 2

createTaskToolFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected