Documentation
¶
Overview ¶
Package provider builds an Eino chat model from a "provider:model" string.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
Chat model.ToolCallingChatModel
Provider string
Name string
}
Model is a chat model with the names used to label it in events.
func Build ¶
Build parses spec and returns the model. Supported forms:
anthropic:<model> key from ANTHROPIC_API_KEY openai:<model> key from OPENAI_API_KEY, optional OPENAI_BASE_URL script:<path> a JSON script played back with no network access
A missing key is reported before any network call is made.
Click to show internal directories.
Click to hide internal directories.