Skip to main content

Crate akribes_types

Crate akribes_types 

Source
Expand description

Wire-level types shared by the Akribes SDK and core.

This crate holds the data shapes that travel between the Akribes server and its clients: event::EngineEvent, value::Value, the slice of the AST surfaced by SDKs (ast::TypeField, ast::TypeRef, ast::Span, ast::ActorHint), and the error envelope (error::ErrorCode, error::ErrorKind, error::ErrorSource, error::ErrorDetail).

Splitting these out of akribes-core lets akribes-sdk (and other downstream consumers like puto) depend on a thin, dependency-light crate without pulling in the parser, analyzer, compiler, engine, or provider stack. akribes-core re-exports the moved types so existing use akribes_core::event::EngineEvent paths keep compiling.

Modulesยง

ast
AST shapes that travel over the wire.
error
Structured error envelope shared by core and the SDK.
event
value
Value type carried by every workflow input/output and engine event.