Skip to content

Conversation

@JPVenson
Copy link
Contributor

fixes #17

@JPVenson JPVenson requested a review from a team as a code owner November 19, 2025 23:03
packyg
packyg previously approved these changes Nov 19, 2025
Comment on lines 17 to 30
public AnthropicClient()
{
_options = new();

_messages = new(() => new MessageService(this));
_models = new(() => new ModelService(this));
_beta = new(() => new BetaService(this));
}

public AnthropicClient(ClientOptions options)
: this()
{
_options = options;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's not move this. It's going to cause merge conflicts with codegen whenever we change the constructors in codegen

Copy link
Collaborator

Choose a reason for hiding this comment

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

If you think we should be moving the constructors elsewhere in the ordering for style reasons then let me know and I'll move them in codegen

Copy link
Contributor Author

@JPVenson JPVenson Nov 19, 2025

Choose a reason for hiding this comment

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

yes constructors generally come after private and static members but before all other methods and properties. See AnthropicFoundryClient.cs:22

Copy link
Collaborator

Choose a reason for hiding this comment

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

Cool, I'll file a ticket to do that, thanks :)

@TomerAberbach TomerAberbach changed the base branch from main to next November 19, 2025 23:09
@TomerAberbach TomerAberbach changed the title Make WithOptions virtual and return correct type on foundry implement… fix(client): return correct type for foundry#WithOptions Nov 19, 2025
@TomerAberbach TomerAberbach merged commit f814a46 into anthropics:next Nov 19, 2025
3 checks passed
@stainless-app stainless-app bot mentioned this pull request Nov 20, 2025
stainless-app bot pushed a commit that referenced this pull request Nov 20, 2025
* Make WithOptions virtual and return correct type on foundry implementation

* code cleanup

* revert moving constructor

* fix indentation
JPVenson added a commit to JPVenson/anthropic-sdk-csharp that referenced this pull request Nov 20, 2025
* Make WithOptions virtual and return correct type on foundry implementation

* code cleanup

* revert moving constructor

* fix indentation
This was referenced Dec 1, 2025
@stainless-app stainless-app bot mentioned this pull request Dec 16, 2025
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.

Foundry Client Issue

3 participants