Expand description
Shared fixtures and fake builders for exercising aether-project in tests.
Compiled for the crate’s own tests and for any consumer that enables the
testing feature. Prefer these over hand-rolling per-suite fixtures.
Structs§
- Prompt
File Builder - A fluent builder for test
PromptFiles; seeprompt_file. - Test
Home - A temporary home directory whose
.aethercontents are set up fluently. - Test
Project - A temporary project directory whose files are set up fluently.
Constants§
- DEFAULT_
MODEL - The model id every shared agent fixture resolves to.
Functions§
- agent_
config - A user-invocable
AgentConfignamednamewhose prompt is the filePROMPT.md. - agent_
json - A
settings.jsonagent object fornameanddescription: theDEFAULT_MODEL, user-invocable, with no prompts or MCPs. - agent_
json_ with agent_jsonmerged withextrafields, e.g.agent_json_with("planner", "Plans", json!({ "prompts": ["BASE.md"] })).- fake_
spec - A minimal
AgentSpecwith the given name and exposure. - home
- A temporary user home directory for tests that exercise
AETHER_HOMElookups. - project
- A temporary project directory for tests that need on-disk settings, prompts, or skills.
- prompt_
file - A
PromptFilewith valid defaults, built fluently for tests that exercise skill parsing, writing, and rating behavior. - settings_
agent - A minimal user-invocable
AgentConfigas it would be parsed fromsettings.json.