AppFunctionTextResource


@AppFunctionSerializable(isDescribedByKdoc = true)
public final class AppFunctionTextResource


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

Summary

Public constructors

Public methods

boolean
equals(Object other)
final @NonNull String

The text content of the resource.

final @NonNull String

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

int

Public constructors

AppFunctionTextResource

Added in 1.0.0-alpha06
public AppFunctionTextResource(@NonNull String mimeType, @NonNull String content)
Parameters
@NonNull String mimeType

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

@NonNull String content

The text content of the resource.

Public methods

equals

public boolean equals(Object other)

getContent

Added in 1.0.0-alpha06
public final @NonNull String getContent()

The text content of the resource.

getMimeType

Added in 1.0.0-alpha06
public final @NonNull String getMimeType()

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

hashCode

public int hashCode()