personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 26 lines 703 B view raw
1# SPDX-License-Identifier: AGPL-3.0-only 2# Copyright (c) 2026 sol pbc 3 4from pathlib import Path 5 6from .prompts import load_prompt 7 8 9def _load_prompt() -> str: 10 """Return system instruction text for planning.""" 11 prompt_content = load_prompt("planner", base_dir=Path(__file__).parent) 12 return prompt_content.text 13 14 15def generate_plan(request: str) -> str: 16 """Return a detailed agent plan for ``request`` using configured provider.""" 17 from think.models import generate 18 19 return generate( 20 contents=request, 21 context="planner.generate", 22 temperature=0.3, 23 max_output_tokens=4096, 24 thinking_budget=4096, 25 system_instruction=_load_prompt(), 26 )