runtime

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAgent

func BuildAgent(ctx context.Context, cfg agent.Config, provider llm.Provider, logger *zap.Logger, opts BuildOptions) (*agent.BaseAgent, error)

BuildAgent 构造一个代理. BaseAgent和有线的可选特性,带有合理的默认.

func QuickSetup

func QuickSetup(ctx context.Context, ag *agent.BaseAgent, opts BuildOptions) error

QuickSetup 电线默认为已经构建的 Base Agent 。 当呼叫者手动即时BaseAgent但仍然想要默认子系统时,此功能是有用的.

Types

type BuildOptions

type BuildOptions struct {
	EnableAll bool

	EnableReflection     bool
	EnableToolSelection  bool
	EnablePromptEnhancer bool
	EnableSkills         bool
	EnableMCP            bool
	EnableLSP            bool
	EnableEnhancedMemory bool
	EnableObservability  bool

	SkillsDirectory string
	SkillsConfig    *skills.SkillManagerConfig

	MCPServerName    string
	MCPServerVersion string
	LSPServerName    string
	LSPServerVersion string

	EnhancedMemoryConfig *memory.EnhancedMemoryConfig

	// 设定时使用可观察性系统代替默认执行.
	ObservabilitySystem agent.ObservabilityRunner

	// InitAgent在接线后呼叫Init(ctx).
	InitAgent bool
}

为可选子系统构建可选控件外接线.

func DefaultBuildOptions

func DefaultBuildOptions() BuildOptions

Jump to

Keyboard shortcuts

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