Documentation
¶
Overview ¶
Package eino is the only package that imports cloudwego/eino; it adapts the framework to the engine.Provider seam with an explicit tool-calling loop so each tool call flows through the risk-gated executor.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
APIKey string
BaseURL string // empty for the vendor default; set for openai-compatible endpoints
Model string
}
Config is the minimal provider wiring the adapter needs.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is an eino-backed engine.Provider for OpenAI / OpenAI-compatible endpoints.
func NewAnthropic ¶
NewAnthropic builds a Claude provider.
func NewOpenAI ¶
NewOpenAI builds an OpenAI (or OpenAI-compatible) provider. A BaseURL points it at Ollama, OpenRouter, vLLM, gateways, etc.
func (*Provider) Models ¶
Models reports the configured model. A live catalogue query is not exposed by the adapter; the model allow-list is managed in provider config.
func (*Provider) Stream ¶
func (p *Provider) Stream(ctx context.Context, req engine.ChatRequest, exec engine.ToolExecutor) (<-chan engine.StreamEvent, error)
Stream runs one turn (with an internal ReAct loop over tool calls) and emits engine.StreamEvents until the channel closes. The caller cancels ctx to stop.