Class ClaudeMessageEvent
public class ClaudeMessageEvent : IChatCompletionEvent, ITextStreamEvent, IGeneratedOutput
- Inheritance
-
object
ClaudeMessageEvent
- Implements
-
ITextStreamEvent
- Extension Methods
-
Fields
SSE_EventField_Data
public const string SSE_EventField_Data = "content_block_delta"
Field Value
- string
SSE_EventField_Done
public const string SSE_EventField_Done = "message_delta"
Field Value
- string
SSE_EventField_Error
public const string SSE_EventField_Error = "error"
Field Value
- string
Properties
Count
public int Count { get; }
Property Value
- int
Delta
public ClaudeDelta Delta { get; set; }
Property Value
- ClaudeDelta
Index
public int Index { get; set; }
Property Value
- int
Type
public string Type { get; set; }
Property Value
- string
Usage
public ClaudeUsage Usage { get; set; }
Property Value
- ClaudeUsage
Methods
GetOutputFiles()
public List<IFile> GetOutputFiles()
Returns
- List<IFile>
GetOutputTexts()
public List<string> GetOutputTexts()
Returns
- List<string>
GetUsage()
public UsageMetadata GetUsage()
Returns
- UsageMetadata
IsFinal()
Returns
- bool
ToChatCompletionEvent(string)
public ChatCompletion ToChatCompletionEvent(string modelId)
Parameters
modelId string
Returns
- ChatCompletion