Documentation
¶
Index ¶
- Constants
- func ResolvePath(baseURL string) (string, error)
- type Capabilities
- type Provider
- func (p *Provider) CanAudio() bool
- func (p *Provider) CanChat() bool
- func (p *Provider) CanEmbed() bool
- func (p *Provider) CanPrompt() bool
- func (p *Provider) CanStream() bool
- func (p *Provider) CanThink() bool
- func (p *Provider) CanVision() bool
- 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) 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 is what the catalog exposes when a script names no model; it says "test" so every surface that prints a model name says it too.
DefaultModelName = "scripted-test"
)
Variables ¶
This section is empty.
Functions ¶
func ResolvePath ¶
ResolvePath accepts a bare path or a "file://" URL.
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) GetBackendIDs ¶
func (*Provider) GetChatConnection ¶
func (*Provider) GetContextLength ¶
func (*Provider) GetEmbedConnection ¶
func (*Provider) GetMaxOutputTokens ¶
func (*Provider) GetPromptConnection ¶
func (*Provider) GetStreamConnection ¶
type Script ¶
type Script struct {
Path string
Model string
ContextLength int
MaxOutputTokens int
EmbedDimensions int
Capabilities Capabilities
Turns []Turn
// contains filtered or unexported fields
}
Script replays one recorded dialog; its cursor is process-global per file, so consecutive model turns are consumed in order across the whole chain run.
func Load ¶
Load returns the shared Script for path, reloading (and rewinding) it whenever the file changed on disk.
type ToolCall ¶
type ToolCall struct {
ID string `json:"id,omitempty"`
Name string `json:"name"`
// Arguments is a JSON object, or a JSON string holding raw argument text.
Arguments json.RawMessage `json:"arguments,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.