Skip to main content

Crate astrid_types

Crate astrid_types 

Source
Expand description

Shared data types for the Astrid secure agent runtime.

This crate provides the canonical definitions for:

  • IPC payload schemas (cross-boundary messaging between WASM guests and host)
  • LLM message, tool, and streaming types

It has zero dependency on astrid-core and minimal dependencies overall (serde, uuid, chrono with serde-only features), so it compiles on wasm32-unknown-unknown for capsule SDK consumption without dragging in the kernel.

Kernel-management RPC types (CLI ↔ daemon: KernelRequest, KernelResponse, etc.) live in astrid_core::kernel_api. They depend on PrincipalId and Quotas and therefore cannot live here.

Re-exports§

pub use ipc::IpcMessage;
pub use ipc::IpcPayload;
pub use ipc::OnboardingField;
pub use ipc::OnboardingFieldType;
pub use ipc::SelectionOption;
pub use llm::ContentPart;
pub use llm::LlmResponse;
pub use llm::LlmToolDefinition;
pub use llm::Message;
pub use llm::MessageContent;
pub use llm::MessageRole;
pub use llm::StopReason;
pub use llm::StreamEvent;
pub use llm::ToolCall;
pub use llm::ToolCallResult;
pub use llm::Usage;

Modules§

ipc
Cross-boundary IPC message schemas and payloads.
llm
LLM types for messages, tools, and streaming.