Skip to content

v0.1.0-preview.8

Pre-release
Pre-release

Choose a tag to compare

@eiriktsarpalis eiriktsarpalis released this 11 Apr 17:02
ce4e658

This release corrects the CreateMessageResult.Role type, exposes JsonSerializerOptions configuration across tool and prompt APIs, and adds comprehensive XML documentation comments across the SDK.

Breaking Changes

Refer to the C# SDK Versioning documentation for details on versioning and breaking change policies.

  1. Fix CreateMessageResult.Role type #264
    • CreateMessageResult.Role changed from string to Role enum type
    • Migration: Replace string values like "assistant" with Role.Assistant or "user" with Role.User
  2. Expose JsonSerializerOptions in prompts APIs #279
    • WithPrompts removed params modifier; added JsonSerializerOptions? serializerOptions parameter
    • Migration: Wrap multiple type arguments in a collection, e.g. WithPrompts([typeof(A), typeof(B)])
  3. Expose JsonSerializerOptions in tools APIs #266
    • WithTools removed params modifier; added JsonSerializerOptions? serializerOptions parameter
    • Migration: Wrap multiple type arguments in a collection, e.g. WithTools([typeof(A), typeof(B)])

What's Changed

Documentation Updates

  • Add XML documentation comments across the SDK #238 by @robch (co-authored by @stephentoub)
  • Augment McpServerTool/Prompt docs with details of parameter/result marshaling #271 by @stephentoub

Test Improvements

Repository Infrastructure Updates

Acknowledgements

Full Changelog: v0.1.0-preview.7...v0.1.0-preview.8