Documentation ¶
Overview ¶
Package integration provides utilities for integration with external systems, services, and frameworks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToOpenAIChatCompletionMessages ¶ added in v0.0.56
func ToOpenAIChatCompletionMessages(messages schema.ChatMessages) ([]openai.ChatCompletionMessage, error)
ToOpenAIChatCompletionMessages converts a slice of schema.ChatMessage to a slice of openai.ChatCompletionMessage. It extracts the necessary information from each message to create the corresponding OpenAI chat completion message.
Types ¶
type HTTPClient ¶ added in v0.0.58
type SerpAPIOptions ¶
type Wikipedia ¶ added in v0.0.4
type Wikipedia struct {
// contains filtered or unexported fields
}
func NewWikipedia ¶ added in v0.0.4
func NewWikipedia(optFns ...func(o *WikipediaOptions)) *Wikipedia
type WikipediaOptions ¶ added in v0.0.4
type WikipediaOptions struct { LanguageCode string TopK int DocMaxChars int HTTPClient HTTPClient }
Directories ¶
Path | Synopsis |
---|---|
Package ernie provides a client library for interacting with the Ernie API, which offers natural language processing (NLP) capabilities, including chat completion and text embedding.
|
Package ernie provides a client library for interacting with the Ernie API, which offers natural language processing (NLP) capabilities, including chat completion and text embedding. |
Package nbformat provides utilities to read and parse Jupyter Notebook (nbformat) files.
|
Package nbformat provides utilities to read and parse Jupyter Notebook (nbformat) files. |
Package sqldb provides an SQL database abstraction for performing queries and interacting with the database.
|
Package sqldb provides an SQL database abstraction for performing queries and interacting with the database. |
Click to show internal directories.
Click to hide internal directories.