- Preparing search index...
- The search index is not available
Toolkit
Methods
Static generate_text
- generate_text(input: string, promptTemplate?: any, parameters?: Record<string, string>, model?: string, modelConfiguration?: Record<string, Object>): Promise<Response<TextAIResponse>>
-
Parameters
-
input: string
-
Optional promptTemplate: any
-
Optional parameters: Record<string, string>
-
Optional model: string
-
Optional modelConfiguration: Record<string, Object>
Returns Promise<Response<TextAIResponse>>
Static image_to_text
- image_to_text(input: undefined | string, image: Image, promptTemplate?: any, parameters?: Record<string, string>, model?: string, modelConfiguration?: Record<string, Object>): Promise<Response<TextAIResponse>>
-
Parameters
-
input: undefined | string
-
image: Image
-
Optional promptTemplate: any
-
Optional parameters: Record<string, string>
-
Optional model: string
-
Optional modelConfiguration: Record<string, Object>
Returns Promise<Response<TextAIResponse>>
Static summarize
- summarize(input: string, promptTemplate?: any, parameters?: Record<string, string>, model?: string, modelConfiguration?: Record<string, Object>, system?: string, chatContext?: any, chunkingConfiguration?: any, outputStyle?: any, outputWordLength?: any): Promise<Response<TextAIResponse>>
-
Parameters
-
input: string
-
Optional promptTemplate: any
-
Optional parameters: Record<string, string>
-
Optional model: string
-
Optional modelConfiguration: Record<string, Object>
-
Optional system: string
-
Optional chatContext: any
-
Optional chunkingConfiguration: any
-
Optional outputStyle: any
-
Optional outputWordLength: any
Returns Promise<Response<TextAIResponse>>
Static text_to_beastmode
- text_to_beastmode(input: string, dataSourceSchema?: any, promptTemplate?: any, parameters?: Record<string, string>, model?: string, modelConfiguration?: Record<string, Object>, system?: string, chatContext?: any): Promise<Response<TextAIResponse>>
-
Parameters
-
input: string
-
Optional dataSourceSchema: any
-
Optional promptTemplate: any
-
Optional parameters: Record<string, string>
-
Optional model: string
-
Optional modelConfiguration: Record<string, Object>
-
Optional system: string
-
Optional chatContext: any
Returns Promise<Response<TextAIResponse>>
Static text_to_sql
- text_to_sql(input: string, dataSourceSchemas?: DataSourceSchema[], promptTemplate?: any, parameters?: Record<string, string>, model?: string, modelConfiguration?: Record<string, Object>): Promise<Response<TextAIResponse>>
-
Parameters
-
input: string
-
Optional dataSourceSchemas: DataSourceSchema[]
-
Optional promptTemplate: any
-
Optional parameters: Record<string, string>
-
Optional model: string
-
Optional modelConfiguration: Record<string, Object>
Returns Promise<Response<TextAIResponse>>
SDK for interacting with the AI Services API's such as Text Generation and Text to SQL
Example Text Generation Usage
Example Text To SQL Usage