providers

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2025 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrParams

type ErrParams struct {
	Msg   string
	Param string
}

func (ErrParams) Error

func (e ErrParams) Error() string

type Model

type Model struct {
	// LLM identifier
	Name string
	// Provider name (e.g., "ollama", "openai")
	Provider string
	// Model implementation
	Impl ModelImpl
}

type ModelImpl

type ModelImpl interface {
	Chat(context.Context, []types.Message, []tools.Tool, *types.Options) (types.Response, error)
	ChatStreaming(context.Context, []types.Message, []tools.Tool, *types.Options) (streaming.ResponseChannel, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL