toolcodeengine

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package toolcodeengine provides an adapter that implements code.Engine using runtime.Runtime for execution.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapTools

func WrapTools(tools code.Tools) runtime.ToolGateway

WrapTools wraps a code.Tools implementation to satisfy runtime.ToolGateway. This allows the code.Tools interface to be used as a gateway in runtime.

Types

type Config

type Config struct {
	// Runtime is the runtime.Runtime to use for execution.
	Runtime runtime.Runtime

	// Profile is the security profile to use for execution.
	Profile runtime.SecurityProfile
}

Config configures an Engine.

type Engine

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

Engine implements code.Engine using a runtime.Runtime backend.

func New

func New(cfg Config) (*Engine, error)

New creates a new Engine with the given configuration.

func (*Engine) Execute

func (e *Engine) Execute(ctx context.Context, params code.ExecuteParams, tools code.Tools) (code.ExecuteResult, error)

Execute implements code.Engine by delegating to the underlying runtime.

Jump to

Keyboard shortcuts

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