greentic-types
Shared primitives for Greentic runtimes and surfaces to describe tenant-aware executions, normalized invocation envelopes, and structured node errors.
Features
- Tenant, team, user, and environment identifiers with optional serde support
TenantCtxwith attempt counters and millisecond deadlinesInvocationEnvelopeshared across messaging, cron, webhook, and runtime surfacesNodeErrorwith retry/backoff hints and structured text/binary details- Pure-Rust idempotency key helper compatible with
no_std
Usage
use ;
Development
no_std
Enable default-features = false and use only time-backed types that don't require alloc-heavy helpers.
Pack spec
Use greentic_types::pack_spec::{PackSpec, ToolSpec} to deserialize pack.yaml files shared across Greentic surfaces.
id: greentic.weather.demo
version: 0.1.0
flow_files:
- flows/weather_bot.ygtc
imports_required:
tools:
- name: weather_api
source: embedded
path: tools/weatherapi.wasm
The tools list is optional and primarily for legacy embedded tooling; MCP-first packs can omit it entirely.
License
MIT License. See LICENSE.