Closed HavenDV closed 2 months ago
The changes in this pull request involve modifying several classes and interfaces within the Anthropic API to allow for nullable types for specific parameters and properties. This includes updates to the ProcessCreateMessageResponseContent
method, the CreateMessage
method in the IAnthropicApi
interface, and properties in the CreateMessageRequest
and ToolResultBlock
classes. The modifications enhance the flexibility of method calls and object configurations by permitting the use of null values.
Files | Change Summary |
---|---|
src/libs/Anthropic/Generated/Anthropic.AnthropicApi.CreateMessage.g.cs src/libs/Anthropic/Generated/Anthropic.IAnthropicApi.CreateMessage.g.cs |
Changed parameters temperature , topK , topP , and stream from non-nullable to nullable types in method signatures. |
src/libs/Anthropic/Generated/Anthropic.Models.CreateMessageRequest.g.cs |
Changed properties Temperature , TopK , TopP , and Stream from non-nullable to nullable types. |
src/libs/Anthropic/Generated/Anthropic.Models.ToolResultBlock.g.cs |
Changed property IsError from non-nullable bool to nullable bool? . |
CreateMessage
method signature and the CreateMessageRequest
class, which are directly related to the changes made in the main PR regarding the nullable types of parameters and properties.🐇 In the land of code where rabbits play,
Nullable types have come to stay.
With flexibility in every call,
Our methods now can handle all!
Hopping through changes, we cheer and sing,
For in this code, new joys we bring! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
CreateMessage
functionality by allowing parameters such astemperature
,topK
,topP
, andstream
to accept null values.CreateMessageRequest
model to support nullable properties, enabling more versatile configurations.IsError
property in theToolResultBlock
class to represent additional states.These changes improve the usability and adaptability of the API for various use cases.