Skip to main content

Module profile_guide

Module profile_guide 

Source
Expand description

Opt-in Guide that renders harness_core::UserProfile into the agent’s system prompt.

Add to your loop when you want every model call to know who it’s working for:

AgentLoop::new(model)
    .with_guide(std::sync::Arc::new(harness_loop::ProfileGuide))
    .run(task, &mut world).await?;

The framework deliberately does NOT auto-attach this — World.profile is a slot the app fills however it wants (env, CLI, app-side config), and injection into the prompt is also the app’s call.

Structs§

ProfileGuide
Renders World.profile as a one-line User profile: … block in the agent’s guides section. No-op when the profile is empty.