IAssistantClient

Abstracts the Anthropic API client for testability.

public interface IAssistantClient

1. Methods

1.1. SendMessageAsync(string, string, List<(string Role, string Content)>)

Sends a message to the assistant and returns the response text.

Task<string> SendMessageAsync(string model, string systemPrompt, List<(string Role, string Content)> messages)
Table 1. Parameters
Name Type Description

model

string

The model identifier to use.

systemPrompt

string

The system prompt providing context.

messages

List<(string Role, string Content)>

The conversation history as (role, content) tuples.

Returns: Task<string> — The assistant’s response text.