native

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package native implements the built-in Eino-backed Leros engine.

Package native implements the built-in Eino-backed Leros runtime.

Index

Constants

View Source
const EngineName = engines.EngineNative

EngineName is the registry name for the native engine.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

Adapter implements engines.Engine for the in-process Eino runtime.

func NewAdapter

func NewAdapter(env *tools.Registry) (*Adapter, error)

NewAdapter creates a native engine adapter.

func (*Adapter) GetSkillDir

func (a *Adapter) GetSkillDir() string

GetSkillDir satisfies engines.Engine.

func (*Adapter) Prepare

Prepare satisfies engines.Engine.

func (*Adapter) Run

Run satisfies engines.Engine by delegating to the native Runner.

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner 是 Leros 内置 Eino 运行时入口。

func NewRunner

func NewRunner(ctx context.Context, env *tools.Registry) (*Runner, error)

NewRunner 创建基于 Eino Flow 的 Leros 内置 Agent。

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, req engines.RunRequest) (<-chan events.Event, error)

Run 执行标准化请求,通过 Event channel 支持流式输出。

Jump to

Keyboard shortcuts

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