coderun

package
v2.0.5-main.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 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

Package coderun decides which tools that run code a model writes a session is offered. Running such code, a Python script or a script driving a browser, is running commands by another name: a session offered no tool that runs commands is offered none of them either, and a call of one is refused, saying why

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tool

type Tool struct {
	Name string
	// What a user calls the group of the tool, such as Terminal, which names the door the rule speaks of. The name when empty
	Group string
	// It runs the commands the model writes, such as the terminal
	Commands bool
	// It runs code the model writes by another name than a command, such as a Python script
	Code bool
	// It is on where the session is, and what it lacks to run there, empty when it can run
	On    bool
	Lacks string
	// It is on and lacks nothing, and what offers the session its tools leaves it out all the same, such as the toolsets of a subagent
	Left bool
}

One tool as the rule sees it where a session is

type Why

type Why struct {
	// Group of the first tool that runs commands as a sentence names it, lower case, such as terminal. Empty when no tool runs commands
	Group string
	// Every tool that runs commands is turned off where the session is: a user's choice
	Off bool
	// One that is on and lacks nothing is left out of what the session is offered
	Left bool
	// What the first one that is on lacks to run, empty when none lacks anything
	Lacks string
}

Why a session is offered no tool that runs commands

func Held

func Held(tools []Tool) ([]int, Why)

Places of the tools of the list a session offered them is held back from, and why: every tool that runs code, is on and lacks nothing, while no tool that runs commands is on, lacks nothing and is offered. None while one is

func Shut

func Shut(tools []Tool) (Why, bool)

Why a session offered the tools of the list is offered no tool that runs commands, true while it is offered none: the door to running what the model writes is shut

func (Why) Model

func (w Why) Model(name string) string

Why the tool of the name is not offered, as the model reads it when it calls the tool anyway: what was not done, and what to do instead

func (Why) Person

func (w Why) Person() string

Why the tool is not offered, as a user reads it beside the tool: whole sentences

func (Why) Said

func (w Why) Said() string

Why in a phrase a sentence goes on with, such as "the terminal is off"

Jump to

Keyboard shortcuts

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