memory: add agent-context placeholder, split context groups
Add `agent: bool` field to ContextGroup (default true) so agents get
personality/identity context without session-specific groups (journal,
where-am-i). Agents now get the full identity.md, reflections.md,
toolkit, etc. instead of the compact core-personality loader.
New {{agent-context}} placeholder resolves all agent-tagged groups
using the same get_group_content() as load-context.
This commit is contained in:
parent
c5ce6e515f
commit
b6bfb26369
4 changed files with 43 additions and 8 deletions
|
|
@ -204,7 +204,7 @@ pub fn cmd_query(expr: &[String]) -> Result<(), String> {
|
|||
crate::query_parser::run_query(&store, &graph, &query_str)
|
||||
}
|
||||
|
||||
fn get_group_content(group: &crate::config::ContextGroup, store: &crate::store::Store, cfg: &crate::config::Config) -> Vec<(String, String)> {
|
||||
pub fn get_group_content(group: &crate::config::ContextGroup, store: &crate::store::Store, cfg: &crate::config::Config) -> Vec<(String, String)> {
|
||||
match group.source {
|
||||
crate::config::ContextSource::Journal => {
|
||||
let mut entries = Vec::new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue