Documentation Index
Fetch the complete documentation index at: https://ahvn.top/llms.txt
Use this file to discover all available pages before exploring further.
This page mirrors the English Agents page. Technical identifiers stay in English so examples can be copied directly.
1. Agent stack
A HeavenBase-backed agent usually has four parts:hb.LLMfor model preset, provider, gateway, and cache policyLLMSessionfromheavenbase.utilsfor multi-turn history and automatic tool loopshb.Promptandhb.fast_prompt_sectionfor persisted instructionshb.HeavenBase(...).to_mcp(profile="agent")for workspace tools
2. Workspace memory
Use a workspace preset for first-run agents:agent MCP profile is smaller than the full workspace toolkit. Use it first, then pass tools=[...] when an agent needs a narrower allowlist.
If the agent only needs persistent notes, start even smaller with the memory profile:
memory profile exposes remember, recall, search_memory, list_memory, and set_memory. It is useful for Memstate-style note storage while still keeping the data inside the same HeavenBase workspace. Use remember for summaries or decisions, recall/list_memory for exact retrieval and browsing, search_memory for fuzzy lookup, and set_memory for exact-key correction. History and delete stay out of this first-run profile until the application has a retention policy.
3. Prompt instructions
ws=....
4. LLM session with tools
5. Agent smoke path
For a compact agent smoke test:- Use
hb.HeavenBase("task", preset="debug"). - Use
ws.to_mcp(profile="agent"). - Use
ws.to_mcp(profile="memory")when the task only needs note memory. - Use
hb.LLM(preset="chat", gateway="portkey", cache=False). - Keep GLM tool calls on native OpenAI JSON tools unless a provider-specific failure proves otherwise.
- Use
hb.LLM(...).spec.materialize()for route inspection before live calls.

