feat(core): bridge GET /config through experimental HttpApi (#23712)
This commit is contained in:
@@ -101,7 +101,8 @@ const normalize = (agent: z.infer<typeof Info>) => {
|
||||
}
|
||||
globalThis.Object.assign(permission, agent.permission)
|
||||
|
||||
return { ...agent, options, permission, steps: agent.steps ?? agent.maxSteps }
|
||||
const steps = agent.steps ?? agent.maxSteps
|
||||
return { ...agent, options, permission, ...(steps !== undefined ? { steps } : {}) }
|
||||
}
|
||||
|
||||
export const Info = zod(AgentSchema).transform(normalize).meta({ ref: "AgentConfig" }) as unknown as z.ZodType<
|
||||
|
||||
Reference in New Issue
Block a user