mirror of
https://github.com/openai/codex.git
synced 2026-11-13 06:45:07 +00:00
feat: add compaction event (#7289)
This commit is contained in:
1 parent
157a16cefa
commit
9ba27cfa0a
12 files changed
+38
-10
No files matched your search
@@ -455,6 +455,9 @@ pub enum EventMsg {
|
||||
/// indicates the task continued but the user should still be notified.
|
||||
Warning(WarningEvent),
|
||||
|
||||
/// Conversation history was compacted (either automatically or manually).
|
||||
ContextCompacted(ContextCompactedEvent),
|
||||
|
||||
/// Agent has started a task
|
||||
TaskStarted(TaskStartedEvent),
|
||||
|
||||
@@ -739,6 +742,9 @@ pub struct WarningEvent {
|
||||
pub message: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, JsonSchema, TS)]
|
||||
pub struct ContextCompactedEvent;
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize, JsonSchema, TS)]
|
||||
pub struct TaskCompleteEvent {
|
||||
pub last_agent_message: Option<String>,
|
||||
|
||||
Reference in new issue
Block a user