mirror of https://github.com/buster-so/buster.git
move to traces
This commit is contained in:
parent
7b22e06640
commit
87b5489e10
|
@ -416,7 +416,7 @@ impl Agent {
|
|||
generation_name: "agent".to_string(),
|
||||
user_id: thread.user_id.to_string(),
|
||||
session_id: thread.id.to_string(),
|
||||
trace_id: thread.id.to_string(),
|
||||
trace_id: None,
|
||||
}),
|
||||
..Default::default()
|
||||
};
|
||||
|
|
|
@ -141,7 +141,7 @@ impl SearchDataCatalogTool {
|
|||
generation_name: "search_data_catalog".to_string(),
|
||||
user_id: user_id.to_string(),
|
||||
session_id: session_id.to_string(),
|
||||
trace_id: session_id.to_string(),
|
||||
trace_id: None,
|
||||
}),
|
||||
reasoning_effort: Some("low".to_string()),
|
||||
max_completion_tokens: Some(8092),
|
||||
|
|
|
@ -1572,7 +1572,7 @@ pub async fn generate_conversation_title(
|
|||
generation_name: "conversation_title".to_string(),
|
||||
user_id: user_id.to_string(),
|
||||
session_id: session_id.to_string(),
|
||||
trace_id: session_id.to_string(),
|
||||
trace_id: None,
|
||||
}),
|
||||
..Default::default()
|
||||
};
|
||||
|
|
|
@ -59,7 +59,7 @@ pub struct Metadata {
|
|||
pub generation_name: String,
|
||||
pub user_id: String,
|
||||
pub session_id: String,
|
||||
pub trace_id: String,
|
||||
pub trace_id: Option<String>,
|
||||
}
|
||||
|
||||
impl Default for ChatCompletionRequest {
|
||||
|
@ -149,7 +149,7 @@ pub enum AgentMessage {
|
|||
#[serde(skip)]
|
||||
progress: MessageProgress,
|
||||
},
|
||||
Done
|
||||
Done,
|
||||
}
|
||||
|
||||
// Helper methods for Message
|
||||
|
|
Loading…
Reference in New Issue