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 = agent.RuntimeKindLeros )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface {
Execute(context.Context, agent.ExecutionRequest, agent.NodeObserver) (agent.ExecutionResult, error)
}
Executor is the in-process execution backend used by the native Runtime.
type Runner ¶
type Runner struct{}
Runner 是 Leros 内置 Eino 运行时入口。
func (*Runner) Execute ¶
func (r *Runner) Execute( ctx context.Context, req agent.ExecutionRequest, observer agent.NodeObserver, ) (agent.ExecutionResult, error)
Execute runs one prepared native request and emits only activity events.
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.
func (*Runtime) Execute ¶
func (r *Runtime) Execute( ctx context.Context, request agent.ExecutionRequest, observer agent.NodeObserver, ) (agent.ExecutionResult, error)
Click to show internal directories.
Click to hide internal directories.