types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIChunkTypeContentBlockStart = internaltypes.APIChunkTypeContentBlockStart
	APIChunkTypeContentBlockDelta = internaltypes.APIChunkTypeContentBlockDelta
	APIChunkTypeContentBlockStop  = internaltypes.APIChunkTypeContentBlockStop
	APIChunkTypeMessageDelta      = internaltypes.APIChunkTypeMessageDelta
	APIChunkTypeMessageStop       = internaltypes.APIChunkTypeMessageStop
	APIChunkTypeError             = internaltypes.APIChunkTypeError

	ExecutionOriginInteractive = internaltypes.ExecutionOriginInteractive
	ExecutionOriginAutomation  = internaltypes.ExecutionOriginAutomation
	ExecutionOriginSkillAgent  = internaltypes.ExecutionOriginSkillAgent

	PermissionModeOnRequest   = internaltypes.PermissionModeOnRequest
	PermissionModeAuto        = internaltypes.PermissionModeAuto
	PermissionModeAcceptEdits = internaltypes.PermissionModeAcceptEdits
	PermissionModeBypass      = internaltypes.PermissionModeBypass
	PermissionModeNever       = internaltypes.PermissionModeNever
	PermissionModeGranular    = internaltypes.PermissionModeGranular

	PromptTypeConfirm = internaltypes.PromptTypeConfirm

	RoleAssistant = internaltypes.RoleAssistant
	RoleUser      = internaltypes.RoleUser
	RoleSystem    = internaltypes.RoleSystem

	RuntimeEventTypePromptRequired         = internaltypes.RuntimeEventTypePromptRequired
	RuntimeEventTypeToolPermissionRequired = internaltypes.RuntimeEventTypeToolPermissionRequired

	StopReasonEndTurn = internaltypes.StopReasonEndTurn
)

Variables

View Source
var RuntimeEventEmitterKey = internaltypes.RuntimeEventEmitterKey

Functions

func AgentUserIDFromContext

func AgentUserIDFromContext(ctx context.Context) string

func SubAgentMaxDepthFromContext

func SubAgentMaxDepthFromContext(ctx context.Context) int

func WithAgentUserID

func WithAgentUserID(ctx context.Context, userID string) context.Context

func WithSubAgentMaxDepth

func WithSubAgentMaxDepth(ctx context.Context, depth int) context.Context

Types

type APIChunkType

type APIChunkType = internaltypes.APIChunkType

type APIProvider

type APIProvider = internaltypes.APIProvider

type APIResponseChunk

type APIResponseChunk = internaltypes.APIResponseChunk

type ContentBlock

type ContentBlock = internaltypes.ContentBlock

type ExecutionOrigin

type ExecutionOrigin = internaltypes.ExecutionOrigin

func NormalizeExecutionOrigin

func NormalizeExecutionOrigin(raw string) ExecutionOrigin

type ImageContent

type ImageContent = internaltypes.ImageContent

type Message

type Message = internaltypes.Message

type PermissionMode

type PermissionMode = internaltypes.PermissionMode

func NormalizePermissionMode

func NormalizePermissionMode(raw string) (PermissionMode, bool)

func NormalizePermissionModeOrDefault

func NormalizePermissionModeOrDefault(mode PermissionMode, fallback PermissionMode) PermissionMode

type PromptFn

type PromptFn = internaltypes.PromptFn

type PromptOption

type PromptOption = internaltypes.PromptOption

type PromptRequest

type PromptRequest = internaltypes.PromptRequest

type PromptResponse

type PromptResponse = internaltypes.PromptResponse

type PromptType

type PromptType = internaltypes.PromptType

type Role

type Role = internaltypes.Role

type RuntimeEvent

type RuntimeEvent = internaltypes.RuntimeEvent

type RuntimeEventType

type RuntimeEventType = internaltypes.RuntimeEventType

type SessionID

type SessionID = internaltypes.SessionID

type TextContent

type TextContent = internaltypes.TextContent

type TokenUsage

type TokenUsage = internaltypes.TokenUsage

type ToolPermissionRequest

type ToolPermissionRequest = internaltypes.ToolPermissionRequest

type ToolResultContent

type ToolResultContent = internaltypes.ToolResultContent

type ToolUseContent

type ToolUseContent = internaltypes.ToolUseContent

type TurnID

type TurnID = internaltypes.TurnID

Jump to

Keyboard shortcuts

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