Documentation

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

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
int

getCreatedAt()

Generated from protobuf field <code>string createdAt = 7;</code>

public getCreatedAt() : string
Return values
string

getIsLastChunk()

Generated from protobuf field <code>bool is_last_chunk = 3;</code>

public getIsLastChunk() : bool
Return values
bool

getPromptTokens()

Generated from protobuf field <code>uint32 prompt_tokens = 4;</code>

public getPromptTokens() : int
Return values
int

getTotalTokens()

Generated from protobuf field <code>uint32 total_tokens = 6;</code>

public getTotalTokens() : int
Return values
int

setCompletionTokens()

Generated from protobuf field <code>uint32 completion_tokens = 5;</code>

public setCompletionTokens(int $var) : $this
Parameters
$var : int
Return values
$this

setCreatedAt()

Generated from protobuf field <code>string createdAt = 7;</code>

public setCreatedAt(string $var) : $this
Parameters
$var : string
Return values
$this

setId()

Generated from protobuf field <code>string id = 1;</code>

public setId(string $var) : $this
Parameters
$var : string
Return values
$this

setIsLastChunk()

Generated from protobuf field <code>bool is_last_chunk = 3;</code>

public setIsLastChunk(bool $var) : $this
Parameters
$var : bool
Return values
$this

setPromptTokens()

Generated from protobuf field <code>uint32 prompt_tokens = 4;</code>

public setPromptTokens(int $var) : $this
Parameters
$var : int
Return values
$this

setText()

Generated from protobuf field <code>string text = 2;</code>

public setText(string $var) : $this
Parameters
$var : string
Return values
$this

setTotalTokens()

Generated from protobuf field <code>uint32 total_tokens = 6;</code>

public setTotalTokens(int $var) : $this
Parameters
$var : int
Return values
$this

        
On this page

Search results