Skip to content

feat: Add support for more reasoning types #1147

@Sytten

Description

@Sytten
  • I have looked for existing issues (including closed) about this

Feature Request

Motivation

We need to support more types of reasoning, namely:

  • Encrypted
  • Summary

Proposal

We should transform the current Reasoning struct into something like

pub struct Reasoning {
    pub id: Option<String>,
    pub reasoning: Vec<ReasoningContent>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub signature: Option<String>,
}

pub enum ReasoningContent {
  Text(String),
  Encrypted(Vec<u8>),
  Summary(String)
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions