Documentation

RoomArtifactTokenUsage extends Message
in package

Generated from protobuf message <code>plugnmeet.RoomArtifactTokenUsage</code>

Table of Contents

Properties

$completion_tokens  : mixed
Generated from protobuf field <code>uint32 completion_tokens = 2;</code>
$completion_tokens_estimated_cost  : mixed
Generated from protobuf field <code>optional double completion_tokens_estimated_cost = 6;</code>
$prompt_tokens  : mixed
Generated from protobuf field <code>uint32 prompt_tokens = 1;</code>
$prompt_tokens_estimated_cost  : mixed
Generated from protobuf field <code>optional double prompt_tokens_estimated_cost = 5;</code>
$total_tokens  : mixed
Generated from protobuf field <code>uint32 total_tokens = 3;</code>
$total_tokens_estimated_cost  : mixed
Generated from protobuf field <code>optional double total_tokens_estimated_cost = 7;</code>
$breakdown  : mixed
Generated from protobuf field <code>map<string, int64> breakdown = 4;</code>

Methods

__construct()  : mixed
Constructor.
clearCompletionTokensEstimatedCost()  : mixed
clearPromptTokensEstimatedCost()  : mixed
clearTotalTokensEstimatedCost()  : mixed
getBreakdown()  : MapField
Generated from protobuf field <code>map<string, int64> breakdown = 4;</code>
getCompletionTokens()  : int
Generated from protobuf field <code>uint32 completion_tokens = 2;</code>
getCompletionTokensEstimatedCost()  : float
Generated from protobuf field <code>optional double completion_tokens_estimated_cost = 6;</code>
getPromptTokens()  : int
Generated from protobuf field <code>uint32 prompt_tokens = 1;</code>
getPromptTokensEstimatedCost()  : float
Generated from protobuf field <code>optional double prompt_tokens_estimated_cost = 5;</code>
getTotalTokens()  : int
Generated from protobuf field <code>uint32 total_tokens = 3;</code>
getTotalTokensEstimatedCost()  : float
Generated from protobuf field <code>optional double total_tokens_estimated_cost = 7;</code>
hasCompletionTokensEstimatedCost()  : mixed
hasPromptTokensEstimatedCost()  : mixed
hasTotalTokensEstimatedCost()  : mixed
setBreakdown()  : $this
Generated from protobuf field <code>map<string, int64> breakdown = 4;</code>
setCompletionTokens()  : $this
Generated from protobuf field <code>uint32 completion_tokens = 2;</code>
setCompletionTokensEstimatedCost()  : $this
Generated from protobuf field <code>optional double completion_tokens_estimated_cost = 6;</code>
setPromptTokens()  : $this
Generated from protobuf field <code>uint32 prompt_tokens = 1;</code>
setPromptTokensEstimatedCost()  : $this
Generated from protobuf field <code>optional double prompt_tokens_estimated_cost = 5;</code>
setTotalTokens()  : $this
Generated from protobuf field <code>uint32 total_tokens = 3;</code>
setTotalTokensEstimatedCost()  : $this
Generated from protobuf field <code>optional double total_tokens_estimated_cost = 7;</code>

Properties

$completion_tokens

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

protected mixed $completion_tokens = 0

$completion_tokens_estimated_cost

Generated from protobuf field <code>optional double completion_tokens_estimated_cost = 6;</code>

protected mixed $completion_tokens_estimated_cost = null

$prompt_tokens

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

protected mixed $prompt_tokens = 0

$prompt_tokens_estimated_cost

Generated from protobuf field <code>optional double prompt_tokens_estimated_cost = 5;</code>

protected mixed $prompt_tokens_estimated_cost = null

$total_tokens

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

protected mixed $total_tokens = 0

$total_tokens_estimated_cost

Generated from protobuf field <code>optional double total_tokens_estimated_cost = 7;</code>

protected mixed $total_tokens_estimated_cost = null

$breakdown

Generated from protobuf field <code>map<string, int64> breakdown = 4;</code>

private mixed $breakdown

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 int $prompt_tokens
@type int $completion_tokens
@type int $total_tokens
@type array|\Google\Protobuf\Internal\MapField $breakdown
@type float $prompt_tokens_estimated_cost
@type float $completion_tokens_estimated_cost
@type float $total_tokens_estimated_cost

}

getBreakdown()

Generated from protobuf field <code>map<string, int64> breakdown = 4;</code>

public getBreakdown() : MapField
Return values
MapField

getCompletionTokens()

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

public getCompletionTokens() : int
Return values
int

getCompletionTokensEstimatedCost()

Generated from protobuf field <code>optional double completion_tokens_estimated_cost = 6;</code>

public getCompletionTokensEstimatedCost() : float
Return values
float

getPromptTokens()

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

public getPromptTokens() : int
Return values
int

getPromptTokensEstimatedCost()

Generated from protobuf field <code>optional double prompt_tokens_estimated_cost = 5;</code>

public getPromptTokensEstimatedCost() : float
Return values
float

getTotalTokens()

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

public getTotalTokens() : int
Return values
int

getTotalTokensEstimatedCost()

Generated from protobuf field <code>optional double total_tokens_estimated_cost = 7;</code>

public getTotalTokensEstimatedCost() : float
Return values
float

setBreakdown()

Generated from protobuf field <code>map<string, int64> breakdown = 4;</code>

public setBreakdown(array<string|int, mixed>|MapField $var) : $this
Parameters
$var : array<string|int, mixed>|MapField
Return values
$this

setCompletionTokens()

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

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

setCompletionTokensEstimatedCost()

Generated from protobuf field <code>optional double completion_tokens_estimated_cost = 6;</code>

public setCompletionTokensEstimatedCost(float $var) : $this
Parameters
$var : float
Return values
$this

setPromptTokens()

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

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

setPromptTokensEstimatedCost()

Generated from protobuf field <code>optional double prompt_tokens_estimated_cost = 5;</code>

public setPromptTokensEstimatedCost(float $var) : $this
Parameters
$var : float
Return values
$this

setTotalTokens()

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

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

setTotalTokensEstimatedCost()

Generated from protobuf field <code>optional double total_tokens_estimated_cost = 7;</code>

public setTotalTokensEstimatedCost(float $var) : $this
Parameters
$var : float
Return values
$this

        
On this page

Search results