mirror of
https://github.com/openai/codex.git
synced 2026-05-01 09:56:37 +00:00
21 lines
560 B
Rust
21 lines
560 B
Rust
use schemars::JsonSchema;
|
|
use serde::Deserialize;
|
|
use serde::Serialize;
|
|
use ts_rs::TS;
|
|
|
|
#[derive(Debug, Clone, Default, Serialize, Deserialize, PartialEq, Eq, JsonSchema, TS)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct MemoryCitation {
|
|
pub entries: Vec<MemoryCitationEntry>,
|
|
pub rollout_ids: Vec<String>,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, JsonSchema, TS)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct MemoryCitationEntry {
|
|
pub path: String,
|
|
pub line_start: u32,
|
|
pub line_end: u32,
|
|
pub note: String,
|
|
}
|