Skip to content

[FR]: Adding title property for Schema static function constructors in FirebaseAI #14961

@SeanChinJunKai

Description

@SeanChinJunKai

Description

Currently, Schema has title property however it is unused since we can only instantiate it via static functions which do not take in the title as parameter

 /// A human-readable name/summary for the schema or a specific property. This helps document the
  /// schema's purpose but doesn't typically constrain the generated value. It can subtly guide the
  /// model by clarifying the intent of a field.
  public let title: String?

API Proposal

Add title parameter to all static functions except anyOf

Firebase Product(s)

Firebase AI

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions