Skip to main content

AnthropicAiQueryNodeConfiguration

Namespace: Meshmakers.Octo.MeshAdapter.Nodes.Transform

Configuration for Anthropic AI Query node that uses Claude to extract information from data

public record AnthropicAiQueryNodeConfiguration : SourceTargetPathNodeConfiguration, INodeConfiguration, IEquatable<NodeConfiguration>, ITargetPathNodeConfiguration, IEquatable<TargetPathNodeConfiguration>, IPathNodeConfiguration, IEquatable<SourceTargetPathNodeConfiguration>, IEquatable<AnthropicAiQueryNodeConfiguration>

Inheritance Object → NodeConfiguration → TargetPathNodeConfiguration → SourceTargetPathNodeConfiguration → AnthropicAiQueryNodeConfiguration
Implements INodeConfiguration, IEquatable<NodeConfiguration>, ITargetPathNodeConfiguration, IEquatable<TargetPathNodeConfiguration>, IPathNodeConfiguration, IEquatable<SourceTargetPathNodeConfiguration>, IEquatable<AnthropicAiQueryNodeConfiguration>

Properties

ApiKey

The Anthropic API key for authentication

public string ApiKey { get; set; }

Property Value

String

Model

The Claude model to use (e.g., "claude-3-5-sonnet-20241022", "claude-3-haiku-20240307")

public string Model { get; set; }

Property Value

String

Question

The question/prompt to ask the AI about the data

public string Question { get; set; }

Property Value

String

DataPaths

Optional context data paths to include in the query (e.g., ["$.ExtractedText", "$.DocumentMetadata"])

public String[] DataPaths { get; set; }

Property Value

String[]

SystemPrompt

System prompt to set the context for the AI

public string SystemPrompt { get; set; }

Property Value

String

MaxTokens

Maximum tokens for the response

public int MaxTokens { get; set; }

Property Value

Int32

Temperature

Temperature for response generation (0.0 to 1.0)

public double Temperature { get; set; }

Property Value

Double

ResponseFormat

Expected response format (e.g., "json", "text")

public string ResponseFormat { get; set; }

Property Value

String

IncludeRawResponse

Whether to include the raw AI response in the output

public bool IncludeRawResponse { get; set; }

Property Value

Boolean

RawResponseOutputPath

Output path for the raw AI response (if IncludeRawResponse is true)

public string RawResponseOutputPath { get; set; }

Property Value

String

ContinueOnError

Whether to continue processing if the AI query fails

public bool ContinueOnError { get; set; }

Property Value

Boolean

McpServerUrl

Optional URL of the OctoMesh MCP server (e.g. "https://localhost:5017"). When set, Claude can use MCP tools to query live OctoMesh data instead of relying on static context. The tenant ID is appended automatically: {McpServerUrl}/{tenantId}/mcp

public string McpServerUrl { get; set; }

Property Value

String

MaxToolRounds

Maximum number of tool use rounds to prevent infinite loops (default: 10)

public int MaxToolRounds { get; set; }

Property Value

Int32

ConversationHistoryPath

Optional JSON path to conversation history array. Each entry should have "role" (user/assistant) and "content" fields. When set, previous messages are included for multi-turn conversations.

public string ConversationHistoryPath { get; set; }

Property Value

String

JsonFormatSample

Sample JSON format for structured responses

public string JsonFormatSample { get; set; }

Property Value

String

Path

public string Path { get; set; }

Property Value

String

TargetPath

public string TargetPath { get; set; }

Property Value

String

TargetValueWriteMode

public TargetValueWriteModes TargetValueWriteMode { get; set; }

Property Value

TargetValueWriteModes

TargetValueKind

public ValueKinds TargetValueKind { get; set; }

Property Value

ValueKinds

DocumentMode

public DocumentModes DocumentMode { get; set; }

Property Value

DocumentModes

Description

public string Description { get; set; }

Property Value

String

Constructors

AnthropicAiQueryNodeConfiguration()

Caution

Constructors of types with required members are not supported in this version of your compiler.


public AnthropicAiQueryNodeConfiguration()