Skip to main content

Crate gate4agent_adapters

Crate gate4agent_adapters 

Source
Expand description

Pure provider adapter contracts and implementations.

Role: adapter shell logic without OS authority. Owns: revisioned adapter definitions and pure provider parsing/building. Exports: adapter registry and family-specific pure adapters. Forbidden: async, locks, channels, process, filesystem, database, network, credentials, and product presentation policy.

Structs§

AdapterDescriptor
AdapterRegistry
Validated registry keyed by adapter family and implementation identity.
AdapterRuntimeRegistry
Runtime implementations keyed by the same revisioned family binding used by the declarative adapter registry.
AgentSessionOptionCatalog
CapabilityProbePlan
CodexPtySessionIdentityExtractor
Extracts Codex’s canonical thread UUID only from its rendered /status card. Raw PTY output is deliberately not accepted because prompt/model echoes can contain status-shaped text.
HistoryDocument
HistoryMessage
HistorySession
HistorySourceVariant
KimiPtySessionIdentityExtractor
Extracts the one explicit Kimi terminal identity label without treating arbitrary output, prompt echo, or an internal PTY UUID as provider truth.
OneShotAdapterSpec
OneShotModelSpec
OneShotPlan
OneShotThinkingLevel
ResolvedSessionOptionLaunch
ResumePlan
SessionOption
SessionOptionApply
SessionOptionChoice
SessionOptionModel
SessionOptionModelListSpec

Enums§

AdapterRegistryError
AdapterRuntimeRegistryError
CapabilityProbeAdapterError
HistoryAdapterError
HistoryRole
HistorySourceLayout
OneShotAdapterError
OneShotModelSource
OneShotPromptDelivery
OneShotSessionPersistence
ResumeAdapterError
SessionOptionAdapterError
SessionOptionArgumentOverride
SessionOptionCategory
SessionOptionInteractionDetection
SessionOptionKind
SessionOptionLaunchApplication
SessionOptionMidSessionApplication
SessionOptionMidSessionPlan

Constants§

BUILTIN_ADAPTER_REVISION
CAPABILITY_PROBE_OUTPUT_MAX_BYTES
CAPABILITY_PROBE_REVISION
CLAUDE_CODE_INLINE_REVISION
CODEX_CLI_INLINE_REVISION
HISTORY_DOCUMENT_MAX_BYTES
HISTORY_MESSAGE_MAX_CHARS
HISTORY_METADATA_MAX_BYTES
HISTORY_STORED_MESSAGES_MAX
KIMI_CODE_INLINE_REVISION
KIMI_PTY_SESSION_ID_MAX_BYTES
ONE_SHOT_OUTPUT_MAX_BYTES
ONE_SHOT_REVISION
ONE_SHOT_THINKING_OPTION_ID
ONE_SHOT_TIMEOUT_SECONDS
RESUME_SESSION_ID_MAX_BYTES
SESSION_OPTION_CATALOG_REVISION
SESSION_OPTION_MODELS_MAX
SESSION_OPTION_MODEL_LIST_MAX_BYTES

Functions§

build_resume_plan
Builds argv only for live control-plane resume contracts grounded in pinned reference implementations or verified vendor CLI contracts.
build_resume_plan_for_identity
builtin_adapter_registry
capability_probe_plan
history_source_variants
Declares the provider-owned source layouts an effect-owning history shell may project into HistoryDocument. The pure adapter never opens paths or databases; callers must bound and authorize every candidate and related read before supplying metadata/transcript content.
merge_session_option_models
one_shot_spec
one_shot_specs
parse_capability_models
parse_history
parse_session_option_models
plan_mid_session_action
plan_mid_session_option
resolve_one_shot_plan
resolve_one_shot_plan_with_persistence
resolve_session_option_launch
session_option_catalog