Persist runtime events and artifacts
This commit is contained in:
1 parent
271c6cfec8
commit
98f975a4ca
7 files changed
+347
-4
No files matched your search
@@ -200,6 +200,29 @@ pub struct Document {
|
||||
pub updated_at: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
|
||||
pub struct RunEventRecord {
|
||||
pub id: String,
|
||||
pub company_id: String,
|
||||
pub run_id: String,
|
||||
pub event_kind: String,
|
||||
pub title: String,
|
||||
pub detail: String,
|
||||
pub created_at: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
|
||||
pub struct ArtifactRecord {
|
||||
pub id: String,
|
||||
pub company_id: String,
|
||||
pub run_id: String,
|
||||
pub provider: String,
|
||||
pub external_id: String,
|
||||
pub title: String,
|
||||
pub metadata_json: String,
|
||||
pub created_at: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
|
||||
pub struct ThreadWaitState {
|
||||
pub id: String,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use crate::{
|
||||
Activity, Agent, AgentMessage, Approval, Company, Connector, Document, Goal, Project, Run,
|
||||
Task, Workspace,
|
||||
Activity, Agent, AgentMessage, Approval, ArtifactRecord, Company, Connector, Document, Goal,
|
||||
Project, Run, RunEventRecord, Task, Workspace,
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
@@ -19,6 +19,8 @@ pub struct ProfileSnapshot {
|
||||
pub tasks: Vec<Task>,
|
||||
pub approvals: Vec<Approval>,
|
||||
pub runs: Vec<Run>,
|
||||
pub run_events: Vec<RunEventRecord>,
|
||||
pub artifacts: Vec<ArtifactRecord>,
|
||||
pub activity: Vec<Activity>,
|
||||
pub agent_messages: Vec<AgentMessage>,
|
||||
pub documents: Vec<Document>,
|
||||
|
||||
Reference in new issue
Block a user