Skip to content

Commit 398a011

Browse files
feat: add request metadata to the conversation history and emitted telemetry (#2313)
1 parent 5ee867f commit 398a011

File tree

9 files changed

+824
-236
lines changed

9 files changed

+824
-236
lines changed

crates/chat-cli/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ fn main() {
122122

123123
quote::quote!(
124124
#[doc = #description]
125-
#[derive(Debug, Clone, PartialEq)]
125+
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
126126
#[non_exhaustive]
127127
pub enum #name {
128128
#(

crates/chat-cli/src/cli/chat/cli/compact.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub struct CompactArgs {
4949
}
5050

5151
impl CompactArgs {
52-
pub async fn execute(self, os: &Os, session: &mut ChatSession) -> Result<ChatState, ChatError> {
52+
pub async fn execute(self, os: &mut Os, session: &mut ChatSession) -> Result<ChatState, ChatError> {
5353
let default = CompactStrategy::default();
5454
let prompt = if self.prompt.is_empty() {
5555
None

crates/chat-cli/src/cli/chat/conversation.rs

Lines changed: 100 additions & 49 deletions
Large diffs are not rendered by default.

crates/chat-cli/src/cli/chat/mod.rs

Lines changed: 284 additions & 117 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)