Skip to main content

Crate rightkit_agent_engine_protocol

Crate rightkit_agent_engine_protocol 

Source
Expand description

rightkit-agent-engine-protocol — pure data types crate.

No I/O, no async. All types implement serde::Serialize + serde::Deserialize using camelCase field names and $kind discriminators that match the TypeScript frontend types in host-app/src/lib/types.ts exactly.

Re-exports§

pub use approvals::ElicitationAction;
pub use approvals::ElicitationRequest;
pub use approvals::ElicitationRequestEvent;
pub use approvals::ExecApprovalKind;
pub use approvals::ExecApprovalRequestEvent;
pub use approvals::ExecPolicyAmendment;
pub use approvals::GuardianAssessmentAction;
pub use approvals::GuardianAssessmentDecisionSource;
pub use approvals::GuardianAssessmentEvent;
pub use approvals::GuardianAssessmentOutcome;
pub use approvals::GuardianAssessmentStatus;
pub use approvals::GuardianCommandSource;
pub use approvals::GuardianRiskLevel;
pub use approvals::GuardianUserAuthorization;
pub use approvals::NetworkApprovalContext;
pub use approvals::NetworkApprovalProtocol;
pub use approvals::NetworkPolicyAmendment;
pub use approvals::NetworkPolicyRuleAction;
pub use approvals::PendingApprovalContext;
pub use approvals::PermissionDecision;
pub use approvals::PermissionDecisionResult;
pub use approvals::PermissionGateRequest;
pub use approvals::PermissionGateResponse;
pub use approvals::ReviewDecision;
pub use artifact::ArtifactApproval;
pub use artifact::ArtifactRow;
pub use artifact::ArtifactVerdict;
pub use effect_settlement::ExternalEffectSettlement;
pub use event::AgentRosterRow;
pub use event::CompactionFederationDecisionV1;
pub use event::CompactionFederationSelectionReceiptV1;
pub use event::MiddlewareDecisionEvidence;
pub use event::ModelRouteDecisionPayload;
pub use event::OrchestrationObservation;
pub use event::PriceSnapshot;
pub use event::ProtocolEvent;
pub use event::ProtocolEventMeta;
pub use event::RunBudgetExhausted;
pub use event::RunBudgetKind;
pub use event::RunFailureKind;
pub use event::RunOriginFailure;
pub use event::RunOwnershipAction;
pub use event::RunOwnershipFailure;
pub use event::SelfReviewProposalDraft;
pub use event::SelfReviewProposalKind;
pub use event::SessionUsageRollup;
pub use event::ShellExitStatus;
pub use event::UserQuestion;
pub use event::UserQuestionOption;
pub use event::VerificationIssue;
pub use event::COMPACTION_FEDERATION_SCHEMA_V1;
pub use ids::assistant_message_id;
pub use ids::is_canonical_uuid_v7;
pub use ids::message_id;
pub use ids::tool_call_origin_id;
pub use ids::tool_result_id;
pub use ids::uuid_v7;
pub use message::TranscriptMessage;
pub use op::Op;
pub use protocol::AskForApproval;
pub use protocol::GranularApprovalConfig;
pub use protocol::NetworkAccess;
pub use references::ReferenceMeta;
pub use references::ReferenceProvenance;
pub use refs::ArtifactRef;
pub use refs::OutputRef;
pub use refs::TOOL_OUTPUT_INTERNAL_KIND;
pub use retry_notice::RetryNotice;
pub use retry_notice::RetryNotifier;
pub use schedule::default_job_mode;
pub use schedule::default_schema_version;
pub use schedule::ScheduleRunEvent;
pub use schedule::ScheduleRunResourceLimits;
pub use schedule::ScheduleRunState;
pub use task::CompletionPredicateResult;
pub use task::DoneWhenPredicate;
pub use task::TaskNode;
pub use task::TaskState;
pub use time::now_iso;
pub use tool::ToolCall;
pub use tool_output::ToolOutputNotifier;
pub use tool_output::ToolOutputStream;
pub use traits::ArtifactTrustStore;
pub use traits::SessionConduit;
pub use trust::ContentTrust;
pub use trust::TrustEnvelope;

Modules§

approvals
Structured approval request contracts ported from Codex’s protocol.
artifact
effect_settlement
event
ids
Canonical stable identifiers for sessions, forks, events, and transcript messages.
message
op
protocol
Approval policy contracts ported from Codex’s portable protocol.
references
refs
retry_notice
Provider retry notices: a plain-data hook so a provider adapter can tell its caller “I am backing off and retrying” without owning any session state. The engine installs a notifier on the request metadata and turns each notice into a providerRetrying protocol event.
schedule
Canonical schedule-run types — the single definition in the workspace.
secret_scan
Shared secret detection (A195).
task
time
tool
tool_output
Live tool output hook: a plain-data sink so a long-running process tool (shell/exec) can report output chunks while it runs without owning any session state. The engine installs a sink per tool call and turns the (coalesced) chunks into toolOutputDelta protocol events.
traits
trust