Skip to content

Default useNativeJsonSchema to true #6126

@stephentoub

Description

@stephentoub

Per #6064 (comment), flip useNativeJsonSchema to default to true.

In addition or alternatively, we should consider exposing a capabilities mechanism that IChatClients can implement. This could be:

  • Augmenting ChatClientMetadata with a capabilities enum or struct, where the client can make claims about supported features, like function calling, structured output, etc.
  • Adding a marker interface for the capability, such that it can be queried via GetService

useNativeJsonSchema could then default to false unless this flag is observed.

Metadata

Metadata

Labels

area-aiMicrosoft.Extensions.AI libraries

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions