Documentation
¶
Index ¶
- type GatewayClient
- func (g *GatewayClient) BuildHTTPOptions() ([]poc.PocConfigOption, error)
- func (g *GatewayClient) Chat(s string, function ...aispec.Function) (string, error)
- func (g *GatewayClient) ChatEx(details []aispec.ChatDetail, function ...aispec.Function) ([]aispec.ChatChoice, error)
- func (g *GatewayClient) ChatStream(s string) (io.Reader, error)
- func (g *GatewayClient) CheckValid() error
- func (g *GatewayClient) ExtractData(msg string, desc string, fields map[string]any) (map[string]any, error)
- func (g *GatewayClient) LoadOption(opt ...aispec.AIConfigOption)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayClient ¶
type GatewayClient struct {
// contains filtered or unexported fields
}
func (*GatewayClient) BuildHTTPOptions ¶
func (g *GatewayClient) BuildHTTPOptions() ([]poc.PocConfigOption, error)
func (*GatewayClient) ChatEx ¶
func (g *GatewayClient) ChatEx(details []aispec.ChatDetail, function ...aispec.Function) ([]aispec.ChatChoice, error)
func (*GatewayClient) ChatStream ¶
func (g *GatewayClient) ChatStream(s string) (io.Reader, error)
func (*GatewayClient) CheckValid ¶ added in v1.3.3
func (g *GatewayClient) CheckValid() error
func (*GatewayClient) ExtractData ¶
func (*GatewayClient) LoadOption ¶
func (g *GatewayClient) LoadOption(opt ...aispec.AIConfigOption)
Click to show internal directories.
Click to hide internal directories.