ChatResponseUpdate.fromText constructor

ChatResponseUpdate.fromText(
  1. ChatRole? role,
  2. String text
)

Creates a ChatResponseUpdate with text content.

Implementation

ChatResponseUpdate.fromText(this.role, String text)
    : contents = [TextContent(text)],
      authorName = null,
      rawRepresentation = null,
      additionalProperties = null,
      responseId = null,
      messageId = null,
      conversationId = null,
      createdAt = null,
      finishReason = null,
      modelId = null,
      continuationToken = null,
      usage = null;