Loading...
Searching...
No Matches
chat.h File Reference

Go to the source code of this file.

Classes

struct  opennn::SamplingConfig
 
struct  opennn::ChatMessage
 
struct  opennn::ChatOptions
 
struct  opennn::ChatDelta
 
struct  opennn::ChatResponse
 
struct  opennn::GenerationParserSpec
 
class  opennn::ChatTemplate
 
class  opennn::Qwen3ChatTemplate
 
class  opennn::GenerationParser
 
class  opennn::ChatSession
 

Namespaces

namespace  opennn
 

Typedefs

using opennn::ChatCallback = function<void(const ChatDelta&)>
 

Enumerations

enum class  opennn::ReasoningMode { opennn::Automatic , opennn::Enabled , opennn::Disabled }
 
enum class  opennn::GenerationChannel { opennn::Reasoning , opennn::Content }
 
enum class  opennn::FinishReason { opennn::Stop , opennn::MaximumTokens , opennn::ContextLimit }
 
enum class  opennn::ChatRole { opennn::System , opennn::User , opennn::Assistant }
 

Functions

Index opennn::sample_token (VectorR &probabilities, const SamplingConfig &, const vector< Index > &history)