Skip to content

Conversation

@JPVenson
Copy link
Contributor

@JPVenson JPVenson commented Dec 2, 2025

Also add short description for nuget package

@JPVenson JPVenson requested a review from a team as a code owner December 2, 2025 15:58
@JPVenson JPVenson mentioned this pull request Dec 2, 2025

## Installation

`dotnet add package Anthropic.Foundry`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`dotnet add package Anthropic.Foundry`
```sh
dotnet add package Anthropic.Foundry
```

Comment on lines +5 to +9
## Contents

- Library source: src/Anthropic.Foundry
- Unit/integration tests: tests (if present)
- Samples and usage examples: examples (if present)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem useful and I would delete (I also don't understand the "if present" thing)

Comment on lines +66 to +67
.Where(message => message.Value is TextBlock)
.Select(message => message.Value as TextBlock)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious if it's possible to merge this by doing some sort of "select not null" type thing on the as TextBlock?

@@ -0,0 +1,46 @@
<Project>
<PropertyGroup>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not make all these the same property group?

<PackageReference Include="System.Text.Json" Version="10.0.0"/>
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="10.0.0"/>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
<None Include="..\logo.png" Pack="true" PackagePath="\" />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logo seems to be in Directory.Build.props already

Comment on lines +23 to 28
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Text.Json" Version="10.0.0" />
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="10.0.0" />
</ItemGroup>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can merge these item groups?

<PackageProjectUrl>https://github.com/anthropics/anthropic-sdk-csharp</PackageProjectUrl>
<RepositoryUrl>https://github.com/anthropics/anthropic-sdk-csharp</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<LangVersion>Latest</LangVersion>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete this in favor of <LangVersion>12</LangVersion> above


<AllowedOutputExtensionsInPackageBuildOutputFolder>
$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<SupportedFrameworks>net8.0;net9.0;netstandard2.0</SupportedFrameworks>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have both SupportedFrameworks and TargetFrameworks above. Why?

<Copyright>Copyright 2025 Anthropic</Copyright>
<PackageProjectUrl>https://docs.anthropic.com/claude/reference/</PackageProjectUrl>
<RepositoryUrl>https://www.github.com/anthropics/anthropic-sdk-csharp</RepositoryUrl>
<RepositoryType>git</RepositoryType>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have RepositoryType duplicated below. Can you please double-check that we have no duplication and no redundancies here?

@@ -1,11 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0;net9.0;netstandard2.0</TargetFrameworks>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is redundant with Directory.Build.props

Can you carefully check that there is no duplication between the csproj and the shared props?

Comment on lines +25 to +37
Anthropic Foundry SDK for .NET — A .NET client library for Anthropic Foundry, providing typed models, API bindings, and authentication helpers to integrate Anthropic services into .NET applications.
Examples:
- Quickstart:
1. Create a client (API key or Azure credential).
2. Call the client to request a completion or classification and handle the response.
- Streaming:
Use the streaming helpers to receive partial tokens as they are produced for responsive UIs.
- Authentication:
Support for environment API key (`ANTHROPIC_FOUNDRY_API_KEY` environment variable) and Azure Identity (DefaultAzureCredential).
- Samples:
See the repository's examples/ directory for complete examples (console app and streaming examples).
- Install:
`dotnet add package Anthropic.Foundry`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this support Markdown? How does the indentation work, does it need to be all the way to the left or is indentation under the <Description> tag fine?

@stainless-app stainless-app bot force-pushed the next branch 2 times, most recently from a6ccfa7 to 007b0c0 Compare December 18, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants