types

Shared TypeScript type definitions for the Regent SDK. This package has no dependencies on other @regent/* packages.

Installation

bun add @regent/types

Overview

Types are organized by category and can be imported via subpaths:

// Import from specific category
import type { AgentMeta, EntrypointDef } from '@regent/types/core';
import type { AgentCard, A2AClient } from '@regent/types/a2a';
import type { PaymentsConfig } from '@regent/types/payments';

// Or from root
import type { AgentMeta } from '@regent/types';

Type Categories

Core Types (@regent/types/core)

Agent runtime and extension system types.

AgentMeta

AgentConfig

AgentContext

EntrypointDef

EntrypointHandler

EntrypointStreamHandler

Extension

AgentRuntime

Usage

HTTP Types (@regent/types/http)

HTTP protocol and streaming types.

Stream Envelope Types

StreamEnvelope (Union)

StreamPushEnvelope

Envelopes that can be pushed via emit():

AgentHttpHandlers

A2A Types (@regent/types/a2a)

Agent-to-Agent protocol types.

AgentCard

AgentCapabilities

Skill

Task Types

A2AClient

Payments Types (@regent/types/payments)

Payment configuration and limits.

PaymentsConfig

PaymentPolicyGroup

EntrypointPrice

Wallets Types (@regent/types/wallets)

Wallet configuration and signing.

WalletConnector

WalletMetadata

WalletsConfig

AP2 Types (@regent/types/ap2)

Agent Payments Protocol types.

AP2Role

AP2Config

Identity Types (@regent/types/identity)

ERC-8004 identity types.

TrustModel

RegistrationEntry

Scheduler Types (@regent/types/scheduler)

Task scheduling types.

Schedule

Hire

Job

Analytics Types (@regent/types/analytics)

Payment analytics types.

AnalyticsSummary

Subpath Exports

Last updated