chore: generate
This commit is contained in:
parent
2793502db2
commit
8a1e85d0c8
1 changed files with 1 additions and 3 deletions
|
|
@ -104,9 +104,7 @@ const normalize = (agent: z.infer<typeof Info>) => {
|
||||||
return { ...agent, options, permission, steps: agent.steps ?? agent.maxSteps }
|
return { ...agent, options, permission, steps: agent.steps ?? agent.maxSteps }
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Info = zod(AgentSchema)
|
export const Info = zod(AgentSchema).transform(normalize).meta({ ref: "AgentConfig" }) as unknown as z.ZodType<
|
||||||
.transform(normalize)
|
|
||||||
.meta({ ref: "AgentConfig" }) as unknown as z.ZodType<
|
|
||||||
Omit<z.infer<ReturnType<typeof zod<typeof AgentSchema>>>, "options" | "permission" | "steps"> & {
|
Omit<z.infer<ReturnType<typeof zod<typeof AgentSchema>>>, "options" | "permission" | "steps"> & {
|
||||||
options?: Record<string, unknown>
|
options?: Record<string, unknown>
|
||||||
permission?: ConfigPermission.Info
|
permission?: ConfigPermission.Info
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue