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§

Source§

readonly addAttachments?: boolean

Whether to add attachments to the message

Source§

readonly attachmentsInputType?: "url" | "binary"

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

Source§

readonly attachmentsUrls?: string

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

Source§

readonly binaryPropertyName?: string

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

Source§

readonly documentUrls?: string

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

Source§

readonly fileId?: string

ID of the file to delete

Source§

readonly fileUrl?: string

URL of the file to upload

Source§

readonly imageUrls?: string

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

Source§

readonly inputType?: "url" | "binary"

Default: "url"

Source§

readonly limit?: number

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

Source§

readonly messages?: {
    values: {
        content?: string;
        role?: "user" | "assistant";
    }[];
}

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

Source§

readonly modelId?: { mode: "id" | "list"; value: string }

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

Source§

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

Default: "analyze"

Source§

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: {}

Source§

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

Default: "text"

Source§

readonly returnAll?: boolean

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

Source§

readonly simplify?: boolean

Whether to simplify the response or not Default: true

Source§

readonly task?: string

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

Source§

readonly text?: string

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