Documentation
¶
Overview ¶
Package native implements the built-in Eino-backed Leros runtime.
Package native provides the built-in Leros (Eino) Runtime.
Index ¶
Constants ¶
View Source
const (
// Kind is the canonical runtime kind for the built-in Leros runtime.
Kind = "leros"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface {
Execute(context.Context, agent.ExecutionRequest, agent.Observer) (agent.ExecutionResult, error)
}
Executor is the in-process execution backend used by the native Runtime.
type Runner ¶
type Runner struct{}
Runner 是 Leros 内置 Eino 运行时入口。
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
Runtime executes requests directly through the in-process Eino runner.
func NewWithExecutor ¶
NewWithExecutor creates a native Runtime with an injected execution backend.
Click to show internal directories.
Click to hide internal directories.