Documentation ¶
Index ¶
- type ChainParams
- type ChainParamsStep
- type ChainResult
- type Config
- type GeneralChatCompletionMessage
- type Instant
- func (s *Instant) CallInChain(ctx context.Context, params ChainParams) (*ChainResult, error)
- func (s *Instant) CreateEmbeddingAzureOpenAI(ctx context.Context, input []string) ([]float32, error)
- func (s *Instant) GetEmbeddings(ctx context.Context, input []string) ([]float32, error)
- func (s *Instant) GrabJsonOutput(ctx context.Context, input string, outputKeys ...string) (map[string]any, error)
- func (s *Instant) MultipleSteps(ctx context.Context, params ChainParams) (*ChainResult, error)
- func (s *Instant) OneTimeRequest(ctx context.Context, content string) (string, error)
- func (s *Instant) OneTimeRequestJson(ctx context.Context, content string) (map[string]any, error)
- func (s *Instant) RawRequest(ctx context.Context, messages []GeneralChatCompletionMessage) (string, error)
- func (s *Instant) RawRequestAzureOpenAI(ctx context.Context, messages []azopenai.ChatRequestMessageClassification) (string, error)
- func (s *Instant) RawRequestOpenAI(ctx context.Context, messages []openai.ChatCompletionMessage) (string, error)
- func (s *Instant) TwoSteps(ctx context.Context, outputFormat string, input, inst string) (*ChainResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainParams ¶
type ChainParams struct { Format string Steps []ChainParamsStep }
type ChainParamsStep ¶
type ChainResult ¶
type GeneralChatCompletionMessage ¶
func (GeneralChatCompletionMessage) Pretty ¶
func (m GeneralChatCompletionMessage) Pretty() string
type Instant ¶
type Instant struct {
// contains filtered or unexported fields
}
func (*Instant) CallInChain ¶
func (s *Instant) CallInChain(ctx context.Context, params ChainParams) (*ChainResult, error)
func (*Instant) CreateEmbeddingAzureOpenAI ¶
func (*Instant) GetEmbeddings ¶
func (*Instant) GrabJsonOutput ¶
func (*Instant) MultipleSteps ¶
func (s *Instant) MultipleSteps(ctx context.Context, params ChainParams) (*ChainResult, error)
func (*Instant) OneTimeRequest ¶
func (*Instant) OneTimeRequestJson ¶
func (*Instant) RawRequest ¶
func (*Instant) RawRequestAzureOpenAI ¶
func (*Instant) RawRequestOpenAI ¶
Click to show internal directories.
Click to hide internal directories.