Struct Usage
Represents token usage.
Implements
Inherited Members
Namespace: LaunchDarkly.Sdk.Server.Ai.Tracking
Assembly: LaunchDarkly.ServerSdk.Ai.dll
Syntax
public record struct Usage : IEquatable<Usage>
Constructors
| Edit this page View SourceUsage(int?, int?, int?)
Represents token usage.
Declaration
public Usage(int? Total, int? Input, int? Output)
Parameters
Type | Name | Description |
---|---|---|
int? | Total | the total tokens used |
int? | Input | the tokens sent as input |
int? | Output | the tokens received as output |
Properties
| Edit this page View SourceInput
the tokens sent as input
Declaration
public int? Input { readonly get; set; }
Property Value
Type | Description |
---|---|
int? |
Output
the tokens received as output
Declaration
public int? Output { readonly get; set; }
Property Value
Type | Description |
---|---|
int? |
Total
the total tokens used
Declaration
public int? Total { readonly get; set; }
Property Value
Type | Description |
---|---|
int? |