AnthropicRequestBuilder class
Helper class to build Anthropic API request bodies Separates the complex request building logic into focused methods
Constructors
Properties
- config → AnthropicConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildRequestBody(
List< ChatMessage> messages, List<Tool> ? tools, bool stream) → Map<String, dynamic> - Build complete request body for Anthropic API
-
convertTool(
Tool tool) → Map< String, dynamic> - Convert a Tool to Anthropic API format
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited