| | |
| | | boolean = 'boolean', |
| | | files = 'files', |
| | | file = 'file', |
| | | modelSelector = 'model-selector', |
| | | toolSelector = 'tool-selector', |
| | | multiToolSelector = 'array[tools]', |
| | | appSelector = 'app-selector', |
| | | } |
| | | |
| | | export type FormOption = { |
| | |
| | | toolCall = 'tool-call', |
| | | multiToolCall = 'multi-tool-call', |
| | | agentThought = 'agent-thought', |
| | | streamToolCall = 'stream-tool-call', |
| | | vision = 'vision', |
| | | video = 'video', |
| | | document = 'document', |
| | | audio = 'audio', |
| | | StructuredOutput = 'structured-output', |
| | | } |
| | | |
| | | export enum ModelFeatureTextEnum { |
| | |
| | | tooltip?: TypeWithI18N |
| | | show_on: FormShowOnObject[] |
| | | url?: string |
| | | scope?: string |
| | | } |
| | | |
| | | export type CredentialFormSchemaTextInput = CredentialFormSchemaBase & { |
| | | max_length?: number; |
| | | placeholder?: TypeWithI18N, |
| | | template?: { |
| | | enabled: boolean |
| | | }, |
| | | auto_generate?: { |
| | | type: string |
| | | } |
| | | } |
| | | export type CredentialFormSchemaTextInput = CredentialFormSchemaBase & { max_length?: number; placeholder?: TypeWithI18N } |
| | | export type CredentialFormSchemaNumberInput = CredentialFormSchemaBase & { min?: number; max?: number; placeholder?: TypeWithI18N } |
| | | export type CredentialFormSchemaSelect = CredentialFormSchemaBase & { options: FormOption[]; placeholder?: TypeWithI18N } |
| | | export type CredentialFormSchemaRadio = CredentialFormSchemaBase & { options: FormOption[] } |