chore: upd

This commit is contained in:
AkaraChen 2024-12-26 15:27:15 +08:00
parent 5ef9156242
commit 1429b30e84
1 changed files with 6 additions and 1 deletions

View File

@ -29,7 +29,7 @@ export type AgentStrategyProps = {
type CustomSchema<Type, Field = {}> = Omit<CredentialFormSchema, 'type'> & { type: Type } & Field
type MaxIterFormSchema = CustomSchema<'max-iter'>
type ToolSelectorSchema = CustomSchema<'tool-selector'>
type ToolSelectorSchema = CustomSchema<'array[tools]'>
type CustomField = MaxIterFormSchema | ToolSelectorSchema
@ -61,6 +61,11 @@ export const AgentStrategy = (props: AgentStrategyProps) => {
</div>
</Field>
}
case 'array[tools]': {
return <Field title={'tool selector'} tooltip={'tool selector'}>
tool selector
</Field>
}
}
}
console.log(formSchema)