docs: documentation for v0.1.0 [skip ci]
This commit is contained in:
1 parent
838e7ba859
commit
a4a3379dc4
20 files changed
+1745
-169
No files matched your search
@@ -162,9 +162,9 @@ Class BaseMessageRequest <a class="header-action link-secondary" title="View so
|
||||
|
||||
<a id="AnthropicClient_Models_BaseMessageRequest__ctor_" data-uid="AnthropicClient.Models.BaseMessageRequest.#ctor*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_BaseMessageRequest__ctor_System_String_System_Collections_Generic_List_AnthropicClient_Models_Message__System_Int32_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__System_Decimal_System_Nullable_System_Int32__System_Nullable_System_Decimal__AnthropicClient_Models_ToolChoice_System_Collections_Generic_List_AnthropicClient_Models_Tool__System_Boolean_System_Collections_Generic_List_System_String__" data-uid="AnthropicClient.Models.BaseMessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Boolean,System.Collections.Generic.List{System.String})">
|
||||
BaseMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, bool, List<string>?)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L99"><i class="bi bi-code-slash"></i></a>
|
||||
<h3 id="AnthropicClient_Models_BaseMessageRequest__ctor_System_String_System_Collections_Generic_List_AnthropicClient_Models_Message__System_Int32_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__System_Decimal_System_Nullable_System_Int32__System_Nullable_System_Decimal__AnthropicClient_Models_ToolChoice_System_Collections_Generic_List_AnthropicClient_Models_Tool__System_Boolean_System_Collections_Generic_List_System_String__System_Collections_Generic_List_AnthropicClient_Models_TextContent__" data-uid="AnthropicClient.Models.BaseMessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Boolean,System.Collections.Generic.List{System.String},System.Collections.Generic.List{AnthropicClient.Models.TextContent})">
|
||||
BaseMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, bool, List<string>?, List<TextContent>?)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L135"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="AnthropicClient.Models.BaseMessageRequest.html">BaseMessageRequest</a> class.</p>
|
||||
@@ -172,7 +172,7 @@ Class BaseMessageRequest <a class="header-action link-secondary" title="View so
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">protected BaseMessageRequest(string model, List<Message> messages, int maxTokens = 1024, string? system = null, Dictionary<string, object>? metadata = null, decimal temperature = 0.0, int? topK = null, decimal? topP = null, ToolChoice? toolChoice = null, List<Tool>? tools = null, bool stream = false, List<string>? stopSequences = null)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">protected BaseMessageRequest(string model, List<Message> messages, int maxTokens, string? system, Dictionary<string, object>? metadata, decimal temperature, int? topK, decimal? topP, ToolChoice? toolChoice, List<Tool>? tools, bool stream, List<string>? stopSequences, List<TextContent>? systemMessages)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -187,7 +187,7 @@ Class BaseMessageRequest <a class="header-action link-secondary" title="View so
|
||||
<dd><p>The maximum number of tokens to generate.</p>
|
||||
</dd>
|
||||
<dt><code>system</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The system ID to use for the request.</p>
|
||||
<dd><p>The system prompt to use for the request.</p>
|
||||
</dd>
|
||||
<dt><code>metadata</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2">Dictionary</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>></dt>
|
||||
<dd><p>The metadata to include with the request.</p>
|
||||
@@ -212,6 +212,9 @@ Class BaseMessageRequest <a class="header-action link-secondary" title="View so
|
||||
</dd>
|
||||
<dt><code>stopSequences</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>></dt>
|
||||
<dd><p>The prompt stop sequences.</p>
|
||||
</dd>
|
||||
<dt><code>systemMessages</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="AnthropicClient.Models.TextContent.html">TextContent</a>></dt>
|
||||
<dd><p>The system messages to use for the request.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -252,7 +255,7 @@ Class BaseMessageRequest <a class="header-action link-secondary" title="View so
|
||||
|
||||
<h3 id="AnthropicClient_Models_BaseMessageRequest_MaxTokens" data-uid="AnthropicClient.Models.BaseMessageRequest.MaxTokens">
|
||||
MaxTokens
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L30"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L65"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the maximum number of tokens to generate.</p>
|
||||
@@ -285,7 +288,7 @@ public int MaxTokens { get; init; }</code></pre>
|
||||
|
||||
<h3 id="AnthropicClient_Models_BaseMessageRequest_Messages" data-uid="AnthropicClient.Models.BaseMessageRequest.Messages">
|
||||
Messages
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L25"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L60"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the messages to send to the model.</p>
|
||||
@@ -317,7 +320,7 @@ public int MaxTokens { get; init; }</code></pre>
|
||||
|
||||
<h3 id="AnthropicClient_Models_BaseMessageRequest_Metadata" data-uid="AnthropicClient.Models.BaseMessageRequest.Metadata">
|
||||
Metadata
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L36"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L71"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the metadata to include with the request.</p>
|
||||
@@ -381,7 +384,7 @@ public int MaxTokens { get; init; }</code></pre>
|
||||
|
||||
<h3 id="AnthropicClient_Models_BaseMessageRequest_StopSequences" data-uid="AnthropicClient.Models.BaseMessageRequest.StopSequences">
|
||||
StopSequences
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L41"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L76"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the prompt stop sequences.</p>
|
||||
@@ -414,7 +417,7 @@ public List<string> StopSequences { get; init; }</code></pre>
|
||||
|
||||
<h3 id="AnthropicClient_Models_BaseMessageRequest_Stream" data-uid="AnthropicClient.Models.BaseMessageRequest.Stream">
|
||||
Stream
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L73"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L108"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets a value indicating whether the message should be streamed.</p>
|
||||
@@ -446,15 +449,16 @@ public List<string> StopSequences { get; init; }</code></pre>
|
||||
|
||||
<h3 id="AnthropicClient_Models_BaseMessageRequest_System" data-uid="AnthropicClient.Models.BaseMessageRequest.System">
|
||||
System
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L20"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L25"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the system prompt to use for the request.</p>
|
||||
<div class="markdown level1 summary"><p>Gets the system message that will be used as the system prompt if no system messages are provided.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public string? System { get; init; }</code></pre>
|
||||
<pre><code class="lang-csharp hljs">[JsonIgnore]
|
||||
public string? System { get; init; }</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -474,11 +478,79 @@ public List<string> StopSequences { get; init; }</code></pre>
|
||||
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_BaseMessageRequest_SystemMessages_" data-uid="AnthropicClient.Models.BaseMessageRequest.SystemMessages*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_BaseMessageRequest_SystemMessages" data-uid="AnthropicClient.Models.BaseMessageRequest.SystemMessages">
|
||||
SystemMessages
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L31"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the system messages to send to the model to be used as the system prompt.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">[JsonIgnore]
|
||||
public List<TextContent>? SystemMessages { get; init; }</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Property Value</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="AnthropicClient.Models.TextContent.html">TextContent</a>></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_BaseMessageRequest_SystemPrompt_" data-uid="AnthropicClient.Models.BaseMessageRequest.SystemPrompt*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_BaseMessageRequest_SystemPrompt" data-uid="AnthropicClient.Models.BaseMessageRequest.SystemPrompt">
|
||||
SystemPrompt
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L39"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the system prompt that will be used for the request.
|
||||
If will return the system messages if they are provided, otherwise it will return the system message.
|
||||
If neither are provided, it will return null.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">[JsonPropertyName("system")]
|
||||
public List<TextContent>? SystemPrompt { get; }</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Property Value</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="AnthropicClient.Models.TextContent.html">TextContent</a>></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_BaseMessageRequest_Temperature_" data-uid="AnthropicClient.Models.BaseMessageRequest.Temperature*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_BaseMessageRequest_Temperature" data-uid="AnthropicClient.Models.BaseMessageRequest.Temperature">
|
||||
Temperature
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L47"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L82"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the temperature to use for the request.</p>
|
||||
@@ -510,7 +582,7 @@ public List<string> StopSequences { get; init; }</code></pre>
|
||||
|
||||
<h3 id="AnthropicClient_Models_BaseMessageRequest_ToolChoice" data-uid="AnthropicClient.Models.BaseMessageRequest.ToolChoice">
|
||||
ToolChoice
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L62"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L97"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the tool choice mode to use for the request.</p>
|
||||
@@ -543,7 +615,7 @@ public ToolChoice? ToolChoice { get; init; }</code></pre>
|
||||
|
||||
<h3 id="AnthropicClient_Models_BaseMessageRequest_Tools" data-uid="AnthropicClient.Models.BaseMessageRequest.Tools">
|
||||
Tools
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L68"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L103"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the tools to use for the request.</p>
|
||||
@@ -575,7 +647,7 @@ public ToolChoice? ToolChoice { get; init; }</code></pre>
|
||||
|
||||
<h3 id="AnthropicClient_Models_BaseMessageRequest_TopK" data-uid="AnthropicClient.Models.BaseMessageRequest.TopK">
|
||||
TopK
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L52"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L87"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the top-K value to use for the request.</p>
|
||||
@@ -607,7 +679,7 @@ public ToolChoice? ToolChoice { get; init; }</code></pre>
|
||||
|
||||
<h3 id="AnthropicClient_Models_BaseMessageRequest_TopP" data-uid="AnthropicClient.Models.BaseMessageRequest.TopP">
|
||||
TopP
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L57"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/BaseMessageRequest.cs/#L92"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the top-P value to use for the request.</p>
|
||||
|
||||
@@ -0,0 +1,262 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Class CacheControl | AnthropicClient </title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="title" content="Class CacheControl | AnthropicClient ">
|
||||
|
||||
<meta name="description" content="Represents the cache control to be used for content.">
|
||||
<link rel="icon" href="../favicon.ico">
|
||||
<link rel="stylesheet" href="../public/docfx.min.css">
|
||||
<link rel="stylesheet" href="../public/main.css">
|
||||
<meta name="docfx:navrel" content="../toc.html">
|
||||
<meta name="docfx:tocrel" content="toc.html">
|
||||
|
||||
<meta name="docfx:rel" content="../">
|
||||
|
||||
|
||||
<meta name="docfx:docurl" content="https://github.com/StevanFreeborn/anthropic-client/new/main/apiSpec/new?filename=AnthropicClient_Models_CacheControl.md&value=---%0Auid%3A%20AnthropicClient.Models.CacheControl%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">
|
||||
<meta name="loc:inThisArticle" content="In this article">
|
||||
<meta name="loc:searchResultsCount" content="{count} results for "{query}"">
|
||||
<meta name="loc:searchNoResults" content="No results for "{query}"">
|
||||
<meta name="loc:tocFilter" content="Filter by title">
|
||||
<meta name="loc:nextArticle" content="Next">
|
||||
<meta name="loc:prevArticle" content="Previous">
|
||||
<meta name="loc:themeLight" content="Light">
|
||||
<meta name="loc:themeDark" content="Dark">
|
||||
<meta name="loc:themeAuto" content="Auto">
|
||||
<meta name="loc:changeTheme" content="Change theme">
|
||||
<meta name="loc:copy" content="Copy">
|
||||
<meta name="loc:downloadPdf" content="Download PDF">
|
||||
|
||||
<script type="module" src="./../public/docfx.min.js"></script>
|
||||
|
||||
<script>
|
||||
const theme = localStorage.getItem('theme') || 'auto'
|
||||
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
|
||||
<header class="bg-body border-bottom">
|
||||
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
|
||||
<div class="container-xxl flex-nowrap">
|
||||
<a class="navbar-brand" href="../index.html">
|
||||
<img id="logo" class="svg" src="../logo.svg" alt="AnthropicClient">
|
||||
AnthropicClient
|
||||
</a>
|
||||
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<i class="bi bi-three-dots"></i>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navpanel">
|
||||
<div id="navbar">
|
||||
<form class="search" role="search" id="search">
|
||||
<i class="bi bi-search"></i>
|
||||
<input class="form-control" id="search-query" type="search" disabled="" placeholder="Search" autocomplete="off" aria-label="Search">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="container-xxl">
|
||||
<div class="toc-offcanvas">
|
||||
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
|
||||
<div class="offcanvas-header">
|
||||
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="offcanvas-body">
|
||||
<nav class="toc" id="toc"></nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<div class="actionbar">
|
||||
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
|
||||
<i class="bi bi-list"></i>
|
||||
</button>
|
||||
|
||||
<nav id="breadcrumb"></nav>
|
||||
</div>
|
||||
|
||||
<article data-uid="AnthropicClient.Models.CacheControl">
|
||||
|
||||
|
||||
|
||||
<h1 id="AnthropicClient_Models_CacheControl" data-uid="AnthropicClient.Models.CacheControl" class="text-break">
|
||||
Class CacheControl <a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/CacheControl.cs/#L8"><i class="bi bi-code-slash"></i></a>
|
||||
</h1>
|
||||
|
||||
<div class="facts text-secondary">
|
||||
<dl><dt>Namespace</dt><dd><a class="xref" href="AnthropicClient.html">AnthropicClient</a>.<a class="xref" href="AnthropicClient.Models.html">Models</a></dd></dl>
|
||||
<dl><dt>Assembly</dt><dd>AnthropicClient.dll</dd></dl>
|
||||
</div>
|
||||
|
||||
<div class="markdown summary"><p>Represents the cache control to be used for content.</p>
|
||||
</div>
|
||||
<div class="markdown conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public abstract class CacheControl</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<dl class="typelist inheritance">
|
||||
<dt>Inheritance</dt>
|
||||
<dd>
|
||||
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
|
||||
<div><span class="xref">CacheControl</span></div>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
<dl class="typelist derived">
|
||||
<dt>Derived</dt>
|
||||
<dd>
|
||||
<div><a class="xref" href="AnthropicClient.Models.EphemeralCacheControl.html">EphemeralCacheControl</a></div>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<dl class="typelist inheritedMembers">
|
||||
<dt>Inherited Members</dt>
|
||||
<dd>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2 class="section" id="constructors">Constructors
|
||||
</h2>
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_CacheControl__ctor_" data-uid="AnthropicClient.Models.CacheControl.#ctor*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_CacheControl__ctor_System_String_" data-uid="AnthropicClient.Models.CacheControl.#ctor(System.String)">
|
||||
CacheControl(string)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/CacheControl.cs/#L21"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="AnthropicClient.Models.CacheControl.html">CacheControl</a> class.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">protected CacheControl(string type)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>type</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The type of the cache control.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Exceptions</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></dt>
|
||||
<dd><p>Thrown when the type is null or whitespace.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<h2 class="section" id="properties">Properties
|
||||
</h2>
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_CacheControl_Type_" data-uid="AnthropicClient.Models.CacheControl.Type*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_CacheControl_Type" data-uid="AnthropicClient.Models.CacheControl.Type">
|
||||
Type
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/CacheControl.cs/#L13"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the type of the cache control.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public string Type { get; init; }</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Property Value</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
<div class="contribution d-print-none">
|
||||
<a href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/CacheControl.cs/#L8" class="edit-link">Edit this page</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="affix">
|
||||
<nav id="affix"></nav>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<div class="container-xxl search-results" id="search-results"></div>
|
||||
|
||||
<footer class="border-top text-secondary">
|
||||
<div class="container-xxl">
|
||||
<div class="flex-fill">
|
||||
<span>Made with <a href="https://dotnet.github.io/docfx">docfx</a></span>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,212 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Class CacheControlType | AnthropicClient </title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="title" content="Class CacheControlType | AnthropicClient ">
|
||||
|
||||
<meta name="description" content="Provides constants for cache control types.">
|
||||
<link rel="icon" href="../favicon.ico">
|
||||
<link rel="stylesheet" href="../public/docfx.min.css">
|
||||
<link rel="stylesheet" href="../public/main.css">
|
||||
<meta name="docfx:navrel" content="../toc.html">
|
||||
<meta name="docfx:tocrel" content="toc.html">
|
||||
|
||||
<meta name="docfx:rel" content="../">
|
||||
|
||||
|
||||
<meta name="docfx:docurl" content="https://github.com/StevanFreeborn/anthropic-client/new/main/apiSpec/new?filename=AnthropicClient_Models_CacheControlType.md&value=---%0Auid%3A%20AnthropicClient.Models.CacheControlType%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">
|
||||
<meta name="loc:inThisArticle" content="In this article">
|
||||
<meta name="loc:searchResultsCount" content="{count} results for "{query}"">
|
||||
<meta name="loc:searchNoResults" content="No results for "{query}"">
|
||||
<meta name="loc:tocFilter" content="Filter by title">
|
||||
<meta name="loc:nextArticle" content="Next">
|
||||
<meta name="loc:prevArticle" content="Previous">
|
||||
<meta name="loc:themeLight" content="Light">
|
||||
<meta name="loc:themeDark" content="Dark">
|
||||
<meta name="loc:themeAuto" content="Auto">
|
||||
<meta name="loc:changeTheme" content="Change theme">
|
||||
<meta name="loc:copy" content="Copy">
|
||||
<meta name="loc:downloadPdf" content="Download PDF">
|
||||
|
||||
<script type="module" src="./../public/docfx.min.js"></script>
|
||||
|
||||
<script>
|
||||
const theme = localStorage.getItem('theme') || 'auto'
|
||||
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
|
||||
<header class="bg-body border-bottom">
|
||||
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
|
||||
<div class="container-xxl flex-nowrap">
|
||||
<a class="navbar-brand" href="../index.html">
|
||||
<img id="logo" class="svg" src="../logo.svg" alt="AnthropicClient">
|
||||
AnthropicClient
|
||||
</a>
|
||||
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<i class="bi bi-three-dots"></i>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navpanel">
|
||||
<div id="navbar">
|
||||
<form class="search" role="search" id="search">
|
||||
<i class="bi bi-search"></i>
|
||||
<input class="form-control" id="search-query" type="search" disabled="" placeholder="Search" autocomplete="off" aria-label="Search">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="container-xxl">
|
||||
<div class="toc-offcanvas">
|
||||
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
|
||||
<div class="offcanvas-header">
|
||||
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="offcanvas-body">
|
||||
<nav class="toc" id="toc"></nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<div class="actionbar">
|
||||
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
|
||||
<i class="bi bi-list"></i>
|
||||
</button>
|
||||
|
||||
<nav id="breadcrumb"></nav>
|
||||
</div>
|
||||
|
||||
<article data-uid="AnthropicClient.Models.CacheControlType">
|
||||
|
||||
|
||||
|
||||
<h1 id="AnthropicClient_Models_CacheControlType" data-uid="AnthropicClient.Models.CacheControlType" class="text-break">
|
||||
Class CacheControlType <a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/CacheControlType.cs/#L6"><i class="bi bi-code-slash"></i></a>
|
||||
</h1>
|
||||
|
||||
<div class="facts text-secondary">
|
||||
<dl><dt>Namespace</dt><dd><a class="xref" href="AnthropicClient.html">AnthropicClient</a>.<a class="xref" href="AnthropicClient.Models.html">Models</a></dd></dl>
|
||||
<dl><dt>Assembly</dt><dd>AnthropicClient.dll</dd></dl>
|
||||
</div>
|
||||
|
||||
<div class="markdown summary"><p>Provides constants for cache control types.</p>
|
||||
</div>
|
||||
<div class="markdown conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static class CacheControlType</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<dl class="typelist inheritance">
|
||||
<dt>Inheritance</dt>
|
||||
<dd>
|
||||
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
|
||||
<div><span class="xref">CacheControlType</span></div>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<dl class="typelist inheritedMembers">
|
||||
<dt>Inherited Members</dt>
|
||||
<dd>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2 class="section" id="fields">Fields
|
||||
</h2>
|
||||
|
||||
|
||||
|
||||
<h3 id="AnthropicClient_Models_CacheControlType_Ephemeral" data-uid="AnthropicClient.Models.CacheControlType.Ephemeral">
|
||||
Ephemeral
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/CacheControlType.cs/#L11"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>The cache control type for an ephemeral cache.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public const string Ephemeral = "ephemeral"</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Field Value</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
<div class="contribution d-print-none">
|
||||
<a href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/CacheControlType.cs/#L6" class="edit-link">Edit this page</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="affix">
|
||||
<nav id="affix"></nav>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<div class="container-xxl search-results" id="search-results"></div>
|
||||
|
||||
<footer class="border-top text-secondary">
|
||||
<div class="container-xxl">
|
||||
<div class="flex-fill">
|
||||
<span>Made with <a href="https://dotnet.github.io/docfx">docfx</a></span>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -166,7 +166,7 @@ Class Content <a class="header-action link-secondary" title="View source" href=
|
||||
|
||||
<h3 id="AnthropicClient_Models_Content__ctor_System_String_" data-uid="AnthropicClient.Models.Content.#ctor(System.String)">
|
||||
Content(string)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Content.cs/#L25"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Content.cs/#L31"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="AnthropicClient.Models.Content.html">Content</a> class.</p>
|
||||
@@ -195,10 +195,79 @@ Class Content <a class="header-action link-secondary" title="View source" href=
|
||||
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_Content__ctor_" data-uid="AnthropicClient.Models.Content.#ctor*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_Content__ctor_System_String_AnthropicClient_Models_CacheControl_" data-uid="AnthropicClient.Models.Content.#ctor(System.String,AnthropicClient.Models.CacheControl)">
|
||||
Content(string, CacheControl)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Content.cs/#L42"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="AnthropicClient.Models.Content.html">Content</a> class.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">protected Content(string type, CacheControl cacheControl)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>type</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The type of the content.</p>
|
||||
</dd>
|
||||
<dt><code>cacheControl</code> <a class="xref" href="AnthropicClient.Models.CacheControl.html">CacheControl</a></dt>
|
||||
<dd><p>The cache control to be used for the content.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2 class="section" id="properties">Properties
|
||||
</h2>
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_Content_CacheControl_" data-uid="AnthropicClient.Models.Content.CacheControl*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_Content_CacheControl" data-uid="AnthropicClient.Models.Content.CacheControl">
|
||||
CacheControl
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Content.cs/#L18"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the cache control to be used for the content.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">[JsonPropertyName("cache_control")]
|
||||
public CacheControl? CacheControl { get; set; }</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Property Value</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="AnthropicClient.Models.CacheControl.html">CacheControl</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_Content_Type_" data-uid="AnthropicClient.Models.Content.Type*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_Content_Type" data-uid="AnthropicClient.Models.Content.Type">
|
||||
|
||||
@@ -0,0 +1,212 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Class EphemeralCacheControl | AnthropicClient </title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="title" content="Class EphemeralCacheControl | AnthropicClient ">
|
||||
|
||||
<meta name="description" content="Represents the cache control to be used for content.">
|
||||
<link rel="icon" href="../favicon.ico">
|
||||
<link rel="stylesheet" href="../public/docfx.min.css">
|
||||
<link rel="stylesheet" href="../public/main.css">
|
||||
<meta name="docfx:navrel" content="../toc.html">
|
||||
<meta name="docfx:tocrel" content="toc.html">
|
||||
|
||||
<meta name="docfx:rel" content="../">
|
||||
|
||||
|
||||
<meta name="docfx:docurl" content="https://github.com/StevanFreeborn/anthropic-client/new/main/apiSpec/new?filename=AnthropicClient_Models_EphemeralCacheControl.md&value=---%0Auid%3A%20AnthropicClient.Models.EphemeralCacheControl%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">
|
||||
<meta name="loc:inThisArticle" content="In this article">
|
||||
<meta name="loc:searchResultsCount" content="{count} results for "{query}"">
|
||||
<meta name="loc:searchNoResults" content="No results for "{query}"">
|
||||
<meta name="loc:tocFilter" content="Filter by title">
|
||||
<meta name="loc:nextArticle" content="Next">
|
||||
<meta name="loc:prevArticle" content="Previous">
|
||||
<meta name="loc:themeLight" content="Light">
|
||||
<meta name="loc:themeDark" content="Dark">
|
||||
<meta name="loc:themeAuto" content="Auto">
|
||||
<meta name="loc:changeTheme" content="Change theme">
|
||||
<meta name="loc:copy" content="Copy">
|
||||
<meta name="loc:downloadPdf" content="Download PDF">
|
||||
|
||||
<script type="module" src="./../public/docfx.min.js"></script>
|
||||
|
||||
<script>
|
||||
const theme = localStorage.getItem('theme') || 'auto'
|
||||
document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme)
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference">
|
||||
<header class="bg-body border-bottom">
|
||||
<nav id="autocollapse" class="navbar navbar-expand-md" role="navigation">
|
||||
<div class="container-xxl flex-nowrap">
|
||||
<a class="navbar-brand" href="../index.html">
|
||||
<img id="logo" class="svg" src="../logo.svg" alt="AnthropicClient">
|
||||
AnthropicClient
|
||||
</a>
|
||||
<button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<i class="bi bi-three-dots"></i>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navpanel">
|
||||
<div id="navbar">
|
||||
<form class="search" role="search" id="search">
|
||||
<i class="bi bi-search"></i>
|
||||
<input class="form-control" id="search-query" type="search" disabled="" placeholder="Search" autocomplete="off" aria-label="Search">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="container-xxl">
|
||||
<div class="toc-offcanvas">
|
||||
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
|
||||
<div class="offcanvas-header">
|
||||
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="offcanvas-body">
|
||||
<nav class="toc" id="toc"></nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<div class="actionbar">
|
||||
<button class="btn btn-lg border-0 d-md-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
|
||||
<i class="bi bi-list"></i>
|
||||
</button>
|
||||
|
||||
<nav id="breadcrumb"></nav>
|
||||
</div>
|
||||
|
||||
<article data-uid="AnthropicClient.Models.EphemeralCacheControl">
|
||||
|
||||
|
||||
|
||||
<h1 id="AnthropicClient_Models_EphemeralCacheControl" data-uid="AnthropicClient.Models.EphemeralCacheControl" class="text-break">
|
||||
Class EphemeralCacheControl <a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/EphemeralCacheControl.cs/#L6"><i class="bi bi-code-slash"></i></a>
|
||||
</h1>
|
||||
|
||||
<div class="facts text-secondary">
|
||||
<dl><dt>Namespace</dt><dd><a class="xref" href="AnthropicClient.html">AnthropicClient</a>.<a class="xref" href="AnthropicClient.Models.html">Models</a></dd></dl>
|
||||
<dl><dt>Assembly</dt><dd>AnthropicClient.dll</dd></dl>
|
||||
</div>
|
||||
|
||||
<div class="markdown summary"><p>Represents the cache control to be used for content.</p>
|
||||
</div>
|
||||
<div class="markdown conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public class EphemeralCacheControl : CacheControl</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<dl class="typelist inheritance">
|
||||
<dt>Inheritance</dt>
|
||||
<dd>
|
||||
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
|
||||
<div><a class="xref" href="AnthropicClient.Models.CacheControl.html">CacheControl</a></div>
|
||||
<div><span class="xref">EphemeralCacheControl</span></div>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<dl class="typelist inheritedMembers">
|
||||
<dt>Inherited Members</dt>
|
||||
<dd>
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.CacheControl.html#AnthropicClient_Models_CacheControl_Type">CacheControl.Type</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object, object)</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone">object.MemberwiseClone()</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object, object)</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h2 class="section" id="constructors">Constructors
|
||||
</h2>
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_EphemeralCacheControl__ctor_" data-uid="AnthropicClient.Models.EphemeralCacheControl.#ctor*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_EphemeralCacheControl__ctor" data-uid="AnthropicClient.Models.EphemeralCacheControl.#ctor">
|
||||
EphemeralCacheControl()
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/EphemeralCacheControl.cs/#L12"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="AnthropicClient.Models.EphemeralCacheControl.html">EphemeralCacheControl</a> class.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public EphemeralCacheControl()</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
<div class="contribution d-print-none">
|
||||
<a href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/EphemeralCacheControl.cs/#L6" class="edit-link">Edit this page</a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="affix">
|
||||
<nav id="affix"></nav>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<div class="container-xxl search-results" id="search-results"></div>
|
||||
|
||||
<footer class="border-top text-secondary">
|
||||
<div class="container-xxl">
|
||||
<div class="flex-fill">
|
||||
<span>Made with <a href="https://dotnet.github.io/docfx">docfx</a></span>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
@@ -125,6 +125,9 @@ Class ImageContent <a class="header-action link-secondary" title="View source"
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.Content.html#AnthropicClient_Models_Content_Type">Content.Type</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.Content.html#AnthropicClient_Models_Content_CacheControl">Content.CacheControl</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
|
||||
</div>
|
||||
@@ -161,7 +164,7 @@ Class ImageContent <a class="header-action link-secondary" title="View source"
|
||||
|
||||
<h3 id="AnthropicClient_Models_ImageContent__ctor_System_String_System_String_" data-uid="AnthropicClient.Models.ImageContent.#ctor(System.String,System.String)">
|
||||
ImageContent(string, string)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/ImageContent.cs/#L29"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/ImageContent.cs/#L35"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="AnthropicClient.Models.ImageContent.html">ImageContent</a> class.</p>
|
||||
@@ -199,6 +202,51 @@ Class ImageContent <a class="header-action link-secondary" title="View source"
|
||||
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_ImageContent__ctor_" data-uid="AnthropicClient.Models.ImageContent.#ctor*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_ImageContent__ctor_System_String_System_String_AnthropicClient_Models_CacheControl_" data-uid="AnthropicClient.Models.ImageContent.#ctor(System.String,System.String,AnthropicClient.Models.CacheControl)">
|
||||
ImageContent(string, string, CacheControl)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/ImageContent.cs/#L50"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="AnthropicClient.Models.ImageContent.html">ImageContent</a> class.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public ImageContent(string mediaType, string data, CacheControl cacheControl)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>mediaType</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The media type of the image.</p>
|
||||
</dd>
|
||||
<dt><code>data</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The data of the image.</p>
|
||||
</dd>
|
||||
<dt><code>cacheControl</code> <a class="xref" href="AnthropicClient.Models.CacheControl.html">CacheControl</a></dt>
|
||||
<dd><p>The cache control to be used for the content.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Exceptions</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></dt>
|
||||
<dd><p>Thrown when the media type, data, or cache control is null.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<h2 class="section" id="properties">Properties
|
||||
</h2>
|
||||
|
||||
|
||||
@@ -128,6 +128,12 @@ Class MessageRequest <a class="header-action link-secondary" title="View source
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest_System">BaseMessageRequest.System</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest_SystemMessages">BaseMessageRequest.SystemMessages</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest_SystemPrompt">BaseMessageRequest.SystemPrompt</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest_Messages">BaseMessageRequest.Messages</a>
|
||||
</div>
|
||||
@@ -192,9 +198,9 @@ Class MessageRequest <a class="header-action link-secondary" title="View source
|
||||
|
||||
<a id="AnthropicClient_Models_MessageRequest__ctor_" data-uid="AnthropicClient.Models.MessageRequest.#ctor*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_MessageRequest__ctor_System_String_System_Collections_Generic_List_AnthropicClient_Models_Message__System_Int32_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__System_Decimal_System_Nullable_System_Int32__System_Nullable_System_Decimal__AnthropicClient_Models_ToolChoice_System_Collections_Generic_List_AnthropicClient_Models_Tool__System_Collections_Generic_List_System_String__" data-uid="AnthropicClient.Models.MessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Collections.Generic.List{System.String})">
|
||||
MessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/MessageRequest.cs/#L33"><i class="bi bi-code-slash"></i></a>
|
||||
<h3 id="AnthropicClient_Models_MessageRequest__ctor_System_String_System_Collections_Generic_List_AnthropicClient_Models_Message__System_Int32_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__System_Decimal_System_Nullable_System_Int32__System_Nullable_System_Decimal__AnthropicClient_Models_ToolChoice_System_Collections_Generic_List_AnthropicClient_Models_Tool__System_Collections_Generic_List_System_String__System_Collections_Generic_List_AnthropicClient_Models_TextContent__" data-uid="AnthropicClient.Models.MessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Collections.Generic.List{System.String},System.Collections.Generic.List{AnthropicClient.Models.TextContent})">
|
||||
MessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?, List<TextContent>?)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/MessageRequest.cs/#L34"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="AnthropicClient.Models.MessageRequest.html">MessageRequest</a> class.</p>
|
||||
@@ -202,7 +208,7 @@ Class MessageRequest <a class="header-action link-secondary" title="View source
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public MessageRequest(string model, List<Message> messages, int maxTokens = 1024, string? system = null, Dictionary<string, object>? metadata = null, decimal temperature = 0.0, int? topK = null, decimal? topP = null, ToolChoice? toolChoice = null, List<Tool>? tools = null, List<string>? stopSequences = null)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public MessageRequest(string model, List<Message> messages, int maxTokens = 1024, string? system = null, Dictionary<string, object>? metadata = null, decimal temperature = 0.0, int? topK = null, decimal? topP = null, ToolChoice? toolChoice = null, List<Tool>? tools = null, List<string>? stopSequences = null, List<TextContent>? systemMessages = null)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -217,7 +223,7 @@ Class MessageRequest <a class="header-action link-secondary" title="View source
|
||||
<dd><p>The maximum number of tokens to generate.</p>
|
||||
</dd>
|
||||
<dt><code>system</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The system ID to use for the request.</p>
|
||||
<dd><p>The system prompt to use for the request.</p>
|
||||
</dd>
|
||||
<dt><code>metadata</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2">Dictionary</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>></dt>
|
||||
<dd><p>The metadata to include with the request.</p>
|
||||
@@ -239,6 +245,9 @@ Class MessageRequest <a class="header-action link-secondary" title="View source
|
||||
</dd>
|
||||
<dt><code>stopSequences</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>></dt>
|
||||
<dd><p>The prompt stop sequences.</p>
|
||||
</dd>
|
||||
<dt><code>systemMessages</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="AnthropicClient.Models.TextContent.html">TextContent</a>></dt>
|
||||
<dd><p>The system messages to include with the request.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -128,6 +128,12 @@ Class StreamMessageRequest <a class="header-action link-secondary" title="View
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest_System">BaseMessageRequest.System</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest_SystemMessages">BaseMessageRequest.SystemMessages</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest_SystemPrompt">BaseMessageRequest.SystemPrompt</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest_Messages">BaseMessageRequest.Messages</a>
|
||||
</div>
|
||||
@@ -192,9 +198,9 @@ Class StreamMessageRequest <a class="header-action link-secondary" title="View
|
||||
|
||||
<a id="AnthropicClient_Models_StreamMessageRequest__ctor_" data-uid="AnthropicClient.Models.StreamMessageRequest.#ctor*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_StreamMessageRequest__ctor_System_String_System_Collections_Generic_List_AnthropicClient_Models_Message__System_Int32_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__System_Decimal_System_Nullable_System_Int32__System_Nullable_System_Decimal__AnthropicClient_Models_ToolChoice_System_Collections_Generic_List_AnthropicClient_Models_Tool__System_Collections_Generic_List_System_String__" data-uid="AnthropicClient.Models.StreamMessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Collections.Generic.List{System.String})">
|
||||
StreamMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/StreamMessageRequest.cs/#L33"><i class="bi bi-code-slash"></i></a>
|
||||
<h3 id="AnthropicClient_Models_StreamMessageRequest__ctor_System_String_System_Collections_Generic_List_AnthropicClient_Models_Message__System_Int32_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__System_Decimal_System_Nullable_System_Int32__System_Nullable_System_Decimal__AnthropicClient_Models_ToolChoice_System_Collections_Generic_List_AnthropicClient_Models_Tool__System_Collections_Generic_List_System_String__System_Collections_Generic_List_AnthropicClient_Models_TextContent__" data-uid="AnthropicClient.Models.StreamMessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Collections.Generic.List{System.String},System.Collections.Generic.List{AnthropicClient.Models.TextContent})">
|
||||
StreamMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?, List<TextContent>?)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/StreamMessageRequest.cs/#L34"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="AnthropicClient.Models.StreamMessageRequest.html">StreamMessageRequest</a> class.</p>
|
||||
@@ -202,7 +208,7 @@ Class StreamMessageRequest <a class="header-action link-secondary" title="View
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public StreamMessageRequest(string model, List<Message> messages, int maxTokens = 1024, string? system = null, Dictionary<string, object>? metadata = null, decimal temperature = 0.0, int? topK = null, decimal? topP = null, ToolChoice? toolChoice = null, List<Tool>? tools = null, List<string>? stopSequences = null)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public StreamMessageRequest(string model, List<Message> messages, int maxTokens = 1024, string? system = null, Dictionary<string, object>? metadata = null, decimal temperature = 0.0, int? topK = null, decimal? topP = null, ToolChoice? toolChoice = null, List<Tool>? tools = null, List<string>? stopSequences = null, List<TextContent>? systemMessages = null)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -217,7 +223,7 @@ Class StreamMessageRequest <a class="header-action link-secondary" title="View
|
||||
<dd><p>The maximum number of tokens to generate.</p>
|
||||
</dd>
|
||||
<dt><code>system</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The system ID to use for the request.</p>
|
||||
<dd><p>The system prompt to use for the request.</p>
|
||||
</dd>
|
||||
<dt><code>metadata</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.dictionary-2">Dictionary</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>></dt>
|
||||
<dd><p>The metadata to include with the request.</p>
|
||||
@@ -239,6 +245,9 @@ Class StreamMessageRequest <a class="header-action link-secondary" title="View
|
||||
</dd>
|
||||
<dt><code>stopSequences</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>></dt>
|
||||
<dd><p>The prompt stop sequences.</p>
|
||||
</dd>
|
||||
<dt><code>systemMessages</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a><<a class="xref" href="AnthropicClient.Models.TextContent.html">TextContent</a>></dt>
|
||||
<dd><p>The system messages to include with the request.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
@@ -125,6 +125,9 @@ Class TextContent <a class="header-action link-secondary" title="View source" h
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.Content.html#AnthropicClient_Models_Content_Type">Content.Type</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.Content.html#AnthropicClient_Models_Content_CacheControl">Content.CacheControl</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
|
||||
</div>
|
||||
@@ -161,7 +164,7 @@ Class TextContent <a class="header-action link-secondary" title="View source" h
|
||||
|
||||
<h3 id="AnthropicClient_Models_TextContent__ctor_System_String_" data-uid="AnthropicClient.Models.TextContent.#ctor(System.String)">
|
||||
TextContent(string)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/TextContent.cs/#L28"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/TextContent.cs/#L33"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="AnthropicClient.Models.TextContent.html">TextContent</a> class.</p>
|
||||
@@ -196,6 +199,48 @@ Class TextContent <a class="header-action link-secondary" title="View source" h
|
||||
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_TextContent__ctor_" data-uid="AnthropicClient.Models.TextContent.#ctor*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_TextContent__ctor_System_String_AnthropicClient_Models_CacheControl_" data-uid="AnthropicClient.Models.TextContent.#ctor(System.String,AnthropicClient.Models.CacheControl)">
|
||||
TextContent(string, CacheControl)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/TextContent.cs/#L47"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="AnthropicClient.Models.TextContent.html">TextContent</a> class.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public TextContent(string text, CacheControl cacheControl)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>text</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The text of the content.</p>
|
||||
</dd>
|
||||
<dt><code>cacheControl</code> <a class="xref" href="AnthropicClient.Models.CacheControl.html">CacheControl</a></dt>
|
||||
<dd><p>The cache control to be used for the content.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Exceptions</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></dt>
|
||||
<dd><p>Thrown when the text or cache control is null.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<h2 class="section" id="properties">Properties
|
||||
</h2>
|
||||
|
||||
|
||||
@@ -153,6 +153,39 @@ Class Tool <a class="header-action link-secondary" title="View source" href="ht
|
||||
</h2>
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_Tool_CacheControl_" data-uid="AnthropicClient.Models.Tool.CacheControl*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_Tool_CacheControl" data-uid="AnthropicClient.Models.Tool.CacheControl">
|
||||
CacheControl
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Tool.cs/#L61"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets or sets the cache control to be used for the tool.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">[JsonPropertyName("cache_control")]
|
||||
public CacheControl? CacheControl { get; set; }</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Property Value</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="AnthropicClient.Models.CacheControl.html">CacheControl</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_Tool_Description_" data-uid="AnthropicClient.Models.Tool.Description*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_Tool_Description" data-uid="AnthropicClient.Models.Tool.Description">
|
||||
@@ -189,7 +222,7 @@ Class Tool <a class="header-action link-secondary" title="View source" href="ht
|
||||
|
||||
<h3 id="AnthropicClient_Models_Tool_DisplayName" data-uid="AnthropicClient.Models.Tool.DisplayName">
|
||||
DisplayName
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Tool.cs/#L61"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Tool.cs/#L67"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the display name of the tool.</p>
|
||||
@@ -322,9 +355,9 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
|
||||
<a id="AnthropicClient_Models_Tool_CreateFromClass_" data-uid="AnthropicClient.Models.Tool.CreateFromClass*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_Tool_CreateFromClass__1" data-uid="AnthropicClient.Models.Tool.CreateFromClass``1">
|
||||
CreateFromClass<T>()
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Tool.cs/#L102"><i class="bi bi-code-slash"></i></a>
|
||||
<h3 id="AnthropicClient_Models_Tool_CreateFromClass__1_AnthropicClient_Models_CacheControl_" data-uid="AnthropicClient.Models.Tool.CreateFromClass``1(AnthropicClient.Models.CacheControl)">
|
||||
CreateFromClass<T>(CacheControl?)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Tool.cs/#L109"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Creates a tool from a type that implements <a class="xref" href="AnthropicClient.Models.ITool.html">ITool</a>.</p>
|
||||
@@ -332,9 +365,14 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static Tool CreateFromClass<T>() where T : ITool, new()</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static Tool CreateFromClass<T>(CacheControl? cacheControl = null) where T : ITool, new()</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>cacheControl</code> <a class="xref" href="AnthropicClient.Models.CacheControl.html">CacheControl</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h4 class="section">Returns</h4>
|
||||
<dl class="parameters">
|
||||
@@ -355,7 +393,7 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="AnthropicClient_Models_Tool_CreateFromClass__1_remarks">Remarks</h4>
|
||||
<h4 class="section" id="AnthropicClient_Models_Tool_CreateFromClass__1_AnthropicClient_Models_CacheControl__remarks">Remarks</h4>
|
||||
<div class="markdown level1 remarks"><p>The implementation of <a class="xref" href="AnthropicClient.Models.ITool.html">ITool</a> must have a parameterless constructor.</p>
|
||||
</div>
|
||||
|
||||
@@ -373,9 +411,9 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
|
||||
<a id="AnthropicClient_Models_Tool_CreateFromFunction_" data-uid="AnthropicClient.Models.Tool.CreateFromFunction*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_Tool_CreateFromFunction__1_System_String_System_String_System_Func___0__" data-uid="AnthropicClient.Models.Tool.CreateFromFunction``1(System.String,System.String,System.Func{``0})">
|
||||
CreateFromFunction<TResult>(string, string, Func<TResult>)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Tool.cs/#L177"><i class="bi bi-code-slash"></i></a>
|
||||
<h3 id="AnthropicClient_Models_Tool_CreateFromFunction__1_System_String_System_String_System_Func___0__AnthropicClient_Models_CacheControl_" data-uid="AnthropicClient.Models.Tool.CreateFromFunction``1(System.String,System.String,System.Func{``0},AnthropicClient.Models.CacheControl)">
|
||||
CreateFromFunction<TResult>(string, string, Func<TResult>, CacheControl?)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Tool.cs/#L199"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Creates a tool from a function.</p>
|
||||
@@ -383,7 +421,7 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static Tool CreateFromFunction<TResult>(string name, string description, Func<TResult> func)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static Tool CreateFromFunction<TResult>(string name, string description, Func<TResult> func, CacheControl? cacheControl = null)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -396,6 +434,9 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
</dd>
|
||||
<dt><code>func</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a><TResult></dt>
|
||||
<dd><p>The function.</p>
|
||||
</dd>
|
||||
<dt><code>cacheControl</code> <a class="xref" href="AnthropicClient.Models.CacheControl.html">CacheControl</a></dt>
|
||||
<dd><p>The cache control to be used for the tool.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -418,7 +459,7 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="AnthropicClient_Models_Tool_CreateFromFunction__1_System_String_System_String_System_Func___0___remarks">Remarks</h4>
|
||||
<h4 class="section" id="AnthropicClient_Models_Tool_CreateFromFunction__1_System_String_System_String_System_Func___0__AnthropicClient_Models_CacheControl__remarks">Remarks</h4>
|
||||
<div class="markdown level1 remarks"><p>The name of the tool will be sanitized to conform to the Anthropic tool naming rules.</p>
|
||||
</div>
|
||||
|
||||
@@ -433,9 +474,9 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
|
||||
<a id="AnthropicClient_Models_Tool_CreateFromFunction_" data-uid="AnthropicClient.Models.Tool.CreateFromFunction*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_Tool_CreateFromFunction__2_System_String_System_String_System_Func___0___1__" data-uid="AnthropicClient.Models.Tool.CreateFromFunction``2(System.String,System.String,System.Func{``0,``1})">
|
||||
CreateFromFunction<T1, TResult>(string, string, Func<T1, TResult>)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Tool.cs/#L195"><i class="bi bi-code-slash"></i></a>
|
||||
<h3 id="AnthropicClient_Models_Tool_CreateFromFunction__2_System_String_System_String_System_Func___0___1__AnthropicClient_Models_CacheControl_" data-uid="AnthropicClient.Models.Tool.CreateFromFunction``2(System.String,System.String,System.Func{``0,``1},AnthropicClient.Models.CacheControl)">
|
||||
CreateFromFunction<T1, TResult>(string, string, Func<T1, TResult>, CacheControl?)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Tool.cs/#L223"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Creates a tool from a function.</p>
|
||||
@@ -443,7 +484,7 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static Tool CreateFromFunction<T1, TResult>(string name, string description, Func<T1, TResult> func)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static Tool CreateFromFunction<T1, TResult>(string name, string description, Func<T1, TResult> func, CacheControl? cacheControl = null)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -456,6 +497,9 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
</dd>
|
||||
<dt><code>func</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a><T1, TResult></dt>
|
||||
<dd><p>The function.</p>
|
||||
</dd>
|
||||
<dt><code>cacheControl</code> <a class="xref" href="AnthropicClient.Models.CacheControl.html">CacheControl</a></dt>
|
||||
<dd><p>The cache control to be used for the tool.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -481,7 +525,7 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="AnthropicClient_Models_Tool_CreateFromFunction__2_System_String_System_String_System_Func___0___1___remarks">Remarks</h4>
|
||||
<h4 class="section" id="AnthropicClient_Models_Tool_CreateFromFunction__2_System_String_System_String_System_Func___0___1__AnthropicClient_Models_CacheControl__remarks">Remarks</h4>
|
||||
<div class="markdown level1 remarks"><p>The name of the tool will be sanitized to conform to the Anthropic tool naming rules.</p>
|
||||
</div>
|
||||
|
||||
@@ -496,9 +540,9 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
|
||||
<a id="AnthropicClient_Models_Tool_CreateFromFunction_" data-uid="AnthropicClient.Models.Tool.CreateFromFunction*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_Tool_CreateFromFunction__3_System_String_System_String_System_Func___0___1___2__" data-uid="AnthropicClient.Models.Tool.CreateFromFunction``3(System.String,System.String,System.Func{``0,``1,``2})">
|
||||
CreateFromFunction<T1, T2, TResult>(string, string, Func<T1, T2, TResult>)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Tool.cs/#L214"><i class="bi bi-code-slash"></i></a>
|
||||
<h3 id="AnthropicClient_Models_Tool_CreateFromFunction__3_System_String_System_String_System_Func___0___1___2__AnthropicClient_Models_CacheControl_" data-uid="AnthropicClient.Models.Tool.CreateFromFunction``3(System.String,System.String,System.Func{``0,``1,``2},AnthropicClient.Models.CacheControl)">
|
||||
CreateFromFunction<T1, T2, TResult>(string, string, Func<T1, T2, TResult>, CacheControl?)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Tool.cs/#L248"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Creates a tool from a function.</p>
|
||||
@@ -506,7 +550,7 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static Tool CreateFromFunction<T1, T2, TResult>(string name, string description, Func<T1, T2, TResult> func)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static Tool CreateFromFunction<T1, T2, TResult>(string name, string description, Func<T1, T2, TResult> func, CacheControl? cacheControl = null)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -519,6 +563,9 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
</dd>
|
||||
<dt><code>func</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-3">Func</a><T1, T2, TResult></dt>
|
||||
<dd><p>The function.</p>
|
||||
</dd>
|
||||
<dt><code>cacheControl</code> <a class="xref" href="AnthropicClient.Models.CacheControl.html">CacheControl</a></dt>
|
||||
<dd><p>The cache control to be used for the tool.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -547,7 +594,7 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="AnthropicClient_Models_Tool_CreateFromFunction__3_System_String_System_String_System_Func___0___1___2___remarks">Remarks</h4>
|
||||
<h4 class="section" id="AnthropicClient_Models_Tool_CreateFromFunction__3_System_String_System_String_System_Func___0___1___2__AnthropicClient_Models_CacheControl__remarks">Remarks</h4>
|
||||
<div class="markdown level1 remarks"><p>The name of the tool will be sanitized to conform to the Anthropic tool naming rules.</p>
|
||||
</div>
|
||||
|
||||
@@ -562,9 +609,9 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
|
||||
<a id="AnthropicClient_Models_Tool_CreateFromInstanceMethod_" data-uid="AnthropicClient.Models.Tool.CreateFromInstanceMethod*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_Tool_CreateFromInstanceMethod_System_String_System_String_System_Object_System_String_" data-uid="AnthropicClient.Models.Tool.CreateFromInstanceMethod(System.String,System.String,System.Object,System.String)">
|
||||
CreateFromInstanceMethod(string, string, object, string)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Tool.cs/#L152"><i class="bi bi-code-slash"></i></a>
|
||||
<h3 id="AnthropicClient_Models_Tool_CreateFromInstanceMethod_System_String_System_String_System_Object_System_String_AnthropicClient_Models_CacheControl_" data-uid="AnthropicClient.Models.Tool.CreateFromInstanceMethod(System.String,System.String,System.Object,System.String,AnthropicClient.Models.CacheControl)">
|
||||
CreateFromInstanceMethod(string, string, object, string, CacheControl?)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Tool.cs/#L167"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Creates a tool from an instance method.</p>
|
||||
@@ -572,7 +619,7 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static Tool CreateFromInstanceMethod(string name, string description, object instance, string methodName)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static Tool CreateFromInstanceMethod(string name, string description, object instance, string methodName, CacheControl? cacheControl = null)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -588,6 +635,9 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
</dd>
|
||||
<dt><code>methodName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The name of the method.</p>
|
||||
</dd>
|
||||
<dt><code>cacheControl</code> <a class="xref" href="AnthropicClient.Models.CacheControl.html">CacheControl</a></dt>
|
||||
<dd><p>The cache control to be used for the tool.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -604,7 +654,7 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="AnthropicClient_Models_Tool_CreateFromInstanceMethod_System_String_System_String_System_Object_System_String__remarks">Remarks</h4>
|
||||
<h4 class="section" id="AnthropicClient_Models_Tool_CreateFromInstanceMethod_System_String_System_String_System_Object_System_String_AnthropicClient_Models_CacheControl__remarks">Remarks</h4>
|
||||
<div class="markdown level1 remarks"><p>The name of the tool will be sanitized to conform to the Anthropic tool naming rules.</p>
|
||||
</div>
|
||||
|
||||
@@ -625,9 +675,9 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
|
||||
<a id="AnthropicClient_Models_Tool_CreateFromStaticMethod_" data-uid="AnthropicClient.Models.Tool.CreateFromStaticMethod*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_Tool_CreateFromStaticMethod_System_String_System_String_System_Type_System_String_" data-uid="AnthropicClient.Models.Tool.CreateFromStaticMethod(System.String,System.String,System.Type,System.String)">
|
||||
CreateFromStaticMethod(string, string, Type, string)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Tool.cs/#L125"><i class="bi bi-code-slash"></i></a>
|
||||
<h3 id="AnthropicClient_Models_Tool_CreateFromStaticMethod_System_String_System_String_System_Type_System_String_AnthropicClient_Models_CacheControl_" data-uid="AnthropicClient.Models.Tool.CreateFromStaticMethod(System.String,System.String,System.Type,System.String,AnthropicClient.Models.CacheControl)">
|
||||
CreateFromStaticMethod(string, string, Type, string, CacheControl?)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Tool.cs/#L133"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Creates a tool from a static method.</p>
|
||||
@@ -635,7 +685,7 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public static Tool CreateFromStaticMethod(string name, string description, Type type, string methodName)</code></pre>
|
||||
<pre><code class="lang-csharp hljs">public static Tool CreateFromStaticMethod(string name, string description, Type type, string methodName, CacheControl? cacheControl = null)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
@@ -651,6 +701,9 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
</dd>
|
||||
<dt><code>methodName</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The name of the method.</p>
|
||||
</dd>
|
||||
<dt><code>cacheControl</code> <a class="xref" href="AnthropicClient.Models.CacheControl.html">CacheControl</a></dt>
|
||||
<dd><p>The cache control to be used for the tool.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
@@ -667,7 +720,7 @@ public JsonObject InputSchema { get; }</code></pre>
|
||||
|
||||
|
||||
|
||||
<h4 class="section" id="AnthropicClient_Models_Tool_CreateFromStaticMethod_System_String_System_String_System_Type_System_String__remarks">Remarks</h4>
|
||||
<h4 class="section" id="AnthropicClient_Models_Tool_CreateFromStaticMethod_System_String_System_String_System_Type_System_String_AnthropicClient_Models_CacheControl__remarks">Remarks</h4>
|
||||
<div class="markdown level1 remarks"><p>The name of the tool will be sanitized to conform to the Anthropic tool naming rules.</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -125,6 +125,9 @@ Class ToolResultContent <a class="header-action link-secondary" title="View sou
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.Content.html#AnthropicClient_Models_Content_Type">Content.Type</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.Content.html#AnthropicClient_Models_Content_CacheControl">Content.CacheControl</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
|
||||
</div>
|
||||
@@ -161,7 +164,7 @@ Class ToolResultContent <a class="header-action link-secondary" title="View sou
|
||||
|
||||
<h3 id="AnthropicClient_Models_ToolResultContent__ctor_System_String_System_String_" data-uid="AnthropicClient.Models.ToolResultContent.#ctor(System.String,System.String)">
|
||||
ToolResultContent(string, string)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/ToolResultContent.cs/#L33"><i class="bi bi-code-slash"></i></a>
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/ToolResultContent.cs/#L39"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="AnthropicClient.Models.ToolResultContent.html">ToolResultContent</a> class.</p>
|
||||
@@ -190,6 +193,51 @@ Class ToolResultContent <a class="header-action link-secondary" title="View sou
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Exceptions</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></dt>
|
||||
<dd><p>Thrown when the tool use ID or content is null.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_ToolResultContent__ctor_" data-uid="AnthropicClient.Models.ToolResultContent.#ctor*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_ToolResultContent__ctor_System_String_System_String_AnthropicClient_Models_CacheControl_" data-uid="AnthropicClient.Models.ToolResultContent.#ctor(System.String,System.String,AnthropicClient.Models.CacheControl)">
|
||||
ToolResultContent(string, string, CacheControl)
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/ToolResultContent.cs/#L55"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="AnthropicClient.Models.ToolResultContent.html">ToolResultContent</a> class.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">public ToolResultContent(string toolUseId, string content, CacheControl cacheControl)</code></pre>
|
||||
</div>
|
||||
|
||||
<h4 class="section">Parameters</h4>
|
||||
<dl class="parameters">
|
||||
<dt><code>toolUseId</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The tool use ID of the content.</p>
|
||||
</dd>
|
||||
<dt><code>content</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
|
||||
<dd><p>The content of the tool result.</p>
|
||||
</dd>
|
||||
<dt><code>cacheControl</code> <a class="xref" href="AnthropicClient.Models.CacheControl.html">CacheControl</a></dt>
|
||||
<dd><p>The cache control to be used for the content.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Exceptions</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></dt>
|
||||
|
||||
@@ -125,6 +125,9 @@ Class ToolUseContent <a class="header-action link-secondary" title="View source
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.Content.html#AnthropicClient_Models_Content_Type">Content.Type</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="AnthropicClient.Models.Content.html#AnthropicClient_Models_Content_CacheControl">Content.CacheControl</a>
|
||||
</div>
|
||||
<div>
|
||||
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object)</a>
|
||||
</div>
|
||||
|
||||
@@ -153,6 +153,72 @@ Class Usage <a class="header-action link-secondary" title="View source" href="h
|
||||
</h2>
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_Usage_CacheCreationInputTokens_" data-uid="AnthropicClient.Models.Usage.CacheCreationInputTokens*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_Usage_CacheCreationInputTokens" data-uid="AnthropicClient.Models.Usage.CacheCreationInputTokens">
|
||||
CacheCreationInputTokens
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Usage.cs/#L25"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the number of tokens written to the cache when creating a new entry</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">[JsonPropertyName("cache_creation_input_tokens")]
|
||||
public int CacheCreationInputTokens { get; init; }</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Property Value</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_Usage_CacheReadInputTokens_" data-uid="AnthropicClient.Models.Usage.CacheReadInputTokens*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_Usage_CacheReadInputTokens" data-uid="AnthropicClient.Models.Usage.CacheReadInputTokens">
|
||||
CacheReadInputTokens
|
||||
<a class="header-action link-secondary" title="View source" href="https://github.com/StevanFreeborn/anthropic-client/blob/main/src/AnthropicClient/Models/Usage.cs/#L31"><i class="bi bi-code-slash"></i></a>
|
||||
</h3>
|
||||
|
||||
<div class="markdown level1 summary"><p>Gets the number of tokens retrieved from the cache for the request.</p>
|
||||
</div>
|
||||
<div class="markdown level1 conceptual"></div>
|
||||
|
||||
<div class="codewrapper">
|
||||
<pre><code class="lang-csharp hljs">[JsonPropertyName("cache_read_input_tokens")]
|
||||
public int CacheReadInputTokens { get; init; }</code></pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4 class="section">Property Value</h4>
|
||||
<dl class="parameters">
|
||||
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a id="AnthropicClient_Models_Usage_InputTokens_" data-uid="AnthropicClient.Models.Usage.InputTokens*"></a>
|
||||
|
||||
<h3 id="AnthropicClient_Models_Usage_InputTokens" data-uid="AnthropicClient.Models.Usage.InputTokens">
|
||||
|
||||
@@ -142,6 +142,16 @@ Classes
|
||||
<dl class="jumplist">
|
||||
<dt><a class="xref" href="AnthropicClient.Models.BaseMessageRequest.html">BaseMessageRequest</a></dt>
|
||||
<dd><p>Represents a message request.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="jumplist">
|
||||
<dt><a class="xref" href="AnthropicClient.Models.CacheControl.html">CacheControl</a></dt>
|
||||
<dd><p>Represents the cache control to be used for content.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="jumplist">
|
||||
<dt><a class="xref" href="AnthropicClient.Models.CacheControlType.html">CacheControlType</a></dt>
|
||||
<dd><p>Provides constants for cache control types.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="jumplist">
|
||||
@@ -177,6 +187,11 @@ Classes
|
||||
<dl class="jumplist">
|
||||
<dt><a class="xref" href="AnthropicClient.Models.ContentType.html">ContentType</a></dt>
|
||||
<dd><p>Represents the content type.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="jumplist">
|
||||
<dt><a class="xref" href="AnthropicClient.Models.EphemeralCacheControl.html">EphemeralCacheControl</a></dt>
|
||||
<dd><p>Represents the cache control to be used for content.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="jumplist">
|
||||
|
||||
@@ -60,6 +60,12 @@
|
||||
<li>
|
||||
<a href="AnthropicClient.Models.BaseMessageRequest.html" name="" title="BaseMessageRequest">BaseMessageRequest</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="AnthropicClient.Models.CacheControl.html" name="" title="CacheControl">CacheControl</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="AnthropicClient.Models.CacheControlType.html" name="" title="CacheControlType">CacheControlType</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="AnthropicClient.Models.Content.html" name="" title="Content">Content</a>
|
||||
</li>
|
||||
@@ -81,6 +87,9 @@
|
||||
<li>
|
||||
<a href="AnthropicClient.Models.ContentType.html" name="" title="ContentType">ContentType</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="AnthropicClient.Models.EphemeralCacheControl.html" name="" title="EphemeralCacheControl">EphemeralCacheControl</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="AnthropicClient.Models.Error.html" name="" title="Error">Error</a>
|
||||
</li>
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
|
||||
{"items":[{"name":"AnthropicClient","href":"AnthropicClient.html","topicHref":"AnthropicClient.html","topicUid":"AnthropicClient","items":[{"name":"AnthropicApiClient","href":"AnthropicClient.AnthropicApiClient.html","topicHref":"AnthropicClient.AnthropicApiClient.html","topicUid":"AnthropicClient.AnthropicApiClient"},{"name":"IAnthropicApiClient","href":"AnthropicClient.IAnthropicApiClient.html","topicHref":"AnthropicClient.IAnthropicApiClient.html","topicUid":"AnthropicClient.IAnthropicApiClient"}]},{"name":"AnthropicClient.Models","href":"AnthropicClient.Models.html","topicHref":"AnthropicClient.Models.html","topicUid":"AnthropicClient.Models","items":[{"name":"AnthropicError","href":"AnthropicClient.Models.AnthropicError.html","topicHref":"AnthropicClient.Models.AnthropicError.html","topicUid":"AnthropicClient.Models.AnthropicError"},{"name":"AnthropicEvent","href":"AnthropicClient.Models.AnthropicEvent.html","topicHref":"AnthropicClient.Models.AnthropicEvent.html","topicUid":"AnthropicClient.Models.AnthropicEvent"},{"name":"AnthropicFunction","href":"AnthropicClient.Models.AnthropicFunction.html","topicHref":"AnthropicClient.Models.AnthropicFunction.html","topicUid":"AnthropicClient.Models.AnthropicFunction"},{"name":"AnthropicHeaders","href":"AnthropicClient.Models.AnthropicHeaders.html","topicHref":"AnthropicClient.Models.AnthropicHeaders.html","topicUid":"AnthropicClient.Models.AnthropicHeaders"},{"name":"AnthropicModels","href":"AnthropicClient.Models.AnthropicModels.html","topicHref":"AnthropicClient.Models.AnthropicModels.html","topicUid":"AnthropicClient.Models.AnthropicModels"},{"name":"AnyToolChoice","href":"AnthropicClient.Models.AnyToolChoice.html","topicHref":"AnthropicClient.Models.AnyToolChoice.html","topicUid":"AnthropicClient.Models.AnyToolChoice"},{"name":"ApiError","href":"AnthropicClient.Models.ApiError.html","topicHref":"AnthropicClient.Models.ApiError.html","topicUid":"AnthropicClient.Models.ApiError"},{"name":"AuthenticationError","href":"AnthropicClient.Models.AuthenticationError.html","topicHref":"AnthropicClient.Models.AuthenticationError.html","topicUid":"AnthropicClient.Models.AuthenticationError"},{"name":"AutoToolChoice","href":"AnthropicClient.Models.AutoToolChoice.html","topicHref":"AnthropicClient.Models.AutoToolChoice.html","topicUid":"AnthropicClient.Models.AutoToolChoice"},{"name":"BaseMessageRequest","href":"AnthropicClient.Models.BaseMessageRequest.html","topicHref":"AnthropicClient.Models.BaseMessageRequest.html","topicUid":"AnthropicClient.Models.BaseMessageRequest"},{"name":"Content","href":"AnthropicClient.Models.Content.html","topicHref":"AnthropicClient.Models.Content.html","topicUid":"AnthropicClient.Models.Content"},{"name":"ContentDelta","href":"AnthropicClient.Models.ContentDelta.html","topicHref":"AnthropicClient.Models.ContentDelta.html","topicUid":"AnthropicClient.Models.ContentDelta"},{"name":"ContentDeltaEventData","href":"AnthropicClient.Models.ContentDeltaEventData.html","topicHref":"AnthropicClient.Models.ContentDeltaEventData.html","topicUid":"AnthropicClient.Models.ContentDeltaEventData"},{"name":"ContentDeltaType","href":"AnthropicClient.Models.ContentDeltaType.html","topicHref":"AnthropicClient.Models.ContentDeltaType.html","topicUid":"AnthropicClient.Models.ContentDeltaType"},{"name":"ContentStartEventData","href":"AnthropicClient.Models.ContentStartEventData.html","topicHref":"AnthropicClient.Models.ContentStartEventData.html","topicUid":"AnthropicClient.Models.ContentStartEventData"},{"name":"ContentStopEventData","href":"AnthropicClient.Models.ContentStopEventData.html","topicHref":"AnthropicClient.Models.ContentStopEventData.html","topicUid":"AnthropicClient.Models.ContentStopEventData"},{"name":"ContentType","href":"AnthropicClient.Models.ContentType.html","topicHref":"AnthropicClient.Models.ContentType.html","topicUid":"AnthropicClient.Models.ContentType"},{"name":"Error","href":"AnthropicClient.Models.Error.html","topicHref":"AnthropicClient.Models.Error.html","topicUid":"AnthropicClient.Models.Error"},{"name":"ErrorEventData","href":"AnthropicClient.Models.ErrorEventData.html","topicHref":"AnthropicClient.Models.ErrorEventData.html","topicUid":"AnthropicClient.Models.ErrorEventData"},{"name":"ErrorType","href":"AnthropicClient.Models.ErrorType.html","topicHref":"AnthropicClient.Models.ErrorType.html","topicUid":"AnthropicClient.Models.ErrorType"},{"name":"EventData","href":"AnthropicClient.Models.EventData.html","topicHref":"AnthropicClient.Models.EventData.html","topicUid":"AnthropicClient.Models.EventData"},{"name":"EventType","href":"AnthropicClient.Models.EventType.html","topicHref":"AnthropicClient.Models.EventType.html","topicUid":"AnthropicClient.Models.EventType"},{"name":"FunctionParameterAttribute","href":"AnthropicClient.Models.FunctionParameterAttribute.html","topicHref":"AnthropicClient.Models.FunctionParameterAttribute.html","topicUid":"AnthropicClient.Models.FunctionParameterAttribute"},{"name":"FunctionPropertyAttributLine truncated
|
||||
{"items":[{"name":"AnthropicClient","href":"AnthropicClient.html","topicHref":"AnthropicClient.html","topicUid":"AnthropicClient","items":[{"name":"AnthropicApiClient","href":"AnthropicClient.AnthropicApiClient.html","topicHref":"AnthropicClient.AnthropicApiClient.html","topicUid":"AnthropicClient.AnthropicApiClient"},{"name":"IAnthropicApiClient","href":"AnthropicClient.IAnthropicApiClient.html","topicHref":"AnthropicClient.IAnthropicApiClient.html","topicUid":"AnthropicClient.IAnthropicApiClient"}]},{"name":"AnthropicClient.Models","href":"AnthropicClient.Models.html","topicHref":"AnthropicClient.Models.html","topicUid":"AnthropicClient.Models","items":[{"name":"AnthropicError","href":"AnthropicClient.Models.AnthropicError.html","topicHref":"AnthropicClient.Models.AnthropicError.html","topicUid":"AnthropicClient.Models.AnthropicError"},{"name":"AnthropicEvent","href":"AnthropicClient.Models.AnthropicEvent.html","topicHref":"AnthropicClient.Models.AnthropicEvent.html","topicUid":"AnthropicClient.Models.AnthropicEvent"},{"name":"AnthropicFunction","href":"AnthropicClient.Models.AnthropicFunction.html","topicHref":"AnthropicClient.Models.AnthropicFunction.html","topicUid":"AnthropicClient.Models.AnthropicFunction"},{"name":"AnthropicHeaders","href":"AnthropicClient.Models.AnthropicHeaders.html","topicHref":"AnthropicClient.Models.AnthropicHeaders.html","topicUid":"AnthropicClient.Models.AnthropicHeaders"},{"name":"AnthropicModels","href":"AnthropicClient.Models.AnthropicModels.html","topicHref":"AnthropicClient.Models.AnthropicModels.html","topicUid":"AnthropicClient.Models.AnthropicModels"},{"name":"AnyToolChoice","href":"AnthropicClient.Models.AnyToolChoice.html","topicHref":"AnthropicClient.Models.AnyToolChoice.html","topicUid":"AnthropicClient.Models.AnyToolChoice"},{"name":"ApiError","href":"AnthropicClient.Models.ApiError.html","topicHref":"AnthropicClient.Models.ApiError.html","topicUid":"AnthropicClient.Models.ApiError"},{"name":"AuthenticationError","href":"AnthropicClient.Models.AuthenticationError.html","topicHref":"AnthropicClient.Models.AuthenticationError.html","topicUid":"AnthropicClient.Models.AuthenticationError"},{"name":"AutoToolChoice","href":"AnthropicClient.Models.AutoToolChoice.html","topicHref":"AnthropicClient.Models.AutoToolChoice.html","topicUid":"AnthropicClient.Models.AutoToolChoice"},{"name":"BaseMessageRequest","href":"AnthropicClient.Models.BaseMessageRequest.html","topicHref":"AnthropicClient.Models.BaseMessageRequest.html","topicUid":"AnthropicClient.Models.BaseMessageRequest"},{"name":"CacheControl","href":"AnthropicClient.Models.CacheControl.html","topicHref":"AnthropicClient.Models.CacheControl.html","topicUid":"AnthropicClient.Models.CacheControl"},{"name":"CacheControlType","href":"AnthropicClient.Models.CacheControlType.html","topicHref":"AnthropicClient.Models.CacheControlType.html","topicUid":"AnthropicClient.Models.CacheControlType"},{"name":"Content","href":"AnthropicClient.Models.Content.html","topicHref":"AnthropicClient.Models.Content.html","topicUid":"AnthropicClient.Models.Content"},{"name":"ContentDelta","href":"AnthropicClient.Models.ContentDelta.html","topicHref":"AnthropicClient.Models.ContentDelta.html","topicUid":"AnthropicClient.Models.ContentDelta"},{"name":"ContentDeltaEventData","href":"AnthropicClient.Models.ContentDeltaEventData.html","topicHref":"AnthropicClient.Models.ContentDeltaEventData.html","topicUid":"AnthropicClient.Models.ContentDeltaEventData"},{"name":"ContentDeltaType","href":"AnthropicClient.Models.ContentDeltaType.html","topicHref":"AnthropicClient.Models.ContentDeltaType.html","topicUid":"AnthropicClient.Models.ContentDeltaType"},{"name":"ContentStartEventData","href":"AnthropicClient.Models.ContentStartEventData.html","topicHref":"AnthropicClient.Models.ContentStartEventData.html","topicUid":"AnthropicClient.Models.ContentStartEventData"},{"name":"ContentStopEventData","href":"AnthropicClient.Models.ContentStopEventData.html","topicHref":"AnthropicClient.Models.ContentStopEventData.html","topicUid":"AnthropicClient.Models.ContentStopEventData"},{"name":"ContentType","href":"AnthropicClient.Models.ContentType.html","topicHref":"AnthropicClient.Models.ContentType.html","topicUid":"AnthropicClient.Models.ContentType"},{"name":"EphemeralCacheControl","href":"AnthropicClient.Models.EphemeralCacheControl.html","topicHref":"AnthropicClient.Models.EphemeralCacheControl.html","topicUid":"AnthropicClient.Models.EphemeralCacheControl"},{"name":"Error","href":"AnthropicClient.Models.Error.html","topicHref":"AnthropicClient.Models.Error.html","topicUid":"AnthropicClient.Models.Error"},{"name":"ErrorEventData","href":"AnthropicClient.Models.ErrorEventData.html","topicHref":"AnthropicClient.Models.ErrorEventData.html","topicUid":"AnthropicClient.Models.ErrorEventData"},{"name":"ErrorType","href":"AnthropicClient.Models.ErrorType.html","topicHref":"AnthropicClient.Models.ErrorType.html","topicUid":"AnthropicClient.Models.ErrorType"},{"name":"EvenLine truncated
|
||||
+216
-6
@@ -428,10 +428,11 @@ if (response.IsSuccess is false)
|
||||
return;
|
||||
}
|
||||
|
||||
messages.Add(new(MessageRole.Assistant, response.Content));
|
||||
|
||||
|
||||
foreach (var content in response.Value.Content)
|
||||
{
|
||||
messages.Add(new(MessageRole.Assistant, [content]));
|
||||
|
||||
switch (content)
|
||||
{
|
||||
case TextContent textContent:
|
||||
@@ -545,10 +546,7 @@ if (response is null)
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (var content in response.Content)
|
||||
{
|
||||
messages.Add(new(MessageRole.Assistant, [content]));
|
||||
}
|
||||
messages.Add(new(MessageRole.Assistant, response.Content));
|
||||
|
||||
if (response?.ToolCall is not null)
|
||||
{
|
||||
@@ -602,6 +600,218 @@ foreach (var content in finalResponse.Value.Content)
|
||||
}
|
||||
</code></pre>
|
||||
<p>If you do find that you need more control over how exactly provided tools are called and how the result of those tools are returned you can avoid using the <code>InvokeAsync</code> method and instead use the <code>Tool</code> and <code>ToolUse</code> properties of the <code>ToolCall</code> instance to implement your own solution.</p>
|
||||
<h3 id="system-prompt">System Prompt</h3>
|
||||
<p>Anthropic's models support the use of system prompts to provide additional context to the user. This can be used to provide additional information to the user or to ask for additional information from the user. This feature is covered in depth in <a href="https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/system-prompts">Anthropic's API Documentation</a>. This library aims to make using system prompts convenient by allowing you to provide the system prompts you want Anthropic's models to consider for use when creating a message.</p>
|
||||
<h4 id="system-message">System Message</h4>
|
||||
<p>You can create a system prompt by providing a <code>string</code> as the <code>system</code> parameter in the <code>MessageRequest</code> or <code>StreamMessageRequest</code> constructor.</p>
|
||||
<pre><code class="lang-csharp">using AnthropicClient;
|
||||
using AnthropicClient.Models;
|
||||
|
||||
var response = await client.CreateMessageAsync(new MessageRequest(
|
||||
AnthropicModels.Claude3Haiku,
|
||||
[
|
||||
new(
|
||||
MessageRole.User,
|
||||
[new TextContent("Please write a haiku about the ocean.")]
|
||||
)
|
||||
],
|
||||
system: "You are a internationally renowned poet. You excel at writing haikus.
|
||||
));
|
||||
|
||||
if (response.IsSuccess is false)
|
||||
{
|
||||
Console.WriteLine($"Failed to create message");
|
||||
Console.WriteLine($"Error Type: {0}", response.Error.Error.Type);
|
||||
Console.WriteLine($"Error Message: {0}", response.Error.Error.Message);
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (var content in response.Value.Content)
|
||||
{
|
||||
switch (content)
|
||||
{
|
||||
case TextContent textContent:
|
||||
Console.WriteLine(textContent.Text);
|
||||
break;
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
<h4 id="system-messages">System Messages</h4>
|
||||
<p>You can create a more complex system prompt by providing a <code>List<TextContent></code> as the <code>systemMessages</code> parameter in the <code>MessageRequest</code> or <code>StreamMessageRequest</code> constructor.</p>
|
||||
<pre><code class="lang-csharp">using AnthropicClient;
|
||||
using AnthropicClient.Models;
|
||||
|
||||
var response = await client.CreateMessageAsync(new MessageRequest(
|
||||
AnthropicModels.Claude3Haiku,
|
||||
[
|
||||
new(
|
||||
MessageRole.User,
|
||||
[new TextContent("Please write a haiku about the ocean.")]
|
||||
)
|
||||
],
|
||||
systemMessages: [
|
||||
new TextContent("You are a internationally renowned poet. You excel at writing haikus."),
|
||||
new TextContent("You have been asked to write a haiku about the ocean.")
|
||||
]
|
||||
));
|
||||
|
||||
if (response.IsSuccess is false)
|
||||
{
|
||||
Console.WriteLine($"Failed to create message");
|
||||
Console.WriteLine($"Error Type: {0}", response.Error.Error.Type);
|
||||
Console.WriteLine($"Error Message: {0}", response.Error.Error.Message);
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (var content in response.Value.Content)
|
||||
{
|
||||
switch (content)
|
||||
{
|
||||
case TextContent textContent:
|
||||
Console.WriteLine(textContent.Text);
|
||||
break;
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
<h3 id="prompt-caching">Prompt Caching</h3>
|
||||
<p>Anthropic has recently introduced a feature called <a href="https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching">Prompt Caching</a> that allows you to cache all or part of the prompt you send to the model. This can be used to improve the performance of your application by reducing latency and token usage. This feature is covered in depth in <a href="https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching">Anthropic's API Documentation</a>.</p>
|
||||
<div class="NOTE">
|
||||
<h5>Note</h5>
|
||||
<p>This feature is in beta and requires you to set an <code>anthropic-beta</code> header on your requests to use it.
|
||||
The value of the header should be <code>prompt-caching-2024-07-31</code>.</p>
|
||||
</div>
|
||||
<p>When using this library you can opt-in to prompt caching by adding the required header to the <code>HttpClient</code> instance you provide to the <code>AnthropicApiClient</code> constructor.</p>
|
||||
<pre><code class="lang-csharp">using AnthropicClient;
|
||||
|
||||
var httpClient = new HttpClient();
|
||||
httpClient.DefaultRequestHeaders.Add("anthropic-beta", "prompt-caching-2024-07-31");
|
||||
|
||||
var client = new AnthropicApiClient(apiKey, httpClient);
|
||||
</code></pre>
|
||||
<p>Prompt caching can be used to cache all parts of the prompt including system messages, user messages, and tools. You should refer to the <a href="https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching">Anthropic API Documentation</a> for specifics on limitations and requirements for using prompt caching. This library aims to make using prompt caching convenient and give you complete control over what parts of the prompt are cached. Currently there is only one type of cache control available - <code>EphemeralCacheControl</code>.</p>
|
||||
<h4 id="caching-system-messages">Caching System Messages</h4>
|
||||
<p>System messages can be cached by providing a <code>List<TextContent></code> as the <code>systemMessages</code> parameter in the <code>MessageRequest</code> or <code>StreamMessageRequest</code> constructor and having one or more of the <code>TextContent</code> instances have the <code>CacheControl</code> property set.</p>
|
||||
<pre><code class="lang-csharp">using AnthropicClient;
|
||||
using AnthropicClient.Models;
|
||||
|
||||
var response = await client.CreateMessageAsync(new MessageRequest(
|
||||
AnthropicModels.Claude3Haiku,
|
||||
[
|
||||
new(
|
||||
MessageRole.User,
|
||||
[new TextContent("Please write a haiku about the ocean.")]
|
||||
)
|
||||
],
|
||||
systemMessages: [
|
||||
new TextContent("You are a internationally renowned poet. You excel at writing haikus. Please use the following as examples."),
|
||||
new TextContent(exampleHaikus, new EphemeralCacheControl())
|
||||
]
|
||||
));
|
||||
|
||||
if (response.IsSuccess is false)
|
||||
{
|
||||
Console.WriteLine($"Failed to create message");
|
||||
Console.WriteLine($"Error Type: {0}", response.Error.Error.Type);
|
||||
Console.WriteLine($"Error Message: {0}", response.Error.Error.Message);
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (var content in response.Value.Content)
|
||||
{
|
||||
switch (content)
|
||||
{
|
||||
case TextContent textContent:
|
||||
Console.WriteLine(textContent.Text);
|
||||
break;
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
<h4 id="caching-user-messages">Caching User Messages</h4>
|
||||
<p>User messages can be cached by providing a <code>List<Content></code> as the <code>messages</code> parameter in the <code>MessageRequest</code> or <code>StreamMessageRequest</code> constructor and having one or more of the <code>Content</code> instances have the <code>CacheControl</code> property set.</p>
|
||||
<pre><code class="lang-csharp">using AnthropicClient;
|
||||
using AnthropicClient.Models;
|
||||
|
||||
var response = await client.CreateMessageAsync(new MessageRequest(
|
||||
AnthropicModels.Claude3Haiku,
|
||||
[
|
||||
new(
|
||||
MessageRole.User,
|
||||
[
|
||||
new TextContent("Please write a haiku about the ocean. Here are some examples of haikus I like."),
|
||||
new TextContent(exampleHaikus, new EphemeralCacheControl())
|
||||
]
|
||||
),
|
||||
]
|
||||
));
|
||||
|
||||
if (response.IsSuccess is false)
|
||||
{
|
||||
Console.WriteLine($"Failed to create message");
|
||||
Console.WriteLine($"Error Type: {0}", response.Error.Error.Type);
|
||||
Console.WriteLine($"Error Message: {0}", response.Error.Error.Message);
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (var content in response.Value.Content)
|
||||
{
|
||||
switch (content)
|
||||
{
|
||||
case TextContent textContent:
|
||||
Console.WriteLine(textContent.Text);
|
||||
break;
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
<h4 id="caching-tools">Caching Tools</h4>
|
||||
<p>Tools can be cached by providing a <code>List<Tool></code> as the <code>tools</code> parameter in the <code>MessageRequest</code> or <code>StreamMessageRequest</code> constructor and having one or more of the <code>Tool</code> instances have the <code>CacheControl</code> property set. This property can be set after the tool is created manually or by using one of the static methods on the <code>Tool</code> class.</p>
|
||||
<pre><code class="lang-csharp">using AnthropicClient;
|
||||
using AnthropicClient.Models;
|
||||
|
||||
var tool = (string location, string units) => $"The weather in {location} is 72 degrees {units}";
|
||||
|
||||
var getWeatherTool = Tool.CreateFromFunction(
|
||||
"Get Weather",
|
||||
"Get the weather for a location in the specified units",
|
||||
tool,
|
||||
new EphemeralCacheControl()
|
||||
);
|
||||
|
||||
var response = await client.CreateMessageAsync(new MessageRequest(
|
||||
AnthropicModels.Claude3Haiku,
|
||||
[
|
||||
new(
|
||||
MessageRole.User,
|
||||
[new TextContent("What is the weather in New York?")]
|
||||
)
|
||||
],
|
||||
tools: [
|
||||
// Lots of other tools
|
||||
// ...
|
||||
getWeatherTool
|
||||
]
|
||||
));
|
||||
|
||||
if (response.IsSuccess is false)
|
||||
{
|
||||
Console.WriteLine($"Failed to create message");
|
||||
Console.WriteLine($"Error Type: {0}", response.Error.Error.Type);
|
||||
Console.WriteLine($"Error Message: {0}", response.Error.Error.Message);
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (var content in response.Value.Content)
|
||||
{
|
||||
switch (content)
|
||||
{
|
||||
case TextContent textContent:
|
||||
Console.WriteLine(textContent.Text);
|
||||
break;
|
||||
case ToolUseContent toolUseContent:
|
||||
Console.WriteLine(toolUseContent.Name);
|
||||
break;
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
+27
-12
@@ -57,12 +57,22 @@
|
||||
"api/AnthropicClient.Models.BaseMessageRequest.html": {
|
||||
"href": "api/AnthropicClient.Models.BaseMessageRequest.html",
|
||||
"title": "Class BaseMessageRequest | AnthropicClient",
|
||||
"keywords": "Class BaseMessageRequest Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a message request. public abstract class BaseMessageRequest Inheritance object BaseMessageRequest Derived MessageRequest StreamMessageRequest Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors BaseMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, bool, List<string>?) Initializes a new instance of the BaseMessageRequest class. protected BaseMessageRequest(string model, List<Message> messages, int maxTokens = 1024, string? system = null, Dictionary<string, object>? metadata = null, decimal temperature = 0.0, int? topK = null, decimal? topP = null, ToolChoice? toolChoice = null, List<Tool>? tools = null, bool stream = false, List<string>? stopSequences = null) Parameters model string The model ID to use for the request. messages List<Message> The messages to send to the model. maxTokens int The maximum number of tokens to generate. system string The system ID to use for the request. metadata Dictionary<string, object> The metadata to include with the request. temperature decimal The temperature to use for the request. topK int? The top-K value to use for the request. topP decimal? The top-P value to use for the request. toolChoice ToolChoice The tool choice mode to use for the request. tools List<Tool> The tools to use for the request. stream bool A value indicating whether the message should be streamed. stopSequences List<string> The prompt stop sequences. Exceptions ArgumentException Thrown when the model ID is invalid. ArgumentNullException Thrown when the model or messages is null. ArgumentException Thrown when the messages contain no messages. ArgumentException Thrown when the max tokens is less than one. ArgumentException Thrown when the temperature is less than zero or greater than one. Properties MaxTokens Gets the maximum number of tokens to generate. [JsonPropertyName(\"max_tokens\")] public int MaxTokens { get; init; } Property Value int Messages Gets the messages to send to the model. public List<Message> Messages { get; init; } Property Value List<Message> Metadata Gets the metadata to include with the request. public Dictionary<string, object>? Metadata { get; init; } Property Value Dictionary<string, object> Model Gets the model ID to use for the request. public string Model { get; init; } Property Value string StopSequences Gets the prompt stop sequences. [JsonPropertyName(\"stop_sequences\")] public List<string> StopSequences { get; init; } Property Value List<string> Stream Gets a value indicating whether the message should be streamed. public bool Stream { get; init; } Property Value bool System Gets the system prompt to use for the request. public string? System { get; init; } Property Value string Temperature Gets the temperature to use for the request. public decimal Temperature { get; init; } Property Value decimal ToolChoice Gets the tool choice mode to use for the request. [JsonPropertyName(\"tool_choice\")] public ToolChoice? ToolChoice { get; init; } Property Value ToolChoice Tools Gets the tools to use for the request. public List<Tool>? Tools { get; init; } Property Value List<Tool> TopK Gets the top-K value to use for the request. public int? TopK { get; init; } Property Value int? TopP Gets the top-P value to use for the request. public decimal? TopP { get; init; } Property Value decimal?"
|
||||
"keywords": "Class BaseMessageRequest Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a message request. public abstract class BaseMessageRequest Inheritance object BaseMessageRequest Derived MessageRequest StreamMessageRequest Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors BaseMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, bool, List<string>?, List<TextContent>?) Initializes a new instance of the BaseMessageRequest class. protected BaseMessageRequest(string model, List<Message> messages, int maxTokens, string? system, Dictionary<string, object>? metadata, decimal temperature, int? topK, decimal? topP, ToolChoice? toolChoice, List<Tool>? tools, bool stream, List<string>? stopSequences, List<TextContent>? systemMessages) Parameters model string The model ID to use for the request. messages List<Message> The messages to send to the model. maxTokens int The maximum number of tokens to generate. system string The system prompt to use for the request. metadata Dictionary<string, object> The metadata to include with the request. temperature decimal The temperature to use for the request. topK int? The top-K value to use for the request. topP decimal? The top-P value to use for the request. toolChoice ToolChoice The tool choice mode to use for the request. tools List<Tool> The tools to use for the request. stream bool A value indicating whether the message should be streamed. stopSequences List<string> The prompt stop sequences. systemMessages List<TextContent> The system messages to use for the request. Exceptions ArgumentException Thrown when the model ID is invalid. ArgumentNullException Thrown when the model or messages is null. ArgumentException Thrown when the messages contain no messages. ArgumentException Thrown when the max tokens is less than one. ArgumentException Thrown when the temperature is less than zero or greater than one. Properties MaxTokens Gets the maximum number of tokens to generate. [JsonPropertyName(\"max_tokens\")] public int MaxTokens { get; init; } Property Value int Messages Gets the messages to send to the model. public List<Message> Messages { get; init; } Property Value List<Message> Metadata Gets the metadata to include with the request. public Dictionary<string, object>? Metadata { get; init; } Property Value Dictionary<string, object> Model Gets the model ID to use for the request. public string Model { get; init; } Property Value string StopSequences Gets the prompt stop sequences. [JsonPropertyName(\"stop_sequences\")] public List<string> StopSequences { get; init; } Property Value List<string> Stream Gets a value indicating whether the message should be streamed. public bool Stream { get; init; } Property Value bool System Gets the system message that will be used as the system prompt if no system messages are provided. [JsonIgnore] public string? System { get; init; } Property Value string SystemMessages Gets the system messages to send to the model to be used as the system prompt. [JsonIgnore] public List<TextContent>? SystemMessages { get; init; } Property Value List<TextContent> SystemPrompt Gets the system prompt that will be used for the request. If will return the system messages if they are provided, otherwise it will return the system message. If neither are provided, it will return null. [JsonPropertyName(\"system\")] public List<TextContent>? SystemPrompt { get; } Property Value List<TextContent> Temperature Gets the temperature to use for the request. public decimal Temperature { get; init; } Property Value decimal ToolChoice Gets the tool choice mode to use for the request. [JsonPropertyName(\"tool_choice\")] public ToolChoice? ToolChoice { get; init; } Property Value ToolChoice Tools Gets the tools to use for the request. public List<Tool>? Tools { get; init; } Property Value List<Tool> TopK Gets the top-K value to use for the request. public int? TopK { get; init; } Property Value int? TopP Gets the top-P value to use for the request. public decimal? TopP { get; init; } Property Value decimal?"
|
||||
},
|
||||
"api/AnthropicClient.Models.CacheControl.html": {
|
||||
"href": "api/AnthropicClient.Models.CacheControl.html",
|
||||
"title": "Class CacheControl | AnthropicClient",
|
||||
"keywords": "Class CacheControl Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents the cache control to be used for content. public abstract class CacheControl Inheritance object CacheControl Derived EphemeralCacheControl Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors CacheControl(string) Initializes a new instance of the CacheControl class. protected CacheControl(string type) Parameters type string The type of the cache control. Exceptions ArgumentException Thrown when the type is null or whitespace. Properties Type Gets the type of the cache control. public string Type { get; init; } Property Value string"
|
||||
},
|
||||
"api/AnthropicClient.Models.CacheControlType.html": {
|
||||
"href": "api/AnthropicClient.Models.CacheControlType.html",
|
||||
"title": "Class CacheControlType | AnthropicClient",
|
||||
"keywords": "Class CacheControlType Namespace AnthropicClient.Models Assembly AnthropicClient.dll Provides constants for cache control types. public static class CacheControlType Inheritance object CacheControlType Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Fields Ephemeral The cache control type for an ephemeral cache. public const string Ephemeral = \"ephemeral\" Field Value string"
|
||||
},
|
||||
"api/AnthropicClient.Models.Content.html": {
|
||||
"href": "api/AnthropicClient.Models.Content.html",
|
||||
"title": "Class Content | AnthropicClient",
|
||||
"keywords": "Class Content Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents part of the content of a message. public abstract class Content Inheritance object Content Derived ImageContent TextContent ToolResultContent ToolUseContent Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors Content(string) Initializes a new instance of the Content class. protected Content(string type) Parameters type string The type of the content. Properties Type Gets the type of the content. public string Type { get; init; } Property Value string"
|
||||
"keywords": "Class Content Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents part of the content of a message. public abstract class Content Inheritance object Content Derived ImageContent TextContent ToolResultContent ToolUseContent Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors Content(string) Initializes a new instance of the Content class. protected Content(string type) Parameters type string The type of the content. Content(string, CacheControl) Initializes a new instance of the Content class. protected Content(string type, CacheControl cacheControl) Parameters type string The type of the content. cacheControl CacheControl The cache control to be used for the content. Properties CacheControl Gets the cache control to be used for the content. [JsonPropertyName(\"cache_control\")] public CacheControl? CacheControl { get; set; } Property Value CacheControl Type Gets the type of the content. public string Type { get; init; } Property Value string"
|
||||
},
|
||||
"api/AnthropicClient.Models.ContentDelta.html": {
|
||||
"href": "api/AnthropicClient.Models.ContentDelta.html",
|
||||
@@ -94,6 +104,11 @@
|
||||
"title": "Class ContentType | AnthropicClient",
|
||||
"keywords": "Class ContentType Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents the content type. public static class ContentType Inheritance object ContentType Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Fields Image Represents the image content type. public const string Image = \"image\" Field Value string Text Represents the text content type. public const string Text = \"text\" Field Value string ToolResult Represents the tool result content type. public const string ToolResult = \"tool_result\" Field Value string ToolUse Represents the tool use content type. public const string ToolUse = \"tool_use\" Field Value string"
|
||||
},
|
||||
"api/AnthropicClient.Models.EphemeralCacheControl.html": {
|
||||
"href": "api/AnthropicClient.Models.EphemeralCacheControl.html",
|
||||
"title": "Class EphemeralCacheControl | AnthropicClient",
|
||||
"keywords": "Class EphemeralCacheControl Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents the cache control to be used for content. public class EphemeralCacheControl : CacheControl Inheritance object CacheControl EphemeralCacheControl Inherited Members CacheControl.Type object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors EphemeralCacheControl() Initializes a new instance of the EphemeralCacheControl class. public EphemeralCacheControl()"
|
||||
},
|
||||
"api/AnthropicClient.Models.Error.html": {
|
||||
"href": "api/AnthropicClient.Models.Error.html",
|
||||
"title": "Class Error | AnthropicClient",
|
||||
@@ -137,7 +152,7 @@
|
||||
"api/AnthropicClient.Models.ImageContent.html": {
|
||||
"href": "api/AnthropicClient.Models.ImageContent.html",
|
||||
"title": "Class ImageContent | AnthropicClient",
|
||||
"keywords": "Class ImageContent Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents image content that is part of a message. public class ImageContent : Content Inheritance object Content ImageContent Inherited Members Content.Type object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors ImageContent(string, string) Initializes a new instance of the ImageContent class. public ImageContent(string mediaType, string data) Parameters mediaType string The media type of the image. data string The data of the image. Exceptions ArgumentNullException Thrown when the media type or data is null. Properties Source Gets the source of the image. public ImageSource Source { get; init; } Property Value ImageSource"
|
||||
"keywords": "Class ImageContent Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents image content that is part of a message. public class ImageContent : Content Inheritance object Content ImageContent Inherited Members Content.Type Content.CacheControl object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors ImageContent(string, string) Initializes a new instance of the ImageContent class. public ImageContent(string mediaType, string data) Parameters mediaType string The media type of the image. data string The data of the image. Exceptions ArgumentNullException Thrown when the media type or data is null. ImageContent(string, string, CacheControl) Initializes a new instance of the ImageContent class. public ImageContent(string mediaType, string data, CacheControl cacheControl) Parameters mediaType string The media type of the image. data string The data of the image. cacheControl CacheControl The cache control to be used for the content. Exceptions ArgumentNullException Thrown when the media type, data, or cache control is null. Properties Source Gets the source of the image. public ImageSource Source { get; init; } Property Value ImageSource"
|
||||
},
|
||||
"api/AnthropicClient.Models.ImageSource.html": {
|
||||
"href": "api/AnthropicClient.Models.ImageSource.html",
|
||||
@@ -192,7 +207,7 @@
|
||||
"api/AnthropicClient.Models.MessageRequest.html": {
|
||||
"href": "api/AnthropicClient.Models.MessageRequest.html",
|
||||
"title": "Class MessageRequest | AnthropicClient",
|
||||
"keywords": "Class MessageRequest Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a message request. public class MessageRequest : BaseMessageRequest Inheritance object BaseMessageRequest MessageRequest Inherited Members BaseMessageRequest.Model BaseMessageRequest.System BaseMessageRequest.Messages BaseMessageRequest.MaxTokens BaseMessageRequest.Metadata BaseMessageRequest.StopSequences BaseMessageRequest.Temperature BaseMessageRequest.TopK BaseMessageRequest.TopP BaseMessageRequest.ToolChoice BaseMessageRequest.Tools BaseMessageRequest.Stream object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors MessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?) Initializes a new instance of the MessageRequest class. public MessageRequest(string model, List<Message> messages, int maxTokens = 1024, string? system = null, Dictionary<string, object>? metadata = null, decimal temperature = 0.0, int? topK = null, decimal? topP = null, ToolChoice? toolChoice = null, List<Tool>? tools = null, List<string>? stopSequences = null) Parameters model string The model ID to use for the request. messages List<Message> The messages to send to the model. maxTokens int The maximum number of tokens to generate. system string The system ID to use for the request. metadata Dictionary<string, object> The metadata to include with the request. temperature decimal The temperature to use for the request. topK int? The top-K value to use for the request. topP decimal? The top-P value to use for the request. toolChoice ToolChoice The tool choice mode to use for the request. tools List<Tool> The tools to use for the request. stopSequences List<string> The prompt stop sequences. Exceptions ArgumentException Thrown when the model ID is invalid. ArgumentNullException Thrown when the model or messages is null. ArgumentException Thrown when the messages contain no messages. ArgumentException Thrown when the max tokens is less than one. ArgumentException Thrown when the temperature is less than zero or greater than one."
|
||||
"keywords": "Class MessageRequest Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a message request. public class MessageRequest : BaseMessageRequest Inheritance object BaseMessageRequest MessageRequest Inherited Members BaseMessageRequest.Model BaseMessageRequest.System BaseMessageRequest.SystemMessages BaseMessageRequest.SystemPrompt BaseMessageRequest.Messages BaseMessageRequest.MaxTokens BaseMessageRequest.Metadata BaseMessageRequest.StopSequences BaseMessageRequest.Temperature BaseMessageRequest.TopK BaseMessageRequest.TopP BaseMessageRequest.ToolChoice BaseMessageRequest.Tools BaseMessageRequest.Stream object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors MessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?, List<TextContent>?) Initializes a new instance of the MessageRequest class. public MessageRequest(string model, List<Message> messages, int maxTokens = 1024, string? system = null, Dictionary<string, object>? metadata = null, decimal temperature = 0.0, int? topK = null, decimal? topP = null, ToolChoice? toolChoice = null, List<Tool>? tools = null, List<string>? stopSequences = null, List<TextContent>? systemMessages = null) Parameters model string The model ID to use for the request. messages List<Message> The messages to send to the model. maxTokens int The maximum number of tokens to generate. system string The system prompt to use for the request. metadata Dictionary<string, object> The metadata to include with the request. temperature decimal The temperature to use for the request. topK int? The top-K value to use for the request. topP decimal? The top-P value to use for the request. toolChoice ToolChoice The tool choice mode to use for the request. tools List<Tool> The tools to use for the request. stopSequences List<string> The prompt stop sequences. systemMessages List<TextContent> The system messages to include with the request. Exceptions ArgumentException Thrown when the model ID is invalid. ArgumentNullException Thrown when the model or messages is null. ArgumentException Thrown when the messages contain no messages. ArgumentException Thrown when the max tokens is less than one. ArgumentException Thrown when the temperature is less than zero or greater than one."
|
||||
},
|
||||
"api/AnthropicClient.Models.MessageResponse.html": {
|
||||
"href": "api/AnthropicClient.Models.MessageResponse.html",
|
||||
@@ -252,12 +267,12 @@
|
||||
"api/AnthropicClient.Models.StreamMessageRequest.html": {
|
||||
"href": "api/AnthropicClient.Models.StreamMessageRequest.html",
|
||||
"title": "Class StreamMessageRequest | AnthropicClient",
|
||||
"keywords": "Class StreamMessageRequest Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a message request. public class StreamMessageRequest : BaseMessageRequest Inheritance object BaseMessageRequest StreamMessageRequest Inherited Members BaseMessageRequest.Model BaseMessageRequest.System BaseMessageRequest.Messages BaseMessageRequest.MaxTokens BaseMessageRequest.Metadata BaseMessageRequest.StopSequences BaseMessageRequest.Temperature BaseMessageRequest.TopK BaseMessageRequest.TopP BaseMessageRequest.ToolChoice BaseMessageRequest.Tools BaseMessageRequest.Stream object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors StreamMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?) Initializes a new instance of the StreamMessageRequest class. public StreamMessageRequest(string model, List<Message> messages, int maxTokens = 1024, string? system = null, Dictionary<string, object>? metadata = null, decimal temperature = 0.0, int? topK = null, decimal? topP = null, ToolChoice? toolChoice = null, List<Tool>? tools = null, List<string>? stopSequences = null) Parameters model string The model ID to use for the request. messages List<Message> The messages to send to the model. maxTokens int The maximum number of tokens to generate. system string The system ID to use for the request. metadata Dictionary<string, object> The metadata to include with the request. temperature decimal The temperature to use for the request. topK int? The top-K value to use for the request. topP decimal? The top-P value to use for the request. toolChoice ToolChoice The tool choice mode to use for the request. tools List<Tool> The tools to use for the request. stopSequences List<string> The prompt stop sequences. Exceptions ArgumentException Thrown when the model ID is invalid. ArgumentNullException Thrown when the model or messages is null. ArgumentException Thrown when the messages contain no messages. ArgumentException Thrown when the max tokens is less than one. ArgumentException Thrown when the temperature is less than zero or greater than one."
|
||||
"keywords": "Class StreamMessageRequest Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a message request. public class StreamMessageRequest : BaseMessageRequest Inheritance object BaseMessageRequest StreamMessageRequest Inherited Members BaseMessageRequest.Model BaseMessageRequest.System BaseMessageRequest.SystemMessages BaseMessageRequest.SystemPrompt BaseMessageRequest.Messages BaseMessageRequest.MaxTokens BaseMessageRequest.Metadata BaseMessageRequest.StopSequences BaseMessageRequest.Temperature BaseMessageRequest.TopK BaseMessageRequest.TopP BaseMessageRequest.ToolChoice BaseMessageRequest.Tools BaseMessageRequest.Stream object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors StreamMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?, List<TextContent>?) Initializes a new instance of the StreamMessageRequest class. public StreamMessageRequest(string model, List<Message> messages, int maxTokens = 1024, string? system = null, Dictionary<string, object>? metadata = null, decimal temperature = 0.0, int? topK = null, decimal? topP = null, ToolChoice? toolChoice = null, List<Tool>? tools = null, List<string>? stopSequences = null, List<TextContent>? systemMessages = null) Parameters model string The model ID to use for the request. messages List<Message> The messages to send to the model. maxTokens int The maximum number of tokens to generate. system string The system prompt to use for the request. metadata Dictionary<string, object> The metadata to include with the request. temperature decimal The temperature to use for the request. topK int? The top-K value to use for the request. topP decimal? The top-P value to use for the request. toolChoice ToolChoice The tool choice mode to use for the request. tools List<Tool> The tools to use for the request. stopSequences List<string> The prompt stop sequences. systemMessages List<TextContent> The system messages to include with the request. Exceptions ArgumentException Thrown when the model ID is invalid. ArgumentNullException Thrown when the model or messages is null. ArgumentException Thrown when the messages contain no messages. ArgumentException Thrown when the max tokens is less than one. ArgumentException Thrown when the temperature is less than zero or greater than one."
|
||||
},
|
||||
"api/AnthropicClient.Models.TextContent.html": {
|
||||
"href": "api/AnthropicClient.Models.TextContent.html",
|
||||
"title": "Class TextContent | AnthropicClient",
|
||||
"keywords": "Class TextContent Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents text content that is part of a message. public class TextContent : Content Inheritance object Content TextContent Inherited Members Content.Type object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors TextContent(string) Initializes a new instance of the TextContent class. public TextContent(string text) Parameters text string The text of the content. Exceptions ArgumentNullException Thrown when the text is null. Properties Text Gets the text of the content. public string Text { get; init; } Property Value string"
|
||||
"keywords": "Class TextContent Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents text content that is part of a message. public class TextContent : Content Inheritance object Content TextContent Inherited Members Content.Type Content.CacheControl object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors TextContent(string) Initializes a new instance of the TextContent class. public TextContent(string text) Parameters text string The text of the content. Exceptions ArgumentNullException Thrown when the text is null. TextContent(string, CacheControl) Initializes a new instance of the TextContent class. public TextContent(string text, CacheControl cacheControl) Parameters text string The text of the content. cacheControl CacheControl The cache control to be used for the content. Exceptions ArgumentNullException Thrown when the text or cache control is null. Properties Text Gets the text of the content. public string Text { get; init; } Property Value string"
|
||||
},
|
||||
"api/AnthropicClient.Models.TextDelta.html": {
|
||||
"href": "api/AnthropicClient.Models.TextDelta.html",
|
||||
@@ -267,7 +282,7 @@
|
||||
"api/AnthropicClient.Models.Tool.html": {
|
||||
"href": "api/AnthropicClient.Models.Tool.html",
|
||||
"title": "Class Tool | AnthropicClient",
|
||||
"keywords": "Class Tool Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a tool that can be used. public class Tool Inheritance object Tool Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Properties Description Gets the description of the tool. public string Description { get; } Property Value string DisplayName Gets the display name of the tool. [JsonIgnore] public string DisplayName { get; } Property Value string Function Gets the function of the tool. [JsonIgnore] public AnthropicFunction Function { get; } Property Value AnthropicFunction InputSchema Gets the input schema of the tool. [JsonPropertyName(\"input_schema\")] public JsonObject InputSchema { get; } Property Value JsonObject Name Gets the name of the tool. This name will conform to the Anthropic tool naming rules. public string Name { get; } Property Value string Methods CreateFromClass<T>() Creates a tool from a type that implements ITool. public static Tool CreateFromClass<T>() where T : ITool, new() Returns Tool The created tool as instance of Tool. Type Parameters T The type that implements ITool. Remarks The implementation of ITool must have a parameterless constructor. Exceptions ArgumentException Thrown when the name or description of the tool is null or empty. ArgumentNullException Thrown when the function of the tool is null. CreateFromFunction<TResult>(string, string, Func<TResult>) Creates a tool from a function. public static Tool CreateFromFunction<TResult>(string name, string description, Func<TResult> func) Parameters name string The name of the tool. description string The description of the tool. func Func<TResult> The function. Returns Tool The created tool as instance of Tool. Type Parameters TResult The type of the result for the delegate. Remarks The name of the tool will be sanitized to conform to the Anthropic tool naming rules. Exceptions ArgumentNullException Thrown when func is null. CreateFromFunction<T1, TResult>(string, string, Func<T1, TResult>) Creates a tool from a function. public static Tool CreateFromFunction<T1, TResult>(string name, string description, Func<T1, TResult> func) Parameters name string The name of the tool. description string The description of the tool. func Func<T1, TResult> The function. Returns Tool The created tool as instance of Tool. Type Parameters T1 The type of the first parameter for the delegate. TResult The type of the result for the delegate. Remarks The name of the tool will be sanitized to conform to the Anthropic tool naming rules. Exceptions ArgumentNullException Thrown when func is null. CreateFromFunction<T1, T2, TResult>(string, string, Func<T1, T2, TResult>) Creates a tool from a function. public static Tool CreateFromFunction<T1, T2, TResult>(string name, string description, Func<T1, T2, TResult> func) Parameters name string The name of the tool. description string The description of the tool. func Func<T1, T2, TResult> The function. Returns Tool The created tool as instance of Tool. Type Parameters T1 The type of the first parameter for the delegate. T2 The type of the second parameter for the delegate. TResult The type of the result for the delegate. Remarks The name of the tool will be sanitized to conform to the Anthropic tool naming rules. Exceptions ArgumentNullException Thrown when func is null. CreateFromInstanceMethod(string, string, object, string) Creates a tool from an instance method. public static Tool CreateFromInstanceMethod(string name, string description, object instance, string methodName) Parameters name string The name of the tool. description string The description of the tool. instance object The instance that contains the method. methodName string The name of the method. Returns Tool The created tool as instance of Tool. Remarks The name of the tool will be sanitized to conform to the Anthropic tool naming rules. Exceptions ArgumentException Thrown when methodName is null or empty. ArgumentNullException Thrown when instance is null. ArgumentException Thrown when methodName is not found in the type of instance. CreateFromStaticMethod(string, string, Type, string) Creates a tool from a static method. public static Tool CreateFromStaticMethod(string name, string description, Type type, string methodName) Parameters name string The name of the tool. description string The description of the tool. type Type The type that contains the method. methodName string The name of the method. Returns Tool The created tool as instance of Tool. Remarks The name of the tool will be sanitized to conform to the Anthropic tool naming rules. Exceptions ArgumentException Thrown when methodName is null or empty. ArgumentNullException Thrown when type is null. ArgumentException Thrown when the method is not found in the type."
|
||||
"keywords": "Class Tool Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents a tool that can be used. public class Tool Inheritance object Tool Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Properties CacheControl Gets or sets the cache control to be used for the tool. [JsonPropertyName(\"cache_control\")] public CacheControl? CacheControl { get; set; } Property Value CacheControl Description Gets the description of the tool. public string Description { get; } Property Value string DisplayName Gets the display name of the tool. [JsonIgnore] public string DisplayName { get; } Property Value string Function Gets the function of the tool. [JsonIgnore] public AnthropicFunction Function { get; } Property Value AnthropicFunction InputSchema Gets the input schema of the tool. [JsonPropertyName(\"input_schema\")] public JsonObject InputSchema { get; } Property Value JsonObject Name Gets the name of the tool. This name will conform to the Anthropic tool naming rules. public string Name { get; } Property Value string Methods CreateFromClass<T>(CacheControl?) Creates a tool from a type that implements ITool. public static Tool CreateFromClass<T>(CacheControl? cacheControl = null) where T : ITool, new() Parameters cacheControl CacheControl Returns Tool The created tool as instance of Tool. Type Parameters T The type that implements ITool. Remarks The implementation of ITool must have a parameterless constructor. Exceptions ArgumentException Thrown when the name or description of the tool is null or empty. ArgumentNullException Thrown when the function of the tool is null. CreateFromFunction<TResult>(string, string, Func<TResult>, CacheControl?) Creates a tool from a function. public static Tool CreateFromFunction<TResult>(string name, string description, Func<TResult> func, CacheControl? cacheControl = null) Parameters name string The name of the tool. description string The description of the tool. func Func<TResult> The function. cacheControl CacheControl The cache control to be used for the tool. Returns Tool The created tool as instance of Tool. Type Parameters TResult The type of the result for the delegate. Remarks The name of the tool will be sanitized to conform to the Anthropic tool naming rules. Exceptions ArgumentNullException Thrown when func is null. CreateFromFunction<T1, TResult>(string, string, Func<T1, TResult>, CacheControl?) Creates a tool from a function. public static Tool CreateFromFunction<T1, TResult>(string name, string description, Func<T1, TResult> func, CacheControl? cacheControl = null) Parameters name string The name of the tool. description string The description of the tool. func Func<T1, TResult> The function. cacheControl CacheControl The cache control to be used for the tool. Returns Tool The created tool as instance of Tool. Type Parameters T1 The type of the first parameter for the delegate. TResult The type of the result for the delegate. Remarks The name of the tool will be sanitized to conform to the Anthropic tool naming rules. Exceptions ArgumentNullException Thrown when func is null. CreateFromFunction<T1, T2, TResult>(string, string, Func<T1, T2, TResult>, CacheControl?) Creates a tool from a function. public static Tool CreateFromFunction<T1, T2, TResult>(string name, string description, Func<T1, T2, TResult> func, CacheControl? cacheControl = null) Parameters name string The name of the tool. description string The description of the tool. func Func<T1, T2, TResult> The function. cacheControl CacheControl The cache control to be used for the tool. Returns Tool The created tool as instance of Tool. Type Parameters T1 The type of the first parameter for the delegate. T2 The type of the second parameter for the delegate. TResult The type of the result for the delegate. Remarks The name of the tool will be sanitized to conform to the Anthropic tool naming rules. Exceptions ArgumentNullException Thrown when func is null. CreateFromInstanceMethod(string, string, object, string, CacheControl?) Creates a tool from an instance method. public static Tool CreateFromInstanceMethod(string name, string description, object instance, string methodName, CacheControl? cacheControl = null) Parameters name string The name of the tool. description string The description of the tool. instance object The instance that contains the method. methodName string The name of the method. cacheControl CacheControl The cache control to be used for the tool. Returns Tool The created tool as instance of Tool. Remarks The name of the tool will be sanitized to conform to the Anthropic tool naming rules. Exceptions ArgumentException Thrown when methodName is null or empty. ArgumentNullException Thrown when instance is null. ArgumentException Thrown when methodName is not found in the type of instance. CreateFromStaticMethod(string, string, Type,Line truncated
|
||||
},
|
||||
"api/AnthropicClient.Models.ToolCall.html": {
|
||||
"href": "api/AnthropicClient.Models.ToolCall.html",
|
||||
@@ -292,22 +307,22 @@
|
||||
"api/AnthropicClient.Models.ToolResultContent.html": {
|
||||
"href": "api/AnthropicClient.Models.ToolResultContent.html",
|
||||
"title": "Class ToolResultContent | AnthropicClient",
|
||||
"keywords": "Class ToolResultContent Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents tool result content that is part of a message. public class ToolResultContent : Content Inheritance object Content ToolResultContent Inherited Members Content.Type object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors ToolResultContent(string, string) Initializes a new instance of the ToolResultContent class. public ToolResultContent(string toolUseId, string content) Parameters toolUseId string The tool use ID of the content. content string The content of the tool result. Exceptions ArgumentNullException Thrown when the tool use ID or content is null. Properties Content Gets the content of the tool result. public string Content { get; init; } Property Value string ToolUseId Gets the tool use ID of the content. [JsonPropertyName(\"tool_use_id\")] public string ToolUseId { get; init; } Property Value string"
|
||||
"keywords": "Class ToolResultContent Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents tool result content that is part of a message. public class ToolResultContent : Content Inheritance object Content ToolResultContent Inherited Members Content.Type Content.CacheControl object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors ToolResultContent(string, string) Initializes a new instance of the ToolResultContent class. public ToolResultContent(string toolUseId, string content) Parameters toolUseId string The tool use ID of the content. content string The content of the tool result. Exceptions ArgumentNullException Thrown when the tool use ID or content is null. ToolResultContent(string, string, CacheControl) Initializes a new instance of the ToolResultContent class. public ToolResultContent(string toolUseId, string content, CacheControl cacheControl) Parameters toolUseId string The tool use ID of the content. content string The content of the tool result. cacheControl CacheControl The cache control to be used for the content. Exceptions ArgumentNullException Thrown when the tool use ID or content is null. Properties Content Gets the content of the tool result. public string Content { get; init; } Property Value string ToolUseId Gets the tool use ID of the content. [JsonPropertyName(\"tool_use_id\")] public string ToolUseId { get; init; } Property Value string"
|
||||
},
|
||||
"api/AnthropicClient.Models.ToolUseContent.html": {
|
||||
"href": "api/AnthropicClient.Models.ToolUseContent.html",
|
||||
"title": "Class ToolUseContent | AnthropicClient",
|
||||
"keywords": "Class ToolUseContent Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents tool use content that is part of a message. public class ToolUseContent : Content Inheritance object Content ToolUseContent Inherited Members Content.Type object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors ToolUseContent() Initializes a new instance of the ToolUseContent class. public ToolUseContent() Properties Id Gets the ID of the tool use. public string Id { get; init; } Property Value string Input Gets the input of the tool. public Dictionary<string, object?> Input { get; init; } Property Value Dictionary<string, object> Name Gets the name of the tool. public string Name { get; init; } Property Value string"
|
||||
"keywords": "Class ToolUseContent Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents tool use content that is part of a message. public class ToolUseContent : Content Inheritance object Content ToolUseContent Inherited Members Content.Type Content.CacheControl object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Constructors ToolUseContent() Initializes a new instance of the ToolUseContent class. public ToolUseContent() Properties Id Gets the ID of the tool use. public string Id { get; init; } Property Value string Input Gets the input of the tool. public Dictionary<string, object?> Input { get; init; } Property Value Dictionary<string, object> Name Gets the name of the tool. public string Name { get; init; } Property Value string"
|
||||
},
|
||||
"api/AnthropicClient.Models.Usage.html": {
|
||||
"href": "api/AnthropicClient.Models.Usage.html",
|
||||
"title": "Class Usage | AnthropicClient",
|
||||
"keywords": "Class Usage Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents the usage of a response. public class Usage Inheritance object Usage Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Properties InputTokens Gets the number of input tokens used. [JsonPropertyName(\"input_tokens\")] public int InputTokens { get; init; } Property Value int OutputTokens Gets the number of output tokens used. [JsonPropertyName(\"output_tokens\")] public int OutputTokens { get; init; } Property Value int"
|
||||
"keywords": "Class Usage Namespace AnthropicClient.Models Assembly AnthropicClient.dll Represents the usage of a response. public class Usage Inheritance object Usage Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Properties CacheCreationInputTokens Gets the number of tokens written to the cache when creating a new entry [JsonPropertyName(\"cache_creation_input_tokens\")] public int CacheCreationInputTokens { get; init; } Property Value int CacheReadInputTokens Gets the number of tokens retrieved from the cache for the request. [JsonPropertyName(\"cache_read_input_tokens\")] public int CacheReadInputTokens { get; init; } Property Value int InputTokens Gets the number of input tokens used. [JsonPropertyName(\"input_tokens\")] public int InputTokens { get; init; } Property Value int OutputTokens Gets the number of output tokens used. [JsonPropertyName(\"output_tokens\")] public int OutputTokens { get; init; } Property Value int"
|
||||
},
|
||||
"api/AnthropicClient.Models.html": {
|
||||
"href": "api/AnthropicClient.Models.html",
|
||||
"title": "Namespace AnthropicClient.Models | AnthropicClient",
|
||||
"keywords": "Namespace AnthropicClient.Models Classes AnthropicError Represents an error response from the Anthropic API. AnthropicEvent Represents an event from the Anthropic API. AnthropicFunction Represents a function that can be provided as a tool. AnthropicHeaders Represents headers included in Anthropic API responses. AnthropicModels Provides constants for the Anthropic models. AnyToolChoice Represents the any tool choice mode. ApiError Represents an api_error response from the Anthropic API. AuthenticationError Represents an authentication_error response from the Anthropic API. AutoToolChoice Represents the auto tool choice mode. BaseMessageRequest Represents a message request. Content Represents part of the content of a message. ContentDelta Represents a content delta. ContentDeltaEventData Represents data for a content_block_delta event. ContentDeltaType Provides constants for content delta types. ContentStartEventData Represents data for a content_block_start event. ContentStopEventData Represents data for a content_block_stop event. ContentType Represents the content type. Error Represents an error. ErrorEventData Represents data for an error event. ErrorType Represents the error type. EventData Represents data for an event. EventType Provides constants for event types. FunctionParameterAttribute Attribute to describe a function parameter. FunctionPropertyAttribute Attribute to describe a property of a type that is used as a function parameter. ImageContent Represents image content that is part of a message. ImageSource Represents an image source. ImageType Represents the image type. InputProperty Represents an input property. InputSchema Represents an input schema. InvalidRequestError Represents an invalid_request error. JsonDelta Represents a JSON delta. Message Represents a message. MessageCompleteEventData Represents data for the message_complete event. MessageDelta Represents a message delta. MessageDeltaEventData Represents data for a message_delta event. MessageRequest Represents a message request. MessageResponse Represents a response. MessageRole Represents the message role. MessageStartEventData Represents data for a message_start event. MessageStopEventData Represents data for a message_stop event. NotFoundError Represents a not_found error. OverloadedError Represents an overloaded error. PermissionError Represents a permission error. PingEventData Represents data for a ping event. RateLimitError Represents a rate_limit error. SpecificToolChoice Represents the specific tool choice mode. StopReasonType Represents the stop reason type. StreamMessageRequest Represents a message request. TextContent Represents text content that is part of a message. TextDelta Represents a text delta. Tool Represents a tool that can be used. ToolCall Represents a tool call. ToolCallResult<T> Represents a tool call result. ToolChoice Represents a tool choice mode. ToolChoiceType Represents the tool choice type. ToolResultContent Represents tool result content that is part of a message. ToolUseContent Represents tool use content that is part of a message. Usage Represents the usage of a response. Interfaces ITool Interface that a class can implement to be used to create a tool."
|
||||
"keywords": "Namespace AnthropicClient.Models Classes AnthropicError Represents an error response from the Anthropic API. AnthropicEvent Represents an event from the Anthropic API. AnthropicFunction Represents a function that can be provided as a tool. AnthropicHeaders Represents headers included in Anthropic API responses. AnthropicModels Provides constants for the Anthropic models. AnyToolChoice Represents the any tool choice mode. ApiError Represents an api_error response from the Anthropic API. AuthenticationError Represents an authentication_error response from the Anthropic API. AutoToolChoice Represents the auto tool choice mode. BaseMessageRequest Represents a message request. CacheControl Represents the cache control to be used for content. CacheControlType Provides constants for cache control types. Content Represents part of the content of a message. ContentDelta Represents a content delta. ContentDeltaEventData Represents data for a content_block_delta event. ContentDeltaType Provides constants for content delta types. ContentStartEventData Represents data for a content_block_start event. ContentStopEventData Represents data for a content_block_stop event. ContentType Represents the content type. EphemeralCacheControl Represents the cache control to be used for content. Error Represents an error. ErrorEventData Represents data for an error event. ErrorType Represents the error type. EventData Represents data for an event. EventType Provides constants for event types. FunctionParameterAttribute Attribute to describe a function parameter. FunctionPropertyAttribute Attribute to describe a property of a type that is used as a function parameter. ImageContent Represents image content that is part of a message. ImageSource Represents an image source. ImageType Represents the image type. InputProperty Represents an input property. InputSchema Represents an input schema. InvalidRequestError Represents an invalid_request error. JsonDelta Represents a JSON delta. Message Represents a message. MessageCompleteEventData Represents data for the message_complete event. MessageDelta Represents a message delta. MessageDeltaEventData Represents data for a message_delta event. MessageRequest Represents a message request. MessageResponse Represents a response. MessageRole Represents the message role. MessageStartEventData Represents data for a message_start event. MessageStopEventData Represents data for a message_stop event. NotFoundError Represents a not_found error. OverloadedError Represents an overloaded error. PermissionError Represents a permission error. PingEventData Represents data for a ping event. RateLimitError Represents a rate_limit error. SpecificToolChoice Represents the specific tool choice mode. StopReasonType Represents the stop reason type. StreamMessageRequest Represents a message request. TextContent Represents text content that is part of a message. TextDelta Represents a text delta. Tool Represents a tool that can be used. ToolCall Represents a tool call. ToolCallResult<T> Represents a tool call result. ToolChoice Represents a tool choice mode. ToolChoiceType Represents the tool choice type. ToolResultContent Represents tool result content that is part of a message. ToolUseContent Represents tool use content that is part of a message. Usage Represents the usage of a response. Interfaces ITool Interface that a class can implement to be used to create a tool."
|
||||
},
|
||||
"api/AnthropicClient.html": {
|
||||
"href": "api/AnthropicClient.html",
|
||||
@@ -317,6 +332,6 @@
|
||||
"index.html": {
|
||||
"href": "index.html",
|
||||
"title": "AnthropicClient | AnthropicClient",
|
||||
"keywords": "AnthropicClient This library for the Anthropic API is meant to simplify development in C# for Anthropic users. Note This is an unofficial SDK for the Anthropic API. It was not built in consultation with Anthropic or any member of their organization. This SDK was developed independently using existing libraries and the Anthropic API documentation as the starting point with the intention of making development of integrations done in C# with Anthropic quicker and more convenient. Note This client library is heavily inspired by the Anthropic.SDK library. I chose to create a new library because I wanted to handle streaming and tool calling differently as well as have control over the client library as I plan to use it to build a connector for SemanticKernel. However if you are looking for a client library the Anthropic.SDK is a great place to start. 📝 Issues If you encounter any issues while using this library please open an issue here. 📜 License This library is licensed under the MIT License and is free to use and modify. 📝 Contributing If you would like to contribute to this library please open a pull request here. 🛠️ Dependencies Microsoft.Bcl.AsyncInterfaces Used to support async interfaces when streaming messages System.Text.Json Used for JSON serialization and deserialization 💾 Installation Install the package from NuGet using the following command: dotnet add package AnthropicClient 🔑 API Key In order to use the Anthropic API you will need an API key. You can get one by signing up at Anthropic. Please keep your API key secure and do not share it with others. Be mindful of where you store your API key and do not commit it to a public repository. 👨🏻💻 Start Coding AnthropicApiClient The most common way to use the SDK is to create an AnthropicApiClient instance and call its methods. Its constructor requires two parameters: apiKey - your Anthropic API key httpClient - an HttpClient instance. You can configure and customize the HttpClient instance as needed. This library however will perform the necessary configuration to work with the Anthropic API. Such as setting the base address and adding the proper headers. Note This library does not manage the lifecycle of the HttpClient instance. You should create and manage the lifecycle of the HttpClient instance in your application. It is best practice to read the API key from a secure location such as a configuration file or environment variable. For example using the appsettings.json file: { \"AnthropicApiKey\": \"YOUR_API\" } Example constructing an AnthropicApiClient instance: using AnthropicClient; using Microsoft.Extensions.Configuration; var configuration = new ConfigurationBuilder() .AddJsonFile(\"appsettings.json\") .Build(); var apiKey = configuration[\"AnthropicApiKey\"]; var client = new AnthropicApiClient(apiKey, new HttpClient()); IAnthropicApiClient The library does expose an interface IAnthropicApiClient that can be used for dependency injection and testing. The interface is implemented by the AnthropicApiClient class. Full API Documentation This library was developed to make using the Anthropic API easier within a .NET application. If you are looking for the full API documentation you can find it at Anthropic API Documentation. Usage The primary use case for working with the Anthropic API is to create a message in response to a request that includes one or more other messages. The created message can then be received either as a complete response or a stream of events. This can be used to create a conversation between the caller and Anthropic's AI models and/or to use Anthropic's AI models to perform a task. Note The following examples assume that you have already created an instance of the AnthropicApiClient class named client. You can also find these snippets in the examples directory. Create a message The AnthropicApiClient exposes a single method named CreateMessageAsync that can be used to create a message. The method requires a MessageRequest or a StreamMessageRequest instance as a parameter. The MessageRequest class is used to create a message whose response is not streamed and the StreamMessageRequest class is used to create a message whose response is streamed. The MessageRequest instance's properties can be set to configure how the message is created. Non-Streaming using AnthropicClient; using AnthropicClient.Models; var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ] )); if (response.IsSuccess is false) { Console.WriteLine($\"Failed to create message\"); Console.WriteLine($\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine($\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } Streaming Line truncated
|
||||
"keywords": "AnthropicClient This library for the Anthropic API is meant to simplify development in C# for Anthropic users. Note This is an unofficial SDK for the Anthropic API. It was not built in consultation with Anthropic or any member of their organization. This SDK was developed independently using existing libraries and the Anthropic API documentation as the starting point with the intention of making development of integrations done in C# with Anthropic quicker and more convenient. Note This client library is heavily inspired by the Anthropic.SDK library. I chose to create a new library because I wanted to handle streaming and tool calling differently as well as have control over the client library as I plan to use it to build a connector for SemanticKernel. However if you are looking for a client library the Anthropic.SDK is a great place to start. 📝 Issues If you encounter any issues while using this library please open an issue here. 📜 License This library is licensed under the MIT License and is free to use and modify. 📝 Contributing If you would like to contribute to this library please open a pull request here. 🛠️ Dependencies Microsoft.Bcl.AsyncInterfaces Used to support async interfaces when streaming messages System.Text.Json Used for JSON serialization and deserialization 💾 Installation Install the package from NuGet using the following command: dotnet add package AnthropicClient 🔑 API Key In order to use the Anthropic API you will need an API key. You can get one by signing up at Anthropic. Please keep your API key secure and do not share it with others. Be mindful of where you store your API key and do not commit it to a public repository. 👨🏻💻 Start Coding AnthropicApiClient The most common way to use the SDK is to create an AnthropicApiClient instance and call its methods. Its constructor requires two parameters: apiKey - your Anthropic API key httpClient - an HttpClient instance. You can configure and customize the HttpClient instance as needed. This library however will perform the necessary configuration to work with the Anthropic API. Such as setting the base address and adding the proper headers. Note This library does not manage the lifecycle of the HttpClient instance. You should create and manage the lifecycle of the HttpClient instance in your application. It is best practice to read the API key from a secure location such as a configuration file or environment variable. For example using the appsettings.json file: { \"AnthropicApiKey\": \"YOUR_API\" } Example constructing an AnthropicApiClient instance: using AnthropicClient; using Microsoft.Extensions.Configuration; var configuration = new ConfigurationBuilder() .AddJsonFile(\"appsettings.json\") .Build(); var apiKey = configuration[\"AnthropicApiKey\"]; var client = new AnthropicApiClient(apiKey, new HttpClient()); IAnthropicApiClient The library does expose an interface IAnthropicApiClient that can be used for dependency injection and testing. The interface is implemented by the AnthropicApiClient class. Full API Documentation This library was developed to make using the Anthropic API easier within a .NET application. If you are looking for the full API documentation you can find it at Anthropic API Documentation. Usage The primary use case for working with the Anthropic API is to create a message in response to a request that includes one or more other messages. The created message can then be received either as a complete response or a stream of events. This can be used to create a conversation between the caller and Anthropic's AI models and/or to use Anthropic's AI models to perform a task. Note The following examples assume that you have already created an instance of the AnthropicApiClient class named client. You can also find these snippets in the examples directory. Create a message The AnthropicApiClient exposes a single method named CreateMessageAsync that can be used to create a message. The method requires a MessageRequest or a StreamMessageRequest instance as a parameter. The MessageRequest class is used to create a message whose response is not streamed and the StreamMessageRequest class is used to create a message whose response is streamed. The MessageRequest instance's properties can be set to configure how the message is created. Non-Streaming using AnthropicClient; using AnthropicClient.Models; var response = await client.CreateMessageAsync(new MessageRequest( AnthropicModels.Claude3Haiku, [ new( MessageRole.User, [new TextContent(\"Please write a haiku about the ocean.\")] ) ] )); if (response.IsSuccess is false) { Console.WriteLine($\"Failed to create message\"); Console.WriteLine($\"Error Type: {0}\", response.Error.Error.Type); Console.WriteLine($\"Error Message: {0}\", response.Error.Error.Message); return; } foreach (var content in response.Value.Content) { switch (content) { case TextContent textContent: Console.WriteLine(textContent.Text); break; } } Streaming Line truncated
|
||||
}
|
||||
}
|
||||
+36
-6
@@ -130,6 +130,26 @@
|
||||
},
|
||||
"version": ""
|
||||
},
|
||||
{
|
||||
"type": "ManagedReference",
|
||||
"source_relative_path": "api/AnthropicClient.Models.CacheControl.yml",
|
||||
"output": {
|
||||
".html": {
|
||||
"relative_path": "api/AnthropicClient.Models.CacheControl.html"
|
||||
}
|
||||
},
|
||||
"version": ""
|
||||
},
|
||||
{
|
||||
"type": "ManagedReference",
|
||||
"source_relative_path": "api/AnthropicClient.Models.CacheControlType.yml",
|
||||
"output": {
|
||||
".html": {
|
||||
"relative_path": "api/AnthropicClient.Models.CacheControlType.html"
|
||||
}
|
||||
},
|
||||
"version": ""
|
||||
},
|
||||
{
|
||||
"type": "ManagedReference",
|
||||
"source_relative_path": "api/AnthropicClient.Models.Content.yml",
|
||||
@@ -200,6 +220,16 @@
|
||||
},
|
||||
"version": ""
|
||||
},
|
||||
{
|
||||
"type": "ManagedReference",
|
||||
"source_relative_path": "api/AnthropicClient.Models.EphemeralCacheControl.yml",
|
||||
"output": {
|
||||
".html": {
|
||||
"relative_path": "api/AnthropicClient.Models.EphemeralCacheControl.html"
|
||||
}
|
||||
},
|
||||
"version": ""
|
||||
},
|
||||
{
|
||||
"type": "ManagedReference",
|
||||
"source_relative_path": "api/AnthropicClient.Models.Error.yml",
|
||||
@@ -644,11 +674,11 @@
|
||||
"type": "Toc",
|
||||
"source_relative_path": "api/toc.yml",
|
||||
"output": {
|
||||
".html": {
|
||||
"relative_path": "api/toc.html"
|
||||
},
|
||||
".json": {
|
||||
"relative_path": "api/toc.json"
|
||||
},
|
||||
".html": {
|
||||
"relative_path": "api/toc.html"
|
||||
}
|
||||
},
|
||||
"version": ""
|
||||
@@ -667,11 +697,11 @@
|
||||
"type": "Toc",
|
||||
"source_relative_path": "toc.yml",
|
||||
"output": {
|
||||
".html": {
|
||||
"relative_path": "toc.html"
|
||||
},
|
||||
".json": {
|
||||
"relative_path": "toc.json"
|
||||
},
|
||||
".html": {
|
||||
"relative_path": "toc.html"
|
||||
}
|
||||
},
|
||||
"version": ""
|
||||
|
||||
+270
-81
@@ -481,15 +481,15 @@ references:
|
||||
commentId: T:AnthropicClient.Models.BaseMessageRequest
|
||||
fullName: AnthropicClient.Models.BaseMessageRequest
|
||||
nameWithType: BaseMessageRequest
|
||||
- uid: AnthropicClient.Models.BaseMessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Boolean,System.Collections.Generic.List{System.String})
|
||||
name: BaseMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, bool, List<string>?)
|
||||
href: api/AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest__ctor_System_String_System_Collections_Generic_List_AnthropicClient_Models_Message__System_Int32_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__System_Decimal_System_Nullable_System_Int32__System_Nullable_System_Decimal__AnthropicClient_Models_ToolChoice_System_Collections_Generic_List_AnthropicClient_Models_Tool__System_Boolean_System_Collections_Generic_List_System_String__
|
||||
commentId: M:AnthropicClient.Models.BaseMessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Boolean,System.Collections.Generic.List{System.String})
|
||||
name.vb: New(String, List(Of Message), Integer, String, Dictionary(Of String, Object), Decimal, Integer?, Decimal?, ToolChoice, List(Of Tool), Boolean, List(Of String))
|
||||
fullName: AnthropicClient.Models.BaseMessageRequest.BaseMessageRequest(string, System.Collections.Generic.List<AnthropicClient.Models.Message>, int, string?, System.Collections.Generic.Dictionary<string, object>?, decimal, int?, decimal?, AnthropicClient.Models.ToolChoice?, System.Collections.Generic.List<AnthropicClient.Models.Tool>?, bool, System.Collections.Generic.List<string>?)
|
||||
fullName.vb: AnthropicClient.Models.BaseMessageRequest.New(String, System.Collections.Generic.List(Of AnthropicClient.Models.Message), Integer, String, System.Collections.Generic.Dictionary(Of String, Object), Decimal, Integer?, Decimal?, AnthropicClient.Models.ToolChoice, System.Collections.Generic.List(Of AnthropicClient.Models.Tool), Boolean, System.Collections.Generic.List(Of String))
|
||||
nameWithType: BaseMessageRequest.BaseMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, bool, List<string>?)
|
||||
nameWithType.vb: BaseMessageRequest.New(String, List(Of Message), Integer, String, Dictionary(Of String, Object), Decimal, Integer?, Decimal?, ToolChoice, List(Of Tool), Boolean, List(Of String))
|
||||
- uid: AnthropicClient.Models.BaseMessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Boolean,System.Collections.Generic.List{System.String},System.Collections.Generic.List{AnthropicClient.Models.TextContent})
|
||||
name: BaseMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, bool, List<string>?, List<TextContent>?)
|
||||
href: api/AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest__ctor_System_String_System_Collections_Generic_List_AnthropicClient_Models_Message__System_Int32_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__System_Decimal_System_Nullable_System_Int32__System_Nullable_System_Decimal__AnthropicClient_Models_ToolChoice_System_Collections_Generic_List_AnthropicClient_Models_Tool__System_Boolean_System_Collections_Generic_List_System_String__System_Collections_Generic_List_AnthropicClient_Models_TextContent__
|
||||
commentId: M:AnthropicClient.Models.BaseMessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Boolean,System.Collections.Generic.List{System.String},System.Collections.Generic.List{AnthropicClient.Models.TextContent})
|
||||
name.vb: New(String, List(Of Message), Integer, String, Dictionary(Of String, Object), Decimal, Integer?, Decimal?, ToolChoice, List(Of Tool), Boolean, List(Of String), List(Of TextContent))
|
||||
fullName: AnthropicClient.Models.BaseMessageRequest.BaseMessageRequest(string, System.Collections.Generic.List<AnthropicClient.Models.Message>, int, string?, System.Collections.Generic.Dictionary<string, object>?, decimal, int?, decimal?, AnthropicClient.Models.ToolChoice?, System.Collections.Generic.List<AnthropicClient.Models.Tool>?, bool, System.Collections.Generic.List<string>?, System.Collections.Generic.List<AnthropicClient.Models.TextContent>?)
|
||||
fullName.vb: AnthropicClient.Models.BaseMessageRequest.New(String, System.Collections.Generic.List(Of AnthropicClient.Models.Message), Integer, String, System.Collections.Generic.Dictionary(Of String, Object), Decimal, Integer?, Decimal?, AnthropicClient.Models.ToolChoice, System.Collections.Generic.List(Of AnthropicClient.Models.Tool), Boolean, System.Collections.Generic.List(Of String), System.Collections.Generic.List(Of AnthropicClient.Models.TextContent))
|
||||
nameWithType: BaseMessageRequest.BaseMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, bool, List<string>?, List<TextContent>?)
|
||||
nameWithType.vb: BaseMessageRequest.New(String, List(Of Message), Integer, String, Dictionary(Of String, Object), Decimal, Integer?, Decimal?, ToolChoice, List(Of Tool), Boolean, List(Of String), List(Of TextContent))
|
||||
- uid: AnthropicClient.Models.BaseMessageRequest.#ctor*
|
||||
name: BaseMessageRequest
|
||||
href: api/AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest__ctor_
|
||||
@@ -591,6 +591,32 @@ references:
|
||||
isSpec: "True"
|
||||
fullName: AnthropicClient.Models.BaseMessageRequest.System
|
||||
nameWithType: BaseMessageRequest.System
|
||||
- uid: AnthropicClient.Models.BaseMessageRequest.SystemMessages
|
||||
name: SystemMessages
|
||||
href: api/AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest_SystemMessages
|
||||
commentId: P:AnthropicClient.Models.BaseMessageRequest.SystemMessages
|
||||
fullName: AnthropicClient.Models.BaseMessageRequest.SystemMessages
|
||||
nameWithType: BaseMessageRequest.SystemMessages
|
||||
- uid: AnthropicClient.Models.BaseMessageRequest.SystemMessages*
|
||||
name: SystemMessages
|
||||
href: api/AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest_SystemMessages_
|
||||
commentId: Overload:AnthropicClient.Models.BaseMessageRequest.SystemMessages
|
||||
isSpec: "True"
|
||||
fullName: AnthropicClient.Models.BaseMessageRequest.SystemMessages
|
||||
nameWithType: BaseMessageRequest.SystemMessages
|
||||
- uid: AnthropicClient.Models.BaseMessageRequest.SystemPrompt
|
||||
name: SystemPrompt
|
||||
href: api/AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest_SystemPrompt
|
||||
commentId: P:AnthropicClient.Models.BaseMessageRequest.SystemPrompt
|
||||
fullName: AnthropicClient.Models.BaseMessageRequest.SystemPrompt
|
||||
nameWithType: BaseMessageRequest.SystemPrompt
|
||||
- uid: AnthropicClient.Models.BaseMessageRequest.SystemPrompt*
|
||||
name: SystemPrompt
|
||||
href: api/AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest_SystemPrompt_
|
||||
commentId: Overload:AnthropicClient.Models.BaseMessageRequest.SystemPrompt
|
||||
isSpec: "True"
|
||||
fullName: AnthropicClient.Models.BaseMessageRequest.SystemPrompt
|
||||
nameWithType: BaseMessageRequest.SystemPrompt
|
||||
- uid: AnthropicClient.Models.BaseMessageRequest.Temperature
|
||||
name: Temperature
|
||||
href: api/AnthropicClient.Models.BaseMessageRequest.html#AnthropicClient_Models_BaseMessageRequest_Temperature
|
||||
@@ -656,6 +682,56 @@ references:
|
||||
isSpec: "True"
|
||||
fullName: AnthropicClient.Models.BaseMessageRequest.TopP
|
||||
nameWithType: BaseMessageRequest.TopP
|
||||
- uid: AnthropicClient.Models.CacheControl
|
||||
name: CacheControl
|
||||
href: api/AnthropicClient.Models.CacheControl.html
|
||||
commentId: T:AnthropicClient.Models.CacheControl
|
||||
fullName: AnthropicClient.Models.CacheControl
|
||||
nameWithType: CacheControl
|
||||
- uid: AnthropicClient.Models.CacheControl.#ctor(System.String)
|
||||
name: CacheControl(string)
|
||||
href: api/AnthropicClient.Models.CacheControl.html#AnthropicClient_Models_CacheControl__ctor_System_String_
|
||||
commentId: M:AnthropicClient.Models.CacheControl.#ctor(System.String)
|
||||
name.vb: New(String)
|
||||
fullName: AnthropicClient.Models.CacheControl.CacheControl(string)
|
||||
fullName.vb: AnthropicClient.Models.CacheControl.New(String)
|
||||
nameWithType: CacheControl.CacheControl(string)
|
||||
nameWithType.vb: CacheControl.New(String)
|
||||
- uid: AnthropicClient.Models.CacheControl.#ctor*
|
||||
name: CacheControl
|
||||
href: api/AnthropicClient.Models.CacheControl.html#AnthropicClient_Models_CacheControl__ctor_
|
||||
commentId: Overload:AnthropicClient.Models.CacheControl.#ctor
|
||||
isSpec: "True"
|
||||
name.vb: New
|
||||
fullName: AnthropicClient.Models.CacheControl.CacheControl
|
||||
fullName.vb: AnthropicClient.Models.CacheControl.New
|
||||
nameWithType: CacheControl.CacheControl
|
||||
nameWithType.vb: CacheControl.New
|
||||
- uid: AnthropicClient.Models.CacheControl.Type
|
||||
name: Type
|
||||
href: api/AnthropicClient.Models.CacheControl.html#AnthropicClient_Models_CacheControl_Type
|
||||
commentId: P:AnthropicClient.Models.CacheControl.Type
|
||||
fullName: AnthropicClient.Models.CacheControl.Type
|
||||
nameWithType: CacheControl.Type
|
||||
- uid: AnthropicClient.Models.CacheControl.Type*
|
||||
name: Type
|
||||
href: api/AnthropicClient.Models.CacheControl.html#AnthropicClient_Models_CacheControl_Type_
|
||||
commentId: Overload:AnthropicClient.Models.CacheControl.Type
|
||||
isSpec: "True"
|
||||
fullName: AnthropicClient.Models.CacheControl.Type
|
||||
nameWithType: CacheControl.Type
|
||||
- uid: AnthropicClient.Models.CacheControlType
|
||||
name: CacheControlType
|
||||
href: api/AnthropicClient.Models.CacheControlType.html
|
||||
commentId: T:AnthropicClient.Models.CacheControlType
|
||||
fullName: AnthropicClient.Models.CacheControlType
|
||||
nameWithType: CacheControlType
|
||||
- uid: AnthropicClient.Models.CacheControlType.Ephemeral
|
||||
name: Ephemeral
|
||||
href: api/AnthropicClient.Models.CacheControlType.html#AnthropicClient_Models_CacheControlType_Ephemeral
|
||||
commentId: F:AnthropicClient.Models.CacheControlType.Ephemeral
|
||||
fullName: AnthropicClient.Models.CacheControlType.Ephemeral
|
||||
nameWithType: CacheControlType.Ephemeral
|
||||
- uid: AnthropicClient.Models.Content
|
||||
name: Content
|
||||
href: api/AnthropicClient.Models.Content.html
|
||||
@@ -671,6 +747,15 @@ references:
|
||||
fullName.vb: AnthropicClient.Models.Content.New(String)
|
||||
nameWithType: Content.Content(string)
|
||||
nameWithType.vb: Content.New(String)
|
||||
- uid: AnthropicClient.Models.Content.#ctor(System.String,AnthropicClient.Models.CacheControl)
|
||||
name: Content(string, CacheControl)
|
||||
href: api/AnthropicClient.Models.Content.html#AnthropicClient_Models_Content__ctor_System_String_AnthropicClient_Models_CacheControl_
|
||||
commentId: M:AnthropicClient.Models.Content.#ctor(System.String,AnthropicClient.Models.CacheControl)
|
||||
name.vb: New(String, CacheControl)
|
||||
fullName: AnthropicClient.Models.Content.Content(string, AnthropicClient.Models.CacheControl)
|
||||
fullName.vb: AnthropicClient.Models.Content.New(String, AnthropicClient.Models.CacheControl)
|
||||
nameWithType: Content.Content(string, CacheControl)
|
||||
nameWithType.vb: Content.New(String, CacheControl)
|
||||
- uid: AnthropicClient.Models.Content.#ctor*
|
||||
name: Content
|
||||
href: api/AnthropicClient.Models.Content.html#AnthropicClient_Models_Content__ctor_
|
||||
@@ -681,6 +766,19 @@ references:
|
||||
fullName.vb: AnthropicClient.Models.Content.New
|
||||
nameWithType: Content.Content
|
||||
nameWithType.vb: Content.New
|
||||
- uid: AnthropicClient.Models.Content.CacheControl
|
||||
name: CacheControl
|
||||
href: api/AnthropicClient.Models.Content.html#AnthropicClient_Models_Content_CacheControl
|
||||
commentId: P:AnthropicClient.Models.Content.CacheControl
|
||||
fullName: AnthropicClient.Models.Content.CacheControl
|
||||
nameWithType: Content.CacheControl
|
||||
- uid: AnthropicClient.Models.Content.CacheControl*
|
||||
name: CacheControl
|
||||
href: api/AnthropicClient.Models.Content.html#AnthropicClient_Models_Content_CacheControl_
|
||||
commentId: Overload:AnthropicClient.Models.Content.CacheControl
|
||||
isSpec: "True"
|
||||
fullName: AnthropicClient.Models.Content.CacheControl
|
||||
nameWithType: Content.CacheControl
|
||||
- uid: AnthropicClient.Models.Content.Type
|
||||
name: Type
|
||||
href: api/AnthropicClient.Models.Content.html#AnthropicClient_Models_Content_Type
|
||||
@@ -920,6 +1018,31 @@ references:
|
||||
commentId: F:AnthropicClient.Models.ContentType.ToolUse
|
||||
fullName: AnthropicClient.Models.ContentType.ToolUse
|
||||
nameWithType: ContentType.ToolUse
|
||||
- uid: AnthropicClient.Models.EphemeralCacheControl
|
||||
name: EphemeralCacheControl
|
||||
href: api/AnthropicClient.Models.EphemeralCacheControl.html
|
||||
commentId: T:AnthropicClient.Models.EphemeralCacheControl
|
||||
fullName: AnthropicClient.Models.EphemeralCacheControl
|
||||
nameWithType: EphemeralCacheControl
|
||||
- uid: AnthropicClient.Models.EphemeralCacheControl.#ctor
|
||||
name: EphemeralCacheControl()
|
||||
href: api/AnthropicClient.Models.EphemeralCacheControl.html#AnthropicClient_Models_EphemeralCacheControl__ctor
|
||||
commentId: M:AnthropicClient.Models.EphemeralCacheControl.#ctor
|
||||
name.vb: New()
|
||||
fullName: AnthropicClient.Models.EphemeralCacheControl.EphemeralCacheControl()
|
||||
fullName.vb: AnthropicClient.Models.EphemeralCacheControl.New()
|
||||
nameWithType: EphemeralCacheControl.EphemeralCacheControl()
|
||||
nameWithType.vb: EphemeralCacheControl.New()
|
||||
- uid: AnthropicClient.Models.EphemeralCacheControl.#ctor*
|
||||
name: EphemeralCacheControl
|
||||
href: api/AnthropicClient.Models.EphemeralCacheControl.html#AnthropicClient_Models_EphemeralCacheControl__ctor_
|
||||
commentId: Overload:AnthropicClient.Models.EphemeralCacheControl.#ctor
|
||||
isSpec: "True"
|
||||
name.vb: New
|
||||
fullName: AnthropicClient.Models.EphemeralCacheControl.EphemeralCacheControl
|
||||
fullName.vb: AnthropicClient.Models.EphemeralCacheControl.New
|
||||
nameWithType: EphemeralCacheControl.EphemeralCacheControl
|
||||
nameWithType.vb: EphemeralCacheControl.New
|
||||
- uid: AnthropicClient.Models.Error
|
||||
name: Error
|
||||
href: api/AnthropicClient.Models.Error.html
|
||||
@@ -1356,6 +1479,15 @@ references:
|
||||
fullName.vb: AnthropicClient.Models.ImageContent.New(String, String)
|
||||
nameWithType: ImageContent.ImageContent(string, string)
|
||||
nameWithType.vb: ImageContent.New(String, String)
|
||||
- uid: AnthropicClient.Models.ImageContent.#ctor(System.String,System.String,AnthropicClient.Models.CacheControl)
|
||||
name: ImageContent(string, string, CacheControl)
|
||||
href: api/AnthropicClient.Models.ImageContent.html#AnthropicClient_Models_ImageContent__ctor_System_String_System_String_AnthropicClient_Models_CacheControl_
|
||||
commentId: M:AnthropicClient.Models.ImageContent.#ctor(System.String,System.String,AnthropicClient.Models.CacheControl)
|
||||
name.vb: New(String, String, CacheControl)
|
||||
fullName: AnthropicClient.Models.ImageContent.ImageContent(string, string, AnthropicClient.Models.CacheControl)
|
||||
fullName.vb: AnthropicClient.Models.ImageContent.New(String, String, AnthropicClient.Models.CacheControl)
|
||||
nameWithType: ImageContent.ImageContent(string, string, CacheControl)
|
||||
nameWithType.vb: ImageContent.New(String, String, CacheControl)
|
||||
- uid: AnthropicClient.Models.ImageContent.#ctor*
|
||||
name: ImageContent
|
||||
href: api/AnthropicClient.Models.ImageContent.html#AnthropicClient_Models_ImageContent__ctor_
|
||||
@@ -1861,15 +1993,15 @@ references:
|
||||
commentId: T:AnthropicClient.Models.MessageRequest
|
||||
fullName: AnthropicClient.Models.MessageRequest
|
||||
nameWithType: MessageRequest
|
||||
- uid: AnthropicClient.Models.MessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Collections.Generic.List{System.String})
|
||||
name: MessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?)
|
||||
href: api/AnthropicClient.Models.MessageRequest.html#AnthropicClient_Models_MessageRequest__ctor_System_String_System_Collections_Generic_List_AnthropicClient_Models_Message__System_Int32_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__System_Decimal_System_Nullable_System_Int32__System_Nullable_System_Decimal__AnthropicClient_Models_ToolChoice_System_Collections_Generic_List_AnthropicClient_Models_Tool__System_Collections_Generic_List_System_String__
|
||||
commentId: M:AnthropicClient.Models.MessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Collections.Generic.List{System.String})
|
||||
name.vb: New(String, List(Of Message), Integer, String, Dictionary(Of String, Object), Decimal, Integer?, Decimal?, ToolChoice, List(Of Tool), List(Of String))
|
||||
fullName: AnthropicClient.Models.MessageRequest.MessageRequest(string, System.Collections.Generic.List<AnthropicClient.Models.Message>, int, string?, System.Collections.Generic.Dictionary<string, object>?, decimal, int?, decimal?, AnthropicClient.Models.ToolChoice?, System.Collections.Generic.List<AnthropicClient.Models.Tool>?, System.Collections.Generic.List<string>?)
|
||||
fullName.vb: AnthropicClient.Models.MessageRequest.New(String, System.Collections.Generic.List(Of AnthropicClient.Models.Message), Integer, String, System.Collections.Generic.Dictionary(Of String, Object), Decimal, Integer?, Decimal?, AnthropicClient.Models.ToolChoice, System.Collections.Generic.List(Of AnthropicClient.Models.Tool), System.Collections.Generic.List(Of String))
|
||||
nameWithType: MessageRequest.MessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?)
|
||||
nameWithType.vb: MessageRequest.New(String, List(Of Message), Integer, String, Dictionary(Of String, Object), Decimal, Integer?, Decimal?, ToolChoice, List(Of Tool), List(Of String))
|
||||
- uid: AnthropicClient.Models.MessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Collections.Generic.List{System.String},System.Collections.Generic.List{AnthropicClient.Models.TextContent})
|
||||
name: MessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?, List<TextContent>?)
|
||||
href: api/AnthropicClient.Models.MessageRequest.html#AnthropicClient_Models_MessageRequest__ctor_System_String_System_Collections_Generic_List_AnthropicClient_Models_Message__System_Int32_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__System_Decimal_System_Nullable_System_Int32__System_Nullable_System_Decimal__AnthropicClient_Models_ToolChoice_System_Collections_Generic_List_AnthropicClient_Models_Tool__System_Collections_Generic_List_System_String__System_Collections_Generic_List_AnthropicClient_Models_TextContent__
|
||||
commentId: M:AnthropicClient.Models.MessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Collections.Generic.List{System.String},System.Collections.Generic.List{AnthropicClient.Models.TextContent})
|
||||
name.vb: New(String, List(Of Message), Integer, String, Dictionary(Of String, Object), Decimal, Integer?, Decimal?, ToolChoice, List(Of Tool), List(Of String), List(Of TextContent))
|
||||
fullName: AnthropicClient.Models.MessageRequest.MessageRequest(string, System.Collections.Generic.List<AnthropicClient.Models.Message>, int, string?, System.Collections.Generic.Dictionary<string, object>?, decimal, int?, decimal?, AnthropicClient.Models.ToolChoice?, System.Collections.Generic.List<AnthropicClient.Models.Tool>?, System.Collections.Generic.List<string>?, System.Collections.Generic.List<AnthropicClient.Models.TextContent>?)
|
||||
fullName.vb: AnthropicClient.Models.MessageRequest.New(String, System.Collections.Generic.List(Of AnthropicClient.Models.Message), Integer, String, System.Collections.Generic.Dictionary(Of String, Object), Decimal, Integer?, Decimal?, AnthropicClient.Models.ToolChoice, System.Collections.Generic.List(Of AnthropicClient.Models.Tool), System.Collections.Generic.List(Of String), System.Collections.Generic.List(Of AnthropicClient.Models.TextContent))
|
||||
nameWithType: MessageRequest.MessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?, List<TextContent>?)
|
||||
nameWithType.vb: MessageRequest.New(String, List(Of Message), Integer, String, Dictionary(Of String, Object), Decimal, Integer?, Decimal?, ToolChoice, List(Of Tool), List(Of String), List(Of TextContent))
|
||||
- uid: AnthropicClient.Models.MessageRequest.#ctor*
|
||||
name: MessageRequest
|
||||
href: api/AnthropicClient.Models.MessageRequest.html#AnthropicClient_Models_MessageRequest__ctor_
|
||||
@@ -2283,15 +2415,15 @@ references:
|
||||
commentId: T:AnthropicClient.Models.StreamMessageRequest
|
||||
fullName: AnthropicClient.Models.StreamMessageRequest
|
||||
nameWithType: StreamMessageRequest
|
||||
- uid: AnthropicClient.Models.StreamMessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Collections.Generic.List{System.String})
|
||||
name: StreamMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?)
|
||||
href: api/AnthropicClient.Models.StreamMessageRequest.html#AnthropicClient_Models_StreamMessageRequest__ctor_System_String_System_Collections_Generic_List_AnthropicClient_Models_Message__System_Int32_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__System_Decimal_System_Nullable_System_Int32__System_Nullable_System_Decimal__AnthropicClient_Models_ToolChoice_System_Collections_Generic_List_AnthropicClient_Models_Tool__System_Collections_Generic_List_System_String__
|
||||
commentId: M:AnthropicClient.Models.StreamMessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Collections.Generic.List{System.String})
|
||||
name.vb: New(String, List(Of Message), Integer, String, Dictionary(Of String, Object), Decimal, Integer?, Decimal?, ToolChoice, List(Of Tool), List(Of String))
|
||||
fullName: AnthropicClient.Models.StreamMessageRequest.StreamMessageRequest(string, System.Collections.Generic.List<AnthropicClient.Models.Message>, int, string?, System.Collections.Generic.Dictionary<string, object>?, decimal, int?, decimal?, AnthropicClient.Models.ToolChoice?, System.Collections.Generic.List<AnthropicClient.Models.Tool>?, System.Collections.Generic.List<string>?)
|
||||
fullName.vb: AnthropicClient.Models.StreamMessageRequest.New(String, System.Collections.Generic.List(Of AnthropicClient.Models.Message), Integer, String, System.Collections.Generic.Dictionary(Of String, Object), Decimal, Integer?, Decimal?, AnthropicClient.Models.ToolChoice, System.Collections.Generic.List(Of AnthropicClient.Models.Tool), System.Collections.Generic.List(Of String))
|
||||
nameWithType: StreamMessageRequest.StreamMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?)
|
||||
nameWithType.vb: StreamMessageRequest.New(String, List(Of Message), Integer, String, Dictionary(Of String, Object), Decimal, Integer?, Decimal?, ToolChoice, List(Of Tool), List(Of String))
|
||||
- uid: AnthropicClient.Models.StreamMessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Collections.Generic.List{System.String},System.Collections.Generic.List{AnthropicClient.Models.TextContent})
|
||||
name: StreamMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?, List<TextContent>?)
|
||||
href: api/AnthropicClient.Models.StreamMessageRequest.html#AnthropicClient_Models_StreamMessageRequest__ctor_System_String_System_Collections_Generic_List_AnthropicClient_Models_Message__System_Int32_System_String_System_Collections_Generic_Dictionary_System_String_System_Object__System_Decimal_System_Nullable_System_Int32__System_Nullable_System_Decimal__AnthropicClient_Models_ToolChoice_System_Collections_Generic_List_AnthropicClient_Models_Tool__System_Collections_Generic_List_System_String__System_Collections_Generic_List_AnthropicClient_Models_TextContent__
|
||||
commentId: M:AnthropicClient.Models.StreamMessageRequest.#ctor(System.String,System.Collections.Generic.List{AnthropicClient.Models.Message},System.Int32,System.String,System.Collections.Generic.Dictionary{System.String,System.Object},System.Decimal,System.Nullable{System.Int32},System.Nullable{System.Decimal},AnthropicClient.Models.ToolChoice,System.Collections.Generic.List{AnthropicClient.Models.Tool},System.Collections.Generic.List{System.String},System.Collections.Generic.List{AnthropicClient.Models.TextContent})
|
||||
name.vb: New(String, List(Of Message), Integer, String, Dictionary(Of String, Object), Decimal, Integer?, Decimal?, ToolChoice, List(Of Tool), List(Of String), List(Of TextContent))
|
||||
fullName: AnthropicClient.Models.StreamMessageRequest.StreamMessageRequest(string, System.Collections.Generic.List<AnthropicClient.Models.Message>, int, string?, System.Collections.Generic.Dictionary<string, object>?, decimal, int?, decimal?, AnthropicClient.Models.ToolChoice?, System.Collections.Generic.List<AnthropicClient.Models.Tool>?, System.Collections.Generic.List<string>?, System.Collections.Generic.List<AnthropicClient.Models.TextContent>?)
|
||||
fullName.vb: AnthropicClient.Models.StreamMessageRequest.New(String, System.Collections.Generic.List(Of AnthropicClient.Models.Message), Integer, String, System.Collections.Generic.Dictionary(Of String, Object), Decimal, Integer?, Decimal?, AnthropicClient.Models.ToolChoice, System.Collections.Generic.List(Of AnthropicClient.Models.Tool), System.Collections.Generic.List(Of String), System.Collections.Generic.List(Of AnthropicClient.Models.TextContent))
|
||||
nameWithType: StreamMessageRequest.StreamMessageRequest(string, List<Message>, int, string?, Dictionary<string, object>?, decimal, int?, decimal?, ToolChoice?, List<Tool>?, List<string>?, List<TextContent>?)
|
||||
nameWithType.vb: StreamMessageRequest.New(String, List(Of Message), Integer, String, Dictionary(Of String, Object), Decimal, Integer?, Decimal?, ToolChoice, List(Of Tool), List(Of String), List(Of TextContent))
|
||||
- uid: AnthropicClient.Models.StreamMessageRequest.#ctor*
|
||||
name: StreamMessageRequest
|
||||
href: api/AnthropicClient.Models.StreamMessageRequest.html#AnthropicClient_Models_StreamMessageRequest__ctor_
|
||||
@@ -2317,6 +2449,15 @@ references:
|
||||
fullName.vb: AnthropicClient.Models.TextContent.New(String)
|
||||
nameWithType: TextContent.TextContent(string)
|
||||
nameWithType.vb: TextContent.New(String)
|
||||
- uid: AnthropicClient.Models.TextContent.#ctor(System.String,AnthropicClient.Models.CacheControl)
|
||||
name: TextContent(string, CacheControl)
|
||||
href: api/AnthropicClient.Models.TextContent.html#AnthropicClient_Models_TextContent__ctor_System_String_AnthropicClient_Models_CacheControl_
|
||||
commentId: M:AnthropicClient.Models.TextContent.#ctor(System.String,AnthropicClient.Models.CacheControl)
|
||||
name.vb: New(String, CacheControl)
|
||||
fullName: AnthropicClient.Models.TextContent.TextContent(string, AnthropicClient.Models.CacheControl)
|
||||
fullName.vb: AnthropicClient.Models.TextContent.New(String, AnthropicClient.Models.CacheControl)
|
||||
nameWithType: TextContent.TextContent(string, CacheControl)
|
||||
nameWithType.vb: TextContent.New(String, CacheControl)
|
||||
- uid: AnthropicClient.Models.TextContent.#ctor*
|
||||
name: TextContent
|
||||
href: api/AnthropicClient.Models.TextContent.html#AnthropicClient_Models_TextContent__ctor_
|
||||
@@ -2384,6 +2525,19 @@ references:
|
||||
commentId: T:AnthropicClient.Models.Tool
|
||||
fullName: AnthropicClient.Models.Tool
|
||||
nameWithType: Tool
|
||||
- uid: AnthropicClient.Models.Tool.CacheControl
|
||||
name: CacheControl
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CacheControl
|
||||
commentId: P:AnthropicClient.Models.Tool.CacheControl
|
||||
fullName: AnthropicClient.Models.Tool.CacheControl
|
||||
nameWithType: Tool.CacheControl
|
||||
- uid: AnthropicClient.Models.Tool.CacheControl*
|
||||
name: CacheControl
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CacheControl_
|
||||
commentId: Overload:AnthropicClient.Models.Tool.CacheControl
|
||||
isSpec: "True"
|
||||
fullName: AnthropicClient.Models.Tool.CacheControl
|
||||
nameWithType: Tool.CacheControl
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromClass*
|
||||
name: CreateFromClass
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromClass_
|
||||
@@ -2391,15 +2545,15 @@ references:
|
||||
isSpec: "True"
|
||||
fullName: AnthropicClient.Models.Tool.CreateFromClass
|
||||
nameWithType: Tool.CreateFromClass
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromClass``1
|
||||
name: CreateFromClass<T>()
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromClass__1
|
||||
commentId: M:AnthropicClient.Models.Tool.CreateFromClass``1
|
||||
name.vb: CreateFromClass(Of T)()
|
||||
fullName: AnthropicClient.Models.Tool.CreateFromClass<T>()
|
||||
fullName.vb: AnthropicClient.Models.Tool.CreateFromClass(Of T)()
|
||||
nameWithType: Tool.CreateFromClass<T>()
|
||||
nameWithType.vb: Tool.CreateFromClass(Of T)()
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromClass``1(AnthropicClient.Models.CacheControl)
|
||||
name: CreateFromClass<T>(CacheControl?)
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromClass__1_AnthropicClient_Models_CacheControl_
|
||||
commentId: M:AnthropicClient.Models.Tool.CreateFromClass``1(AnthropicClient.Models.CacheControl)
|
||||
name.vb: CreateFromClass(Of T)(CacheControl)
|
||||
fullName: AnthropicClient.Models.Tool.CreateFromClass<T>(AnthropicClient.Models.CacheControl?)
|
||||
fullName.vb: AnthropicClient.Models.Tool.CreateFromClass(Of T)(AnthropicClient.Models.CacheControl)
|
||||
nameWithType: Tool.CreateFromClass<T>(CacheControl?)
|
||||
nameWithType.vb: Tool.CreateFromClass(Of T)(CacheControl)
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromFunction*
|
||||
name: CreateFromFunction
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromFunction_
|
||||
@@ -2407,42 +2561,42 @@ references:
|
||||
isSpec: "True"
|
||||
fullName: AnthropicClient.Models.Tool.CreateFromFunction
|
||||
nameWithType: Tool.CreateFromFunction
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromFunction``1(System.String,System.String,System.Func{``0})
|
||||
name: CreateFromFunction<TResult>(string, string, Func<TResult>)
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromFunction__1_System_String_System_String_System_Func___0__
|
||||
commentId: M:AnthropicClient.Models.Tool.CreateFromFunction``1(System.String,System.String,System.Func{``0})
|
||||
name.vb: CreateFromFunction(Of TResult)(String, String, Func(Of TResult))
|
||||
fullName: AnthropicClient.Models.Tool.CreateFromFunction<TResult>(string, string, System.Func<TResult>)
|
||||
fullName.vb: AnthropicClient.Models.Tool.CreateFromFunction(Of TResult)(String, String, System.Func(Of TResult))
|
||||
nameWithType: Tool.CreateFromFunction<TResult>(string, string, Func<TResult>)
|
||||
nameWithType.vb: Tool.CreateFromFunction(Of TResult)(String, String, Func(Of TResult))
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromFunction``2(System.String,System.String,System.Func{``0,``1})
|
||||
name: CreateFromFunction<T1, TResult>(string, string, Func<T1, TResult>)
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromFunction__2_System_String_System_String_System_Func___0___1__
|
||||
commentId: M:AnthropicClient.Models.Tool.CreateFromFunction``2(System.String,System.String,System.Func{``0,``1})
|
||||
name.vb: CreateFromFunction(Of T1, TResult)(String, String, Func(Of T1, TResult))
|
||||
fullName: AnthropicClient.Models.Tool.CreateFromFunction<T1, TResult>(string, string, System.Func<T1, TResult>)
|
||||
fullName.vb: AnthropicClient.Models.Tool.CreateFromFunction(Of T1, TResult)(String, String, System.Func(Of T1, TResult))
|
||||
nameWithType: Tool.CreateFromFunction<T1, TResult>(string, string, Func<T1, TResult>)
|
||||
nameWithType.vb: Tool.CreateFromFunction(Of T1, TResult)(String, String, Func(Of T1, TResult))
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromFunction``3(System.String,System.String,System.Func{``0,``1,``2})
|
||||
name: CreateFromFunction<T1, T2, TResult>(string, string, Func<T1, T2, TResult>)
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromFunction__3_System_String_System_String_System_Func___0___1___2__
|
||||
commentId: M:AnthropicClient.Models.Tool.CreateFromFunction``3(System.String,System.String,System.Func{``0,``1,``2})
|
||||
name.vb: CreateFromFunction(Of T1, T2, TResult)(String, String, Func(Of T1, T2, TResult))
|
||||
fullName: AnthropicClient.Models.Tool.CreateFromFunction<T1, T2, TResult>(string, string, System.Func<T1, T2, TResult>)
|
||||
fullName.vb: AnthropicClient.Models.Tool.CreateFromFunction(Of T1, T2, TResult)(String, String, System.Func(Of T1, T2, TResult))
|
||||
nameWithType: Tool.CreateFromFunction<T1, T2, TResult>(string, string, Func<T1, T2, TResult>)
|
||||
nameWithType.vb: Tool.CreateFromFunction(Of T1, T2, TResult)(String, String, Func(Of T1, T2, TResult))
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromInstanceMethod(System.String,System.String,System.Object,System.String)
|
||||
name: CreateFromInstanceMethod(string, string, object, string)
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromInstanceMethod_System_String_System_String_System_Object_System_String_
|
||||
commentId: M:AnthropicClient.Models.Tool.CreateFromInstanceMethod(System.String,System.String,System.Object,System.String)
|
||||
name.vb: CreateFromInstanceMethod(String, String, Object, String)
|
||||
fullName: AnthropicClient.Models.Tool.CreateFromInstanceMethod(string, string, object, string)
|
||||
fullName.vb: AnthropicClient.Models.Tool.CreateFromInstanceMethod(String, String, Object, String)
|
||||
nameWithType: Tool.CreateFromInstanceMethod(string, string, object, string)
|
||||
nameWithType.vb: Tool.CreateFromInstanceMethod(String, String, Object, String)
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromFunction``1(System.String,System.String,System.Func{``0},AnthropicClient.Models.CacheControl)
|
||||
name: CreateFromFunction<TResult>(string, string, Func<TResult>, CacheControl?)
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromFunction__1_System_String_System_String_System_Func___0__AnthropicClient_Models_CacheControl_
|
||||
commentId: M:AnthropicClient.Models.Tool.CreateFromFunction``1(System.String,System.String,System.Func{``0},AnthropicClient.Models.CacheControl)
|
||||
name.vb: CreateFromFunction(Of TResult)(String, String, Func(Of TResult), CacheControl)
|
||||
fullName: AnthropicClient.Models.Tool.CreateFromFunction<TResult>(string, string, System.Func<TResult>, AnthropicClient.Models.CacheControl?)
|
||||
fullName.vb: AnthropicClient.Models.Tool.CreateFromFunction(Of TResult)(String, String, System.Func(Of TResult), AnthropicClient.Models.CacheControl)
|
||||
nameWithType: Tool.CreateFromFunction<TResult>(string, string, Func<TResult>, CacheControl?)
|
||||
nameWithType.vb: Tool.CreateFromFunction(Of TResult)(String, String, Func(Of TResult), CacheControl)
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromFunction``2(System.String,System.String,System.Func{``0,``1},AnthropicClient.Models.CacheControl)
|
||||
name: CreateFromFunction<T1, TResult>(string, string, Func<T1, TResult>, CacheControl?)
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromFunction__2_System_String_System_String_System_Func___0___1__AnthropicClient_Models_CacheControl_
|
||||
commentId: M:AnthropicClient.Models.Tool.CreateFromFunction``2(System.String,System.String,System.Func{``0,``1},AnthropicClient.Models.CacheControl)
|
||||
name.vb: CreateFromFunction(Of T1, TResult)(String, String, Func(Of T1, TResult), CacheControl)
|
||||
fullName: AnthropicClient.Models.Tool.CreateFromFunction<T1, TResult>(string, string, System.Func<T1, TResult>, AnthropicClient.Models.CacheControl?)
|
||||
fullName.vb: AnthropicClient.Models.Tool.CreateFromFunction(Of T1, TResult)(String, String, System.Func(Of T1, TResult), AnthropicClient.Models.CacheControl)
|
||||
nameWithType: Tool.CreateFromFunction<T1, TResult>(string, string, Func<T1, TResult>, CacheControl?)
|
||||
nameWithType.vb: Tool.CreateFromFunction(Of T1, TResult)(String, String, Func(Of T1, TResult), CacheControl)
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromFunction``3(System.String,System.String,System.Func{``0,``1,``2},AnthropicClient.Models.CacheControl)
|
||||
name: CreateFromFunction<T1, T2, TResult>(string, string, Func<T1, T2, TResult>, CacheControl?)
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromFunction__3_System_String_System_String_System_Func___0___1___2__AnthropicClient_Models_CacheControl_
|
||||
commentId: M:AnthropicClient.Models.Tool.CreateFromFunction``3(System.String,System.String,System.Func{``0,``1,``2},AnthropicClient.Models.CacheControl)
|
||||
name.vb: CreateFromFunction(Of T1, T2, TResult)(String, String, Func(Of T1, T2, TResult), CacheControl)
|
||||
fullName: AnthropicClient.Models.Tool.CreateFromFunction<T1, T2, TResult>(string, string, System.Func<T1, T2, TResult>, AnthropicClient.Models.CacheControl?)
|
||||
fullName.vb: AnthropicClient.Models.Tool.CreateFromFunction(Of T1, T2, TResult)(String, String, System.Func(Of T1, T2, TResult), AnthropicClient.Models.CacheControl)
|
||||
nameWithType: Tool.CreateFromFunction<T1, T2, TResult>(string, string, Func<T1, T2, TResult>, CacheControl?)
|
||||
nameWithType.vb: Tool.CreateFromFunction(Of T1, T2, TResult)(String, String, Func(Of T1, T2, TResult), CacheControl)
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromInstanceMethod(System.String,System.String,System.Object,System.String,AnthropicClient.Models.CacheControl)
|
||||
name: CreateFromInstanceMethod(string, string, object, string, CacheControl?)
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromInstanceMethod_System_String_System_String_System_Object_System_String_AnthropicClient_Models_CacheControl_
|
||||
commentId: M:AnthropicClient.Models.Tool.CreateFromInstanceMethod(System.String,System.String,System.Object,System.String,AnthropicClient.Models.CacheControl)
|
||||
name.vb: CreateFromInstanceMethod(String, String, Object, String, CacheControl)
|
||||
fullName: AnthropicClient.Models.Tool.CreateFromInstanceMethod(string, string, object, string, AnthropicClient.Models.CacheControl?)
|
||||
fullName.vb: AnthropicClient.Models.Tool.CreateFromInstanceMethod(String, String, Object, String, AnthropicClient.Models.CacheControl)
|
||||
nameWithType: Tool.CreateFromInstanceMethod(string, string, object, string, CacheControl?)
|
||||
nameWithType.vb: Tool.CreateFromInstanceMethod(String, String, Object, String, CacheControl)
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromInstanceMethod*
|
||||
name: CreateFromInstanceMethod
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromInstanceMethod_
|
||||
@@ -2450,15 +2604,15 @@ references:
|
||||
isSpec: "True"
|
||||
fullName: AnthropicClient.Models.Tool.CreateFromInstanceMethod
|
||||
nameWithType: Tool.CreateFromInstanceMethod
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromStaticMethod(System.String,System.String,System.Type,System.String)
|
||||
name: CreateFromStaticMethod(string, string, Type, string)
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromStaticMethod_System_String_System_String_System_Type_System_String_
|
||||
commentId: M:AnthropicClient.Models.Tool.CreateFromStaticMethod(System.String,System.String,System.Type,System.String)
|
||||
name.vb: CreateFromStaticMethod(String, String, Type, String)
|
||||
fullName: AnthropicClient.Models.Tool.CreateFromStaticMethod(string, string, System.Type, string)
|
||||
fullName.vb: AnthropicClient.Models.Tool.CreateFromStaticMethod(String, String, System.Type, String)
|
||||
nameWithType: Tool.CreateFromStaticMethod(string, string, Type, string)
|
||||
nameWithType.vb: Tool.CreateFromStaticMethod(String, String, Type, String)
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromStaticMethod(System.String,System.String,System.Type,System.String,AnthropicClient.Models.CacheControl)
|
||||
name: CreateFromStaticMethod(string, string, Type, string, CacheControl?)
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromStaticMethod_System_String_System_String_System_Type_System_String_AnthropicClient_Models_CacheControl_
|
||||
commentId: M:AnthropicClient.Models.Tool.CreateFromStaticMethod(System.String,System.String,System.Type,System.String,AnthropicClient.Models.CacheControl)
|
||||
name.vb: CreateFromStaticMethod(String, String, Type, String, CacheControl)
|
||||
fullName: AnthropicClient.Models.Tool.CreateFromStaticMethod(string, string, System.Type, string, AnthropicClient.Models.CacheControl?)
|
||||
fullName.vb: AnthropicClient.Models.Tool.CreateFromStaticMethod(String, String, System.Type, String, AnthropicClient.Models.CacheControl)
|
||||
nameWithType: Tool.CreateFromStaticMethod(string, string, Type, string, CacheControl?)
|
||||
nameWithType.vb: Tool.CreateFromStaticMethod(String, String, Type, String, CacheControl)
|
||||
- uid: AnthropicClient.Models.Tool.CreateFromStaticMethod*
|
||||
name: CreateFromStaticMethod
|
||||
href: api/AnthropicClient.Models.Tool.html#AnthropicClient_Models_Tool_CreateFromStaticMethod_
|
||||
@@ -2812,6 +2966,15 @@ references:
|
||||
fullName.vb: AnthropicClient.Models.ToolResultContent.New(String, String)
|
||||
nameWithType: ToolResultContent.ToolResultContent(string, string)
|
||||
nameWithType.vb: ToolResultContent.New(String, String)
|
||||
- uid: AnthropicClient.Models.ToolResultContent.#ctor(System.String,System.String,AnthropicClient.Models.CacheControl)
|
||||
name: ToolResultContent(string, string, CacheControl)
|
||||
href: api/AnthropicClient.Models.ToolResultContent.html#AnthropicClient_Models_ToolResultContent__ctor_System_String_System_String_AnthropicClient_Models_CacheControl_
|
||||
commentId: M:AnthropicClient.Models.ToolResultContent.#ctor(System.String,System.String,AnthropicClient.Models.CacheControl)
|
||||
name.vb: New(String, String, CacheControl)
|
||||
fullName: AnthropicClient.Models.ToolResultContent.ToolResultContent(string, string, AnthropicClient.Models.CacheControl)
|
||||
fullName.vb: AnthropicClient.Models.ToolResultContent.New(String, String, AnthropicClient.Models.CacheControl)
|
||||
nameWithType: ToolResultContent.ToolResultContent(string, string, CacheControl)
|
||||
nameWithType.vb: ToolResultContent.New(String, String, CacheControl)
|
||||
- uid: AnthropicClient.Models.ToolResultContent.#ctor*
|
||||
name: ToolResultContent
|
||||
href: api/AnthropicClient.Models.ToolResultContent.html#AnthropicClient_Models_ToolResultContent__ctor_
|
||||
@@ -2918,6 +3081,32 @@ references:
|
||||
commentId: T:AnthropicClient.Models.Usage
|
||||
fullName: AnthropicClient.Models.Usage
|
||||
nameWithType: Usage
|
||||
- uid: AnthropicClient.Models.Usage.CacheCreationInputTokens
|
||||
name: CacheCreationInputTokens
|
||||
href: api/AnthropicClient.Models.Usage.html#AnthropicClient_Models_Usage_CacheCreationInputTokens
|
||||
commentId: P:AnthropicClient.Models.Usage.CacheCreationInputTokens
|
||||
fullName: AnthropicClient.Models.Usage.CacheCreationInputTokens
|
||||
nameWithType: Usage.CacheCreationInputTokens
|
||||
- uid: AnthropicClient.Models.Usage.CacheCreationInputTokens*
|
||||
name: CacheCreationInputTokens
|
||||
href: api/AnthropicClient.Models.Usage.html#AnthropicClient_Models_Usage_CacheCreationInputTokens_
|
||||
commentId: Overload:AnthropicClient.Models.Usage.CacheCreationInputTokens
|
||||
isSpec: "True"
|
||||
fullName: AnthropicClient.Models.Usage.CacheCreationInputTokens
|
||||
nameWithType: Usage.CacheCreationInputTokens
|
||||
- uid: AnthropicClient.Models.Usage.CacheReadInputTokens
|
||||
name: CacheReadInputTokens
|
||||
href: api/AnthropicClient.Models.Usage.html#AnthropicClient_Models_Usage_CacheReadInputTokens
|
||||
commentId: P:AnthropicClient.Models.Usage.CacheReadInputTokens
|
||||
fullName: AnthropicClient.Models.Usage.CacheReadInputTokens
|
||||
nameWithType: Usage.CacheReadInputTokens
|
||||
- uid: AnthropicClient.Models.Usage.CacheReadInputTokens*
|
||||
name: CacheReadInputTokens
|
||||
href: api/AnthropicClient.Models.Usage.html#AnthropicClient_Models_Usage_CacheReadInputTokens_
|
||||
commentId: Overload:AnthropicClient.Models.Usage.CacheReadInputTokens
|
||||
isSpec: "True"
|
||||
fullName: AnthropicClient.Models.Usage.CacheReadInputTokens
|
||||
nameWithType: Usage.CacheReadInputTokens
|
||||
- uid: AnthropicClient.Models.Usage.InputTokens
|
||||
name: InputTokens
|
||||
href: api/AnthropicClient.Models.Usage.html#AnthropicClient_Models_Usage_InputTokens
|
||||
|
||||
Reference in new issue
Block a user