Bluestep JS Documentation
    Preparing search index...

    Interface AiToolForAgentOptions

    Options for B.ai.tool.agent(). name and description are required.

    interface AiToolForAgentOptions {
        annotations?: AiToolAnnotations;
        description: string;
        inputSchema?: JSONSchema;
        name: string;
    }
    Index
    annotations?: AiToolAnnotations

    Advisory labels for the tool, as on any other. Default: none — what a sub-agent does is whatever its own tools do.

    description: string

    What the sub-agent is for, as the parent model reads it. Say what it knows and what it will answer, not that it is an agent.

    inputSchema?: JSONSchema

    Override the tool's input schema. Default: {type: "object", properties: {message: {type: "string"}}, required: ["message"]} — one message, sent to the sub-agent as a user turn. An override must still produce a message property, since that is what the executor sends.

    name: string

    Tool name the parent model calls the sub-agent by. Must be unique within a single B.ai.call invocation.