-
Notifications
You must be signed in to change notification settings - Fork 384
feat(memory): Scaffold inject_memories turn_start builtin #3015
Copy link
Copy link
Open
Labels
area/agentFor work that has to do with the general agent loop/agentic features of the appFor work that has to do with the general agent loop/agentic features of the apparea/configFor configuration parsing, YAML, environment variablesFor configuration parsing, YAML, environment variablesarea/ragFor work/issues that have to do with the RAG featuresFor work/issues that have to do with the RAG featuresarea/toolsFor features/issues/fixes related to the usage of built-in and MCP toolsFor features/issues/fixes related to the usage of built-in and MCP tools
Metadata
Metadata
Assignees
Labels
area/agentFor work that has to do with the general agent loop/agentic features of the appFor work that has to do with the general agent loop/agentic features of the apparea/configFor configuration parsing, YAML, environment variablesFor configuration parsing, YAML, environment variablesarea/ragFor work/issues that have to do with the RAG featuresFor work/issues that have to do with the RAG featuresarea/toolsFor features/issues/fixes related to the usage of built-in and MCP toolsFor features/issues/fixes related to the usage of built-in and MCP tools
Type
Fields
Give feedbackNo fields configured for Enhancement.
Background
Sub-issue of #3011. Create the
inject_memoriesbuiltin file and register it as aturn_starthook, following the precedent set byadd_date,add_environment_info, andadd_prompt_filesinpkg/hooks/builtins/.This issue is scoped to the builtin scaffolding only — the retrieval logic itself is defined in #3013, and runtime wiring is handled in a separate sub-issue.
Scope
pkg/hooks/builtins/inject_memories.gowith theturn_startbuiltin signatureInjectMemories = "inject_memories") and the handler inpkg/hooks/builtins/builtins.goAgentDefaults:InjectMemories boolMaxInjectMemories intInjectMemoriesStrategy stringmemorytoolset is presentSearchMemoriescall is implemented in feat(memory): Design and implement inject_memories retrieval strategy #3013 (this issue lays the foundation)Implementation Checklist
pkg/hooks/builtins/inject_memories.go— file + handler skeletonpkg/hooks/builtins/builtins.go— register constant, handler,AgentDefaultsfieldsAdditionalContextuntil feat(memory): Design and implement inject_memories retrieval strategy #3013 landsAcceptance Criteria
AgentDefaults.InjectMemories == false)InjectMemories: falsereturns noAdditionalContextAdditionalContextturn_startexecution order