Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Build LLM-powered apps with the Anthropic Claude API or SDK across Python, TypeScript, Java, Go, Ruby, C#, and PHP.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
csharp/claude-api/batches.md
1# Message Batches — C#23## Message Batches API45```csharp6var batch = await client.Messages.Batches.Create(new() {7Requests = [8new() { CustomID = "req-1", Params = new() { Model = "claude-opus-4-8", MaxTokens = 1024, Messages = [...] } },9],10});11// Poll client.Messages.Batches.Retrieve(batch.ID) until ProcessingStatus == "ended",12// then iterate client.Messages.Batches.Results(batch.ID).13```1415