Interface AnthropicNodeParameters

Source
interface AnthropicNodeParameters {
    addAttachments?: boolean;
    attachmentsInputType?: "url" | "binary";
    attachmentsUrls?: string;
    binaryPropertyName?: string;
    documentUrls?: string;
    fileId?: string;
    fileUrl?: string;
    imageUrls?: string;
    inputType?: "url" | "binary";
    limit?: number;
    messages?: {
        values: {
            content?: string;
            role?: "user" | "assistant";
        }[];
    };
    modelId?: { mode: "id"
    | "list"; value: string };
    operation?:
        | "get"
        | "list"
        | "deleteFile"
        | "upload"
        | "analyze"
        | "generate"
        | "improve"
        | "templatize"
        | "message";
    options?: | { maxTokens?: number }
    | { fileName?: string }
    | { feedback?: string; system?: string }
    | { system?: string }
    | {
        allowedDomains?: string;
        blockedDomains?: string;
        codeExecution?: boolean;
        includeMergedResponse?: boolean;
        maxTokens?: number;
        maxToolsIterations?: number;
        maxUses?: number;
        system?: string;
        temperature?: number;
        topK?: number;
        topP?: number;
        webSearch?: boolean;
    };
    resource?: | "file"
    | "document"
    | "image"
    | "prompt"
    | "text";
    returnAll?: boolean;
    simplify?: boolean;
    task?: string;
    text?: string;
}

Properties§

§readonly addAttachments?: boolean

Whether to add attachments to the message

§readonly attachmentsInputType?: "url" | "binary"

The type of input to use for the attachments Default: "url"

§readonly attachmentsUrls?: string

URL(s) of the file(s) to attach, multiple URLs can be added separated by comma

§readonly binaryPropertyName?: string

Name of the binary field(s) which contains the document(s), seperate multiple field names with commas Default: "data"

§readonly documentUrls?: string

URL(s) of the document(s) to analyze, multiple URLs can be added separated by comma

§readonly fileId?: string

ID of the file to delete

§readonly fileUrl?: string

URL of the file to upload

§readonly imageUrls?: string

URL(s) of the image(s) to analyze, multiple URLs can be added separated by comma

§readonly inputType?: "url" | "binary"

Default: "url"

§readonly limit?: number

Max number of results to return Default: 50 Type options: {"minValue":1,"maxValue":1000}

§readonly messages?: { ... }

Messages that constitute the prompt to be improved Default: {"values":[{"content":"","role":"user"}]} Type options: {"sortable":true,"multipleValues":true}

§readonly modelId?: { ... }

Default: {"mode":"list","value":""}

§readonly operation?:
    | "get"
    | "list"
    | "deleteFile"
    | "upload"
    | "analyze"
    | "generate"
    | "improve"
    | "templatize"
    | "message"

Default: "analyze"

§readonly options?:
    | { maxTokens?: number }
    | { fileName?: string }
    | { feedback?: string; system?: string }
    | { system?: string }
    | {
        allowedDomains?: string;
        blockedDomains?: string;
        codeExecution?: boolean;
        includeMergedResponse?: boolean;
        maxTokens?: number;
        maxToolsIterations?: number;
        maxUses?: number;
        system?: string;
        temperature?: number;
        topK?: number;
        topP?: number;
        webSearch?: boolean;
    }

Default: {}

§readonly resource?: "file" | "document" | "image" | "prompt" | "text"

Default: "text"

§readonly returnAll?: boolean

Whether to return all results or only up to a given limit

§readonly simplify?: boolean

Whether to simplify the response or not Default: true

§readonly task?: string

Description of the prompt's purpose Type options: {"rows":2}

§readonly text?: string

Default: "What's in this document?" Type options: {"rows":2}