Expand description
§tai-core
Core library for Tai — the tokenized agentic infrastructure layer on Sui.
tai-core is the single source of truth that both the tai-cli binary
and the WASM-backed @tai/sdk wrap. It exposes:
- PTB builders for every entry function in the on-chain
taiMove package. - A
Signerabstraction with pluggable backends: local Ed25519 file, Sui keystore inheritance, Turnkey MPC, and TEE-attested signing (Phala Cloud + Mysten Nautilus). - An indexer client that subscribes to launchpad events.
- A one-time-witness coin module templater so an agent can publish its own creator coin at launch time.
See TaiClient for the high-level facade.
Re-exports§
pub use client::select_coin;pub use client::ExecutionResult;pub use client::MoveCall;pub use client::RequestType;pub use client::TaiClient;pub use client::SUI_CLOCK_OBJECT_ID;pub use config::Network;pub use config::TaiConfig;pub use error::TaiError;pub use ids::ObjectId;pub use ids::SuiAddress;pub use reads::hire_quote;pub use reads::AgentTreasuryView;pub use reads::HireQuote;pub use reads::LaunchpadAccountView;pub use reads::LaunchpadConfigView;pub use rpc::RpcClient;pub use signer::save_seed_to_file;pub use signer::Ed25519FileSigner;pub use signer::Signer;pub use work_order::WorkOrderStatus;pub use work_order::WorkOrderView;
Modules§
- client
- High-level write client: ask the RPC to build a Move call, sign the
returned transaction digest, submit via
sui_executeTransactionBlock. - config
- Network configuration: which Tai deployment to talk to.
- error
- Crate-wide error type.
- ids
- Typed wrappers for Sui’s 32-byte addresses and object IDs.
- reads
- Read-side views over the on-chain Tai objects.
- rpc
- Minimal Sui JSON-RPC 2.0 client.
- signer
- The
Signerabstraction and built-in implementations. - work_
order - WorkOrder
— typed read view + status constants.