You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/tests/AutoSDK.SnapshotTests/Snapshots/CLI/anthropic/_#G.Commands.BetaMessageBatchesCancelCommand.g.verified.cs
description:@"Batches may be canceled any time before processing ends. Once cancellation is initiated, the batch enters a `canceling` state, at which time the system may complete any in-progress, non-interruptible requests before finalizing cancellation.
47
50
@@ -50,6 +53,7 @@ public BetaMessageBatchesCancelCommand(G.IApi client) : base(
50
53
Learn more about the Message Batches API in our [user guide](/en/docs/build-with-claude/batch-processing)")
Copy file name to clipboardExpand all lines: src/tests/AutoSDK.SnapshotTests/Snapshots/CLI/anthropic/_#G.Commands.BetaMessageBatchesDeleteCommand.g.verified.cs
@@ -50,7 +51,9 @@ Read more about versioning and our version history [here](https://docs.anthropic
50
51
51
52
This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the [Console](https://console.anthropic.com/settings/keys). Each key is scoped to a Workspace.",
Copy file name to clipboardExpand all lines: src/tests/AutoSDK.SnapshotTests/Snapshots/CLI/anthropic/_#G.Commands.BetaMessageBatchesListCommand.g.verified.cs
@@ -67,13 +68,16 @@ Read more about versioning and our version history [here](https://docs.anthropic
67
68
68
69
This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the [Console](https://console.anthropic.com/settings/keys). Each key is scoped to a Workspace.",
Copy file name to clipboardExpand all lines: src/tests/AutoSDK.SnapshotTests/Snapshots/CLI/anthropic/_#G.Commands.BetaMessageBatchesPostCommand.g.verified.cs
Copy file name to clipboardExpand all lines: src/tests/AutoSDK.SnapshotTests/Snapshots/CLI/anthropic/_#G.Commands.BetaMessageBatchesResultsCommand.g.verified.cs
@@ -50,7 +51,9 @@ Read more about versioning and our version history [here](https://docs.anthropic
50
51
51
52
This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the [Console](https://console.anthropic.com/settings/keys). Each key is scoped to a Workspace.",
Copy file name to clipboardExpand all lines: src/tests/AutoSDK.SnapshotTests/Snapshots/CLI/anthropic/_#G.Commands.BetaMessageBatchesRetrieveCommand.g.verified.cs
@@ -50,13 +51,16 @@ Read more about versioning and our version history [here](https://docs.anthropic
50
51
51
52
This key is required in the header of all API requests, to authenticate your account and access Anthropic's services. Get your API key through the [Console](https://console.anthropic.com/settings/keys). Each key is scoped to a Workspace.",
description:@"This endpoint is idempotent and can be used to poll for Message Batch completion. To access the results of a Message Batch, make a request to the `results_url` field in the response.
56
59
57
60
Learn more about the Message Batches API in our [user guide](/en/docs/build-with-claude/batch-processing)")
Copy file name to clipboardExpand all lines: src/tests/AutoSDK.SnapshotTests/Snapshots/CLI/anthropic/_#G.Commands.BetaMessagesCountTokensPostCommand.g.verified.cs
Our models are trained to operate on alternating `user` and `assistant` conversational turns. When creating a new `Message`, you specify the prior conversational turns with the `messages` parameter, and the model then generates the next `Message` in the conversation. Consecutive `user` or `assistant` turns in your request will be combined into a single turn.
35
+
36
+
Each input message must be an object with a `role` and `content`. You can specify a single `user`-role message, or you can include multiple `user` and `assistant` messages.
37
+
38
+
If the final message uses the `assistant` role, the response content will continue immediately from the content in that message. This can be used to constrain part of the model's response.
{""role"": ""assistant"", ""content"": ""Hi, I'm Claude. How can I help you?""},
52
+
{""role"": ""user"", ""content"": ""Can you explain LLMs in plain English?""},
53
+
]
54
+
```
55
+
56
+
Example with a partially-filled response from Claude:
57
+
58
+
```json
59
+
[
60
+
{""role"": ""user"", ""content"": ""What's the Greek name for Sun? (A) Sol (B) Helios (C) Sun""},
61
+
{""role"": ""assistant"", ""content"": ""The best answer is (""},
62
+
]
63
+
```
64
+
65
+
Each input message `content` may be either a single `string` or an array of content blocks, where each block has a specific `type`. Using a `string` for `content` is shorthand for an array of one content block of type `""text""`. The following input messages are equivalent:
Starting with Claude 3 models, you can also send image content blocks:
76
+
77
+
```json
78
+
{""role"": ""user"", ""content"": [
79
+
{
80
+
""type"": ""image"",
81
+
""source"": {
82
+
""type"": ""base64"",
83
+
""media_type"": ""image/jpeg"",
84
+
""data"": ""/9j/4AAQSkZJRg..."",
85
+
}
86
+
},
87
+
{""type"": ""text"", ""text"": ""What is in this image?""}
88
+
]}
89
+
```
90
+
91
+
We currently support the `base64` source type for images, and the `image/jpeg`, `image/png`, `image/gif`, and `image/webp` media types.
92
+
93
+
See [examples](https://docs.anthropic.com/en/api/messages-examples#vision) for more input examples.
94
+
95
+
Note that if you want to include a [system prompt](https://docs.anthropic.com/en/docs/system-prompts), you can use the top-level `system` parameter — there is no `""system""` role for input messages in the Messages API.",
Description=@"The model that will complete your prompt.\n\nSee [models](https://docs.anthropic.com/en/docs/models-overview) for additional details and options.",
Description=@"Definitions of tools that the model may use.
130
+
131
+
If you include `tools` in your API request, the model may return `tool_use` content blocks that represent the model's use of those tools. You can then run those tools using the tool input generated by the model and then optionally return results back to the model using `tool_result` content blocks.
132
+
133
+
Each tool definition includes:
134
+
135
+
* `name`: Name of the tool.
136
+
* `description`: Optional, but strongly-recommended description of the tool.
137
+
* `input_schema`: [JSON schema](https://json-schema.org/draft/2020-12) for the tool `input` shape that the model will produce in `tool_use` output content blocks.
138
+
139
+
For example, if you defined `tools` as:
140
+
141
+
```json
142
+
[
143
+
{
144
+
""name"": ""get_stock_price"",
145
+
""description"": ""Get the current stock price for a given ticker symbol."",
146
+
""input_schema"": {
147
+
""type"": ""object"",
148
+
""properties"": {
149
+
""ticker"": {
150
+
""type"": ""string"",
151
+
""description"": ""The stock ticker symbol, e.g. AAPL for Apple Inc.""
152
+
}
153
+
},
154
+
""required"": [""ticker""]
155
+
}
156
+
}
157
+
]
158
+
```
159
+
160
+
And then asked the model ""What's the S&P 500 at today?"", the model might produce `tool_use` content blocks in the response like this:
161
+
162
+
```json
163
+
[
164
+
{
165
+
""type"": ""tool_use"",
166
+
""id"": ""toolu_01D7FLrfh4GYq7yT1ULFeyMV"",
167
+
""name"": ""get_stock_price"",
168
+
""input"": { ""ticker"": ""^GSPC"" }
169
+
}
170
+
]
171
+
```
172
+
173
+
You might then run your `get_stock_price` tool with `{""ticker"": ""^GSPC""}` as an input, and return the following back to the model in a subsequent `user` message:
Tools can be used for workflows that include running client-side tools and functions, or more generally whenever you want the model to produce a particular JSON structure of output.
186
+
187
+
See our [guide](https://docs.anthropic.com/en/docs/tool-use) for more details.",
A system prompt is a way of providing context and instructions to Claude, such as specifying a particular goal or role. See our [guide to system prompts](https://docs.anthropic.com/en/docs/system-prompts).",
Description=@"Configuration for enabling Claude's extended thinking.
202
+
203
+
When enabled, responses include `thinking` content blocks showing Claude's thinking process before the final answer. Requires a minimum budget of 1,024 tokens and counts towards your `max_tokens` limit.
204
+
205
+
See [extended thinking](https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking) for details.",
0 commit comments