Firebase.AI.ModelContent.TextPart

A text part containing a string value.

Summary

Inheritance

Inherits from:Firebase.AI.ModelContent.Part

Constructors and Destructors

TextPart(string text)
Creates aTextPart with the given text.

Properties

IsThought
bool
Text
string
Text value.

Public functions

ToJson()
Dictionary< string, object > Part.

Properties

IsThought

boolFirebase::AI::ModelContent::TextPart::IsThought

Text

stringFirebase::AI::ModelContent::TextPart::Text

Text value.

Public functions

TextPart

Firebase::AI::ModelContent::TextPart::TextPart(stringtext)

Creates aTextPart with the given text.

Details
Parameters
text
The text value to use.

ToJson

Dictionary<string,object>Part.Firebase::AI::ModelContent::TextPart::ToJson()

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-09-04 UTC.