This repository has been archived on 2026-10-29. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
Epiphany/epiphany-codex-bridge/src/context.rs

27 lines
849 B
Rust
Raw Normal View History

2026-05-20 15:00:12 +01:00
use epiphany_core::EpiphanyContextParams;
2026-05-13 01:11:22 +01:00
use epiphany_core::EpiphanyContextView;
2026-05-20 15:00:12 +01:00
use epiphany_core::EpiphanyGraphQuery;
2026-05-13 01:11:22 +01:00
use epiphany_core::EpiphanyGraphQueryView;
use epiphany_core::EpiphanyPlanningView;
use epiphany_core::derive_context;
use epiphany_core::derive_graph_query;
use epiphany_core::derive_planning_view;
use epiphany_state_model::EpiphanyThreadState;
2026-05-13 01:11:22 +01:00
2026-05-20 15:00:12 +01:00
pub fn derive_epiphany_context(
2026-05-13 01:11:22 +01:00
state: Option<&EpiphanyThreadState>,
2026-05-20 15:00:12 +01:00
params: &EpiphanyContextParams,
) -> EpiphanyContextView {
derive_context(state, params)
2026-05-20 02:21:43 +01:00
}
2026-05-20 15:00:12 +01:00
pub fn derive_epiphany_planning(state: Option<&EpiphanyThreadState>) -> EpiphanyPlanningView {
derive_planning_view(state)
2026-05-13 01:11:22 +01:00
}
2026-05-20 15:00:12 +01:00
pub fn derive_epiphany_graph_query(
2026-05-13 01:11:22 +01:00
state: Option<&EpiphanyThreadState>,
2026-05-20 15:00:12 +01:00
query: &EpiphanyGraphQuery,
) -> EpiphanyGraphQueryView {
derive_graph_query(state, query)
2026-05-13 01:11:22 +01:00
}