Class Conversation
Assembly: Glitch9.AIDevKit.dll
Syntax
public class Conversation : IData, IHasId<string>, IHasName, IDeletionStatus
Properties
|
Edit this page
View Source
AgentId
Required.
Locally used to indicate which agent this conversation belongs to.
Declaration
public string AgentId { get; set; }
Property Value
|
Edit this page
View Source
AgentName
Optional. The name of the agent handling the conversation.
Declaration
public string AgentName { get; set; }
Property Value
|
Edit this page
View Source
CreatedAt
Required. The time at which the conversation was created,
measured in seconds since the Unix epoch.
Declaration
[JsonProperty("created_at")]
public UnixTime CreatedAt { get; set; }
Property Value
|
Edit this page
View Source
Id
Required. The unique ID of the conversation.
Declaration
[JsonProperty("id")]
public string Id { get; set; }
Property Value
|
Edit this page
View Source
ItemCount
Declaration
public int ItemCount { get; set; }
Property Value
|
Edit this page
View Source
LastUserMessage
The last message sent by the user.
Declaration
public string LastUserMessage { get; set; }
Property Value
|
Edit this page
View Source
Optional. Set of 16 key-value pairs that can be attached to an object.
This can be useful for storing additional information about the object
in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters.
Values are strings with a maximum length of 512 characters.
Declaration
[JsonProperty("metadata")]
public ServerDictionary Metadata { get; set; }
Property Value
|
Edit this page
View Source
Name
Optional. The name (title) of the conversation.
Declaration
public string Name { get; set; }
Property Value
|
Edit this page
View Source
Object
Required. The object type, which is always conversation.
Declaration
[JsonProperty("object")]
public string Object { get; set; }
Property Value
|
Edit this page
View Source
StoreType
Required.
Locally used to indicate which store this conversation belongs to.
Declaration
public ConversationStoreType StoreType { get; set; }
Property Value
|
Edit this page
View Source
Summary
The current summary of the session.
Declaration
public ConversationSummary Summary { get; set; }
Property Value
|
Edit this page
View Source
TotalCostInUsd
Total cost of the session in USD.
This is calculated based on the total usage and the cost per token.
Declaration
public double TotalCostInUsd { get; set; }
Property Value
|
Edit this page
View Source
TotalUsage
Total usage statistics for the session.
This includes token usage, cost, and other metrics.
Declaration
public Usage TotalUsage { get; set; }
Property Value
|
Edit this page
View Source
UpdatedAt
Declaration
public UnixTime UpdatedAt { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
IsDeleted()
Declaration
Returns
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods