AppFunctionTextResource


@AppFunctionSerializable(isDescribedByKdoc = true)
class AppFunctionTextResource


Represents a text resource in an app function's response/parameters.

Summary

Public constructors

AppFunctionTextResource(mimeType: String, content: String)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

String

The text content of the resource.

String

The MIME type of the text resource, used by the agent to understand the content.

Public constructors

AppFunctionTextResource

Added in 1.0.0-alpha06
AppFunctionTextResource(mimeType: String, content: String)
Parameters
mimeType: String

The MIME type of the text resource, used by the agent to understand the content.

content: String

The text content of the resource.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

content

Added in 1.0.0-alpha06
val contentString

The text content of the resource.

mimeType

Added in 1.0.0-alpha06
val mimeTypeString

The MIME type of the text resource, used by the agent to understand the content.