Help us shape the future of Go! Take the 2026 Go Developer Survey

execution

package
v0.4.44 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package execution owns invocation lifecycles; context values live in rctx.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChild

NewChild creates a synchronous execution with separate history and parent-owned delivery/approval. Close only retires this execution's cancel registration; it never closes the parent broker or consumes parent steering. The parent context must identify a trusted workspace and logical conversation, Nested children inherit the original approval target and cancellation owner. Depth limits belong to the invoking host/tool. Async jobs need their own lifecycle.

func NewIdentity

func NewIdentity(parent context.Context) capexecution.Identity

NewIdentity assigns an invocation independent of its history and backend turn. Hosts without a root turn start a new ownership domain.

Types

type ChildOptions

type ChildOptions struct {
	HistorySessionID agentkit.SessionID
	AgentID          agentkit.AgentID
}

ChildOptions is supplied by a trusted host, never decoded from model tool arguments. HistorySessionID must already be namespaced for the parent's workspace; this constructor does not select or generate persistent histories.

Jump to

Keyboard shortcuts

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