codemode

package
v1.7.9 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: MPL-2.0 Imports: 10 Imported by: 2

Documentation

Overview

path: codemode/codemode_utcp.go

Index

Constants

View Source
const CodeModeToolName = "codemode.run_code"

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeModeArgs

type CodeModeArgs struct {
	Code    string `json:"code"`
	Timeout int    `json:"timeout"`
}

type CodeModeResult

type CodeModeResult struct {
	Value  any    `json:"value"`
	Stdout string `json:"stdout"`
	Stderr string `json:"stderr"`
}

type CodeModeUTCP

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

func NewCodeModeUTCP

func NewCodeModeUTCP(client utcp.UtcpClientInterface) *CodeModeUTCP

func (*CodeModeUTCP) Execute

func (c *CodeModeUTCP) Execute(ctx context.Context, args CodeModeArgs) (CodeModeResult, error)

func (*CodeModeUTCP) Tools

func (c *CodeModeUTCP) Tools(ctx context.Context) ([]tools.Tool, error)

Jump to

Keyboard shortcuts

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