InsightsAITextChatStreamResult
extends Message
in package
Generated from protobuf message <code>plugnmeet.InsightsAITextChatStreamResult</code>
Table of Contents
Properties
- $completion_tokens : mixed
- Generated from protobuf field <code>uint32 completion_tokens = 5;</code>
- $createdAt : mixed
- Generated from protobuf field <code>string createdAt = 7;</code>
- $id : mixed
- Generated from protobuf field <code>string id = 1;</code>
- $is_last_chunk : mixed
- Generated from protobuf field <code>bool is_last_chunk = 3;</code>
- $prompt_tokens : mixed
- Generated from protobuf field <code>uint32 prompt_tokens = 4;</code>
- $text : mixed
- Generated from protobuf field <code>string text = 2;</code>
- $total_tokens : mixed
- Generated from protobuf field <code>uint32 total_tokens = 6;</code>
Methods
- __construct() : mixed
- Constructor.
- getCompletionTokens() : int
- Generated from protobuf field <code>uint32 completion_tokens = 5;</code>
- getCreatedAt() : string
- Generated from protobuf field <code>string createdAt = 7;</code>
- getId() : string
- Generated from protobuf field <code>string id = 1;</code>
- getIsLastChunk() : bool
- Generated from protobuf field <code>bool is_last_chunk = 3;</code>
- getPromptTokens() : int
- Generated from protobuf field <code>uint32 prompt_tokens = 4;</code>
- getText() : string
- Generated from protobuf field <code>string text = 2;</code>
- getTotalTokens() : int
- Generated from protobuf field <code>uint32 total_tokens = 6;</code>
- setCompletionTokens() : $this
- Generated from protobuf field <code>uint32 completion_tokens = 5;</code>
- setCreatedAt() : $this
- Generated from protobuf field <code>string createdAt = 7;</code>
- setId() : $this
- Generated from protobuf field <code>string id = 1;</code>
- setIsLastChunk() : $this
- Generated from protobuf field <code>bool is_last_chunk = 3;</code>
- setPromptTokens() : $this
- Generated from protobuf field <code>uint32 prompt_tokens = 4;</code>
- setText() : $this
- Generated from protobuf field <code>string text = 2;</code>
- setTotalTokens() : $this
- Generated from protobuf field <code>uint32 total_tokens = 6;</code>
Properties
$completion_tokens
Generated from protobuf field <code>uint32 completion_tokens = 5;</code>
protected
mixed
$completion_tokens
= 0
$createdAt
Generated from protobuf field <code>string createdAt = 7;</code>
protected
mixed
$createdAt
= ''
$id
Generated from protobuf field <code>string id = 1;</code>
protected
mixed
$id
= ''
$is_last_chunk
Generated from protobuf field <code>bool is_last_chunk = 3;</code>
protected
mixed
$is_last_chunk
= false
$prompt_tokens
Generated from protobuf field <code>uint32 prompt_tokens = 4;</code>
protected
mixed
$prompt_tokens
= 0
$text
Generated from protobuf field <code>string text = 2;</code>
protected
mixed
$text
= ''
$total_tokens
Generated from protobuf field <code>uint32 total_tokens = 6;</code>
protected
mixed
$total_tokens
= 0
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = null ]) : mixed
Parameters
- $data : array<string|int, mixed> = null
-
{ Optional. Data for populating the Message object.
@type string $id @type string $text @type bool $is_last_chunk @type int $prompt_tokens @type int $completion_tokens @type int $total_tokens @type string $createdAt}
getCompletionTokens()
Generated from protobuf field <code>uint32 completion_tokens = 5;</code>
public
getCompletionTokens() : int
Return values
intgetCreatedAt()
Generated from protobuf field <code>string createdAt = 7;</code>
public
getCreatedAt() : string
Return values
stringgetId()
Generated from protobuf field <code>string id = 1;</code>
public
getId() : string
Return values
stringgetIsLastChunk()
Generated from protobuf field <code>bool is_last_chunk = 3;</code>
public
getIsLastChunk() : bool
Return values
boolgetPromptTokens()
Generated from protobuf field <code>uint32 prompt_tokens = 4;</code>
public
getPromptTokens() : int
Return values
intgetText()
Generated from protobuf field <code>string text = 2;</code>
public
getText() : string
Return values
stringgetTotalTokens()
Generated from protobuf field <code>uint32 total_tokens = 6;</code>
public
getTotalTokens() : int
Return values
intsetCompletionTokens()
Generated from protobuf field <code>uint32 completion_tokens = 5;</code>
public
setCompletionTokens(int $var) : $this
Parameters
- $var : int
Return values
$thissetCreatedAt()
Generated from protobuf field <code>string createdAt = 7;</code>
public
setCreatedAt(string $var) : $this
Parameters
- $var : string
Return values
$thissetId()
Generated from protobuf field <code>string id = 1;</code>
public
setId(string $var) : $this
Parameters
- $var : string
Return values
$thissetIsLastChunk()
Generated from protobuf field <code>bool is_last_chunk = 3;</code>
public
setIsLastChunk(bool $var) : $this
Parameters
- $var : bool
Return values
$thissetPromptTokens()
Generated from protobuf field <code>uint32 prompt_tokens = 4;</code>
public
setPromptTokens(int $var) : $this
Parameters
- $var : int
Return values
$thissetText()
Generated from protobuf field <code>string text = 2;</code>
public
setText(string $var) : $this
Parameters
- $var : string
Return values
$thissetTotalTokens()
Generated from protobuf field <code>uint32 total_tokens = 6;</code>
public
setTotalTokens(int $var) : $this
Parameters
- $var : int