mirror of https://github.com/langgenius/dify.git
chore: upd
This commit is contained in:
parent
5ef9156242
commit
1429b30e84
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue