Documentation
¶
Index ¶
- Constants
- func ConversationGenerationFrom(ctx context.Context) uint64
- func WithCallMetadata(ctx context.Context, metadata CallMetadata) context.Context
- func WithConversationGeneration(ctx context.Context, generation uint64) context.Context
- type Bash
- type CallMetadata
- type EditFile
- type Glob
- type Grep
- type ParallelTool
- type ReadFile
- type Registry
- type Tool
- type WriteFile
Constants ¶
const MaxBashOutputBytes = 256 * 1024
MaxBashOutputBytes bounds command output in memory while leaving enough of both ends to diagnose failures. The agent applies its own final transcript cap, but the tool must not buffer an unbounded command before reaching it.
const MaxReadBytes = 256 * 1024
MaxReadBytes caps the total bytes ReadFile will return in a single call. Files larger than this must be paged via offset/limit.
Variables ¶
This section is empty.
Functions ¶
func ConversationGenerationFrom ¶ added in v0.6.2
ConversationGenerationFrom returns the TUI conversation generation carried by ctx. Zero is the initial generation and the default outside the TUI.
func WithCallMetadata ¶ added in v0.4.0
func WithCallMetadata(ctx context.Context, metadata CallMetadata) context.Context
func WithConversationGeneration ¶ added in v0.6.2
WithConversationGeneration tags work started by one TUI conversation. Tools copy the value onto buffered UI events at production time, before those events can be delayed by an intermediate channel.
Types ¶
type CallMetadata ¶ added in v0.4.0
CallMetadata identifies one model-requested tool execution. It is carried through context so tools that supervise nested work can attribute their events without exposing scheduler fields in model-facing schemas.
func CallMetadataFrom ¶ added in v0.4.0
func CallMetadataFrom(ctx context.Context) (CallMetadata, bool)
type ParallelTool ¶ added in v0.4.0
ParallelTool is an optional capability for tools that are safe to execute alongside other parallel-safe calls from the same model response. Tools that do not implement it are always serial. The model never controls this decision.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func (*Registry) ParallelSafe ¶ added in v0.4.0
ParallelSafe reports the tool's runtime-owned concurrency classification. Unknown and unclassified tools fail closed to serial execution.