codemode

package
v1.8.4 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: 11 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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