TokenSample Struct
Declaration
Included Headers
Public Member Attributes Index
| std::string | text |
| GenerationMetrics | metrics |
| bool | is_final = false |
| std::string | finish_reason |
| std::string | language |
|
Detected or explicitly selected ASR source language on the final sample. More... | |
| std::optional< float > | no_speech_prob |
|
Probability that the ASR input contains no speech, set on the final sample. More... | |
| std::optional< float > | avg_logprob |
|
Mean log probability over generated ASR tokens, set on the final sample. More... | |
| Json | tool_calls = Json::array() |
| std::string | reasoning |
|
Reasoning fragment; mutually exclusive with text for generated samples. More... | |
Definition at line 136 of file GenAITypes.h.
Public Member Attributes
avg_logprob
|
Mean log probability over generated ASR tokens, set on the final sample.
Definition at line 146 of file GenAITypes.h.
finish_reason
|
Definition at line 140 of file GenAITypes.h.
is_final
|
Definition at line 139 of file GenAITypes.h.
language
|
Detected or explicitly selected ASR source language on the final sample.
Definition at line 142 of file GenAITypes.h.
metrics
|
Definition at line 138 of file GenAITypes.h.
no_speech_prob
|
Probability that the ASR input contains no speech, set on the final sample.
Definition at line 144 of file GenAITypes.h.
reasoning
|
Reasoning fragment; mutually exclusive with text for generated samples.
Definition at line 149 of file GenAITypes.h.
text
|
Definition at line 137 of file GenAITypes.h.
tool_calls
|
Definition at line 147 of file GenAITypes.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.