Cereal docs
TypeScript SDKTypeScript signatures

DefineAgentOptions

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 DefineAgentOptions {
    readonly resolveExperiment?: (input: {
        readonly identity?: Identity;
        readonly metadata?: SessionMetadata;
    }) => import("./types.js").ExperimentSelection | Promise<import("./types.js").ExperimentSelection>;
    readonly agent: AgentSpec;
    readonly tools?: ReadonlyArray<CerealTool>;
    readonly mcpServers?: ReadonlyArray<McpServerSpec>;
    readonly hooks?: CerealHooks;
    readonly mcpPath?: string;
    readonly hooksPath?: string;
    readonly verify?: VerificationOptions;
}

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

Related SDK types: VerificationOptions, AgentSpec, CerealHooks, McpServerSpec, CerealTool.