Class CohereChatEvent
Inheritance
CohereChatEvent
Assembly: Glitch9.AIDevKit.Provider.Cohere.dll
Syntax
public sealed class CohereChatEvent : IEventItem, ITypedEvent, ICompletableEvent, IEvent, IUsageProvider
Fields
|
Edit this page
View Source
CitationEnd
Declaration
public const string CitationEnd = "citation-end"
Field Value
|
Edit this page
View Source
CitationStart
Declaration
public const string CitationStart = "citation-start"
Field Value
|
Edit this page
View Source
ContentDelta
Declaration
public const string ContentDelta = "content-delta"
Field Value
|
Edit this page
View Source
ContentEnd
Declaration
public const string ContentEnd = "content-end"
Field Value
|
Edit this page
View Source
ContentStart
Declaration
public const string ContentStart = "content-start"
Field Value
|
Edit this page
View Source
Debug
Declaration
public const string Debug = "debug"
Field Value
|
Edit this page
View Source
MessageEnd
Declaration
public const string MessageEnd = "message-end"
Field Value
|
Edit this page
View Source
MessageStart
Declaration
public const string MessageStart = "message-start"
Field Value
|
Edit this page
View Source
Declaration
public const string ToolCallDelta = "tool-call-delta"
Field Value
|
Edit this page
View Source
Declaration
public const string ToolCallEnd = "tool-call-end"
Field Value
|
Edit this page
View Source
Declaration
public const string ToolCallStart = "tool-call-start"
Field Value
|
Edit this page
View Source
Declaration
public const string ToolPlanDelta = "tool-plan-delta"
Field Value
Properties
|
Edit this page
View Source
Delta
Optional. The delta payload depending on the event type.
Declaration
[JsonProperty("delta")]
public CohereMessageDelta Delta { get; set; }
Property Value
|
Edit this page
View Source
Id
Optional. Unique ID of the stream message.
Declaration
[JsonProperty("id")]
public string Id { get; set; }
Property Value
|
Edit this page
View Source
Type
Required. The type of stream event.
Declaration
[JsonProperty("type")]
public string Type { get; set; }
Property Value
Methods
|
Edit this page
View Source
GetEventItemKey()
Declaration
public EventItemKey GetEventItemKey()
Returns
|
Edit this page
View Source
GetEventType()
Declaration
public string GetEventType()
Returns
|
Edit this page
View Source
GetUsage()
Declaration
Returns
|
Edit this page
View Source
IsDone()
Optional.
Debug info for development.
Prompt used during debug stream.
Declaration
Returns
|
Edit this page
View Source
IsValid()
Declaration
Returns
Implements
Extension Methods