Cereal docs
TypeScript SDKTypeScript signatures

AgentSpec

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 AgentSpec {
    readonly experiment?: AgentDefinition["experiment"];
    readonly evaluators?: AgentDefinition["evaluators"];
    readonly slug: string;
    readonly name?: string;
    readonly description?: string;
    readonly model: ModelConfig;
    readonly system: string;
    readonly policies?: Policies;
    readonly limits?: Limits;
    readonly compaction?: Compaction;
    readonly tools?: ReadonlyArray<ToolConfig>;
    readonly overrides?: Overrides;
    readonly toolLoading?: ToolLoading;
    readonly subagents?: ReadonlyArray<SubagentSpec>;
    readonly subagentPolicy?: SubagentPolicy;
    readonly sandbox?: SandboxConfig;
    readonly identity?: IdentityPolicy;
}

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

Related SDK types: ModelConfig, SubagentSpec.