Documentation ¶
Index ¶
- func ChatModelGenerate(ctx context.Context, model schema.ChatModel, messages []schema.ChatMessages, ...) (*schema.ModelResult, error)
- func GeneratePrompt(ctx context.Context, model schema.Model, promptValues []schema.PromptValue, ...) (*schema.ModelResult, error)
- func LLMGenerate(ctx context.Context, model schema.LLM, prompts []string, ...) (*schema.ModelResult, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChatModelGenerate ¶
func ChatModelGenerate(ctx context.Context, model schema.ChatModel, messages []schema.ChatMessages, optFns ...func(o *Options)) (*schema.ModelResult, error)
func GeneratePrompt ¶
func GeneratePrompt(ctx context.Context, model schema.Model, promptValues []schema.PromptValue, optFns ...func(o *Options)) (*schema.ModelResult, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.