Documentation
¶
Index ¶
- Constants
- func ResolvePath(baseURL string) (string, error)
- type Capabilities
- type Provider
- func (p *Provider) CanAudio() bool
- func (p *Provider) CanAutocomplete() bool
- func (p *Provider) CanChat() bool
- func (p *Provider) CanEmbed() bool
- func (p *Provider) CanNextEdit() bool
- func (p *Provider) CanPrompt() bool
- func (p *Provider) CanStream() bool
- func (p *Provider) CanThink() bool
- func (p *Provider) CanVision() bool
- func (p *Provider) GetAutocompleteConnection(context.Context, string) (modelrepo.LLMAutocompleteClient, error)
- func (p *Provider) GetBackendIDs() []string
- func (p *Provider) GetChatConnection(ctx context.Context, backendID string) (modelrepo.LLMChatClient, error)
- func (p *Provider) GetContextLength() int
- func (p *Provider) GetEmbedConnection(ctx context.Context, backendID string) (modelrepo.LLMEmbedClient, error)
- func (p *Provider) GetID() string
- func (p *Provider) GetMaxOutputTokens() int
- func (p *Provider) GetNextEditConnection(context.Context, string) (modelrepo.LLMNextEditClient, error)
- func (p *Provider) GetPromptConnection(ctx context.Context, backendID string) (modelrepo.LLMPromptExecClient, error)
- func (p *Provider) GetStreamConnection(ctx context.Context, backendID string) (modelrepo.LLMStreamClient, error)
- func (p *Provider) GetType() string
- func (p *Provider) ModelName() string
- type Script
- type ToolCall
- type Turn
- type Usage
Constants ¶
View Source
const (
DefaultModelName = "scripted-test"
)
Variables ¶
This section is empty.
Functions ¶
func ResolvePath ¶
Types ¶
type Capabilities ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider(modelName, scriptPath string, caps modelrepo.CapabilityConfig, embedDimensions int, tracker libtracker.ActivityTracker) *Provider
func (*Provider) CanAutocomplete ¶
func (*Provider) CanNextEdit ¶
func (*Provider) GetAutocompleteConnection ¶
func (*Provider) GetBackendIDs ¶
func (*Provider) GetChatConnection ¶
func (*Provider) GetContextLength ¶
func (*Provider) GetEmbedConnection ¶
func (*Provider) GetMaxOutputTokens ¶
func (*Provider) GetNextEditConnection ¶
func (*Provider) GetPromptConnection ¶
func (*Provider) GetStreamConnection ¶
type Script ¶
type ToolCall ¶
type ToolCall struct {
ID string `json:"id,omitempty"`
Name string `json:"name"`
Arguments json.RawMessage `json:"arguments,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.