Skip to main content

Crate gate4agent_types

Crate gate4agent_types 

Source
Expand description

Pure data contracts shared by gate4agent engines and shells.

Structs§

AcpTransportSpec
ActiveProviderTool
AdapterBinding
AdapterId
Stable identifier for one provider adapter implementation.
AgentAdapterCapabilities
AgentCapabilities
AgentCommand
AgentId
Stable, extensible identifier for an agent CLI.
AgentInstanceId
AgentReadinessSpec
AgentSpec
AgentTransportCapabilities
CapabilityModelSummary
CapabilityProbeRequest
CapabilitySnapshot
CommandEnvelope
CommandId
ContextWindowUsage
ControlEvent
ControlHealth
ControlSnapshot
DetectionSpec
EffectEnvelope
ForegroundProcess
ForegroundSnapshot
HistoryCandidateSummary
HistoryMessageRecord
HistoryQuery
HistorySessionRecord
HistorySnapshot
LaunchSpec
NativeSessionCatalogEntry
NativeSessionCatalogPage
NativeSessionCatalogSummary
NativeSessionExternalGroup
NativeSessionPreview
NativeSessionPreviewMessage
ObservationEnvelope
OperationId
PendingCapabilityProbe
PendingHistoryOperation
PendingResumeOperation
PipeTransportSpec
Optional catalog override used by controlled fixtures and providers whose headless executable differs from their interactive PTY executable.
PreparedInput
PreparedWrite
PromptPayload
PromptSpec
ProviderInteraction
ProviderInteractionId
ProviderInteractionTarget
ProviderRuntimePolicy
ProviderSessionIdentity
ProviderSnapshot
ProviderSource
ProviderSourceCursor
ProviderSubagent
ResumeLaunchRequest
ResumeSessionSummary
ResumeSnapshot
SessionGeneration
SessionOptionSelection
SessionRecordPreview
SessionSnapshot
ShellCommand
StartRequest
TerminalFrame
TerminalSize
TerminalText
TokenUsage

Enums§

AdapterBindingError
AdapterFamily
AdapterIdError
AdapterVerification
AgentCommandMode
AgentIdError
CapabilityProbeFailure
CapabilityValidationError
ControlCommand
ControlEffect
ControlError
ControlEventKind
ControlObservation
DraftReadySignal
ForegroundAuthority
ForegroundProcessKind
ForegroundRequirement
Route proof an effect executor must obtain immediately before a PTY write.
HistoryMessageRole
HistoryOperation
HistoryValidationError
InitialPromptMode
InputAction
InputPrepareError
NativeDraftMode
NativeSessionCatalogScope
NativeSessionCatalogWindow
NativeSessionExternalGroupKind
ObservationIgnoredReason
PipePromptDelivery
PipeProtocol
PreparedInputKind
PreparedWriteKind
ProcessMatcher
PromptFraming
ProviderActivity
ProviderEvent
ProviderEventValidationError
ProviderInteractionKind
ProviderInteractionOutcome
ProviderInteractionResponse
ProviderInteractionResponseError
ProviderInteractionResponseKind
ProviderInteractionStatus
ProviderRuntimeCapability
ProviderRuntimePolicyError
ProviderSessionKey
ResumeAuthorityTarget
ResumePhase
ResumeTarget
ResumeValidationError
RuntimePlatform
Runtime in which an executable is detected or launched.
SessionOptionValidationError
SessionOptionValue
SessionStatus
SpecVerification
Provenance state for a built-in launch specification.
TerminalControl
TerminalMouseProtocolEncoding
TransportKind

Constants§

BRACKETED_PASTE_END
BRACKETED_PASTE_START
CAPABILITY_MODELS_MAX
CAPABILITY_MODEL_ID_MAX_BYTES
CAPABILITY_MODEL_LABEL_MAX_BYTES
CONTROL_INSTANCE_IDENTITIES_CAPACITY
CONTROL_INSTANCE_IDENTITIES_MAX
CONTROL_PROTOCOL_VERSION
CONTROL_SESSIONS_MAX
FOREGROUND_PROCESS_NAME_MAX_BYTES
HISTORY_CANDIDATE_ID_MAX_BYTES
HISTORY_DISCOVERY_LIMIT_MAX
HISTORY_ERROR_MAX_BYTES
HISTORY_MESSAGES_MAX
HISTORY_MESSAGE_MAX_BYTES
HISTORY_MODEL_MAX_BYTES
HISTORY_SESSION_ID_MAX_BYTES
HISTORY_TITLE_MAX_BYTES
MAX_ADAPTER_REVISION_LEN
NATIVE_SESSION_CATALOG_LIMIT_MAX
NATIVE_SESSION_EXTERNAL_GROUP_ID_MAX_BYTES
NATIVE_SESSION_EXTERNAL_GROUP_LABEL_MAX_BYTES
NATIVE_SESSION_PREVIEW_MESSAGE_LIMIT_MAX
NATIVE_SESSION_PREVIEW_TEXT_MAX_BYTES
PROVIDER_EVENT_ID_MAX_BYTES
PROVIDER_EVENT_TEXT_MAX_BYTES
PROVIDER_EVENT_TOOLS_MAX
PROVIDER_INGRESS_EVENTS_MAX
PROVIDER_INTERACTIONS_MAX
PROVIDER_INTERACTION_FAILURE_MAX_BYTES
PROVIDER_INTERACTION_RESPONSE_MAX_BYTES
PROVIDER_SESSION_LOCATOR_MAX_BYTES
PROVIDER_SUBAGENTS_MAX
RESUME_ERROR_MAX_BYTES
SEMANTIC_PROMPT_MAX_BYTES
SESSION_OPTION_ID_MAX_BYTES
SESSION_OPTION_VALUES_MAX
SESSION_OPTION_VALUE_MAX_BYTES
TERMINAL_COLUMNS_MAX
TERMINAL_INPUT_CHUNK_MAX_BYTES
TERMINAL_INPUT_MAX_BYTES
TERMINAL_ROWS_MAX
TERMINAL_SUBMIT_DELAY_MS
TERMINAL_WRITE_DELAY_MAX_MS
WORKING_DIRECTORY_MAX_BYTES

Functions§

normalize_executable_name
Normalize an executable name for portable provider matching.
normalize_semantic_prompt
Validate and normalize a semantic prompt before it crosses a process or protocol boundary. Terminal controls are rendered inert consistently with PTY prompt preparation, but no terminal framing bytes are added.
prepare_agent_command
Prepare a provider-native slash command after a dispatcher has selected the foreground agent. Arguments are TUI text segments, not shell arguments.
prepare_input
Converts an input action to bounded writes without touching a PTY.
prepare_input_with_limits
prepare_shell_command
Prepare an intentional command line for a dispatcher that has just confirmed a shell owns the PTY foreground.
sanitize_prompt_text
Neutralizes terminal control sequences while preserving prompt newlines and tabs.
validate_candidate_id
validate_capability_models
validate_history_error
validate_native_session_id
validate_resume_error