Build organizational Persona feedback cognition
This commit is contained in:
parent
17534e6f12
commit
e20a9c019e
28 changed files with 2633 additions and 2590 deletions
|
|
@ -143,6 +143,7 @@ pub use worker_launch::EpiphanyReorientLaunchRequestInput;
|
|||
pub use worker_launch::EpiphanyReorientWorkerLaunchDocument;
|
||||
pub use worker_launch::EpiphanyRoleWorkerLaunchDocument;
|
||||
pub use worker_launch::EpiphanyWorkerLaunchDocument;
|
||||
pub use worker_launch::ImaginationConsiderationContextProjection;
|
||||
pub use worker_launch::REORIENT_WORKER_OUTPUT_CONTRACT_ID;
|
||||
pub use worker_launch::REPO_FRONTIER_PLAN_MIND_CONTEXT_CONTRACT;
|
||||
pub use worker_launch::REPO_FRONTIER_PLAN_MIND_CONTEXT_SCHEMA_VERSION;
|
||||
|
|
|
|||
|
|
@ -42,6 +42,10 @@ pub const REPO_FRONTIER_PLAN_MIND_CONTEXT_SCHEMA_VERSION: &str =
|
|||
"epiphany.worker.repo_frontier_plan_mind_context.v0";
|
||||
pub const REPO_FRONTIER_PLAN_MIND_CONTEXT_CONTRACT: &str =
|
||||
"epiphany.repo_frontier_plan_mind_context.v0";
|
||||
pub const IMAGINATION_CONSIDERATION_CONTEXT_SCHEMA_VERSION: &str =
|
||||
"epiphany.worker.imagination_consideration_context.v0";
|
||||
pub const IMAGINATION_CONSIDERATION_CONTEXT_CONTRACT: &str =
|
||||
"epiphany.imagination_consideration_context.v0";
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase", tag = "documentKind")]
|
||||
|
|
@ -103,6 +107,8 @@ pub struct EpiphanyRoleWorkerLaunchDocument {
|
|||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub frontier_plan_mind_context: Option<RepoFrontierPlanMindContextProjection>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub imagination_consideration_context: Option<ImaginationConsiderationContextProjection>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub active_subgoal_id: Option<String>,
|
||||
#[serde(default)]
|
||||
pub active_subgoals: Vec<EpiphanySubgoal>,
|
||||
|
|
@ -309,6 +315,29 @@ impl RepoFrontierPlanningContextProjection {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct ImaginationConsiderationContextProjection {
|
||||
pub schema_version: String,
|
||||
pub contract: String,
|
||||
pub request: crate::ImaginationConsiderationRequest,
|
||||
pub model: crate::EpiphanyMemoryGraphSnapshot,
|
||||
}
|
||||
|
||||
impl ImaginationConsiderationContextProjection {
|
||||
pub(crate) fn new(
|
||||
request: &crate::ImaginationConsiderationRequest,
|
||||
model: &crate::EpiphanyMemoryGraphSnapshot,
|
||||
) -> Self {
|
||||
Self {
|
||||
schema_version: IMAGINATION_CONSIDERATION_CONTEXT_SCHEMA_VERSION.into(),
|
||||
contract: IMAGINATION_CONSIDERATION_CONTEXT_CONTRACT.into(),
|
||||
request: request.clone(),
|
||||
model: model.clone(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct RepoFrontierPlanMindContextProjection {
|
||||
|
|
@ -379,6 +408,7 @@ pub fn build_reorient_job_launch_request(
|
|||
claim_repair_request_id: None,
|
||||
frontier_planning_request_id: None,
|
||||
frontier_plan_mind_request_id: None,
|
||||
imagination_consideration_request_id: None,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue