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 person 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 person'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 ¶
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 ¶
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 ¶
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