Cereal docs
TypeScript SDKTypeScript signatures

AgentRouter

Public TypeScript declaration from @trycereal/sdk.

Import from @trycereal/sdk. Generated from the repository SDK declarations (package version 0.0.0); not from HTTP request schemas.

export interface AgentRouter {
    readonly agents: ReadonlyArray<DefinedAgent>;
    readonly fetch: WebHandler;
    readonly handlers: CerealHandlers;
    init(options?: CerealInitOptions): Promise<void>;
    close(): Promise<void>;
    sync(options?: Omit<SyncOptions, "mcpPath" | "hooksPath" | "channel">): Promise<ReadonlyArray<SyncResult>>;
}

See SDK setup, authoring, client behavior, and the API/SDK map for usage. Domain types are described in schema reference.

Related SDK types: DefinedAgent, SyncOptions, SyncResult, CerealHandlers, WebHandler, CerealInitOptions.