Skip to main content

render_prompt_text_for_agent

Function render_prompt_text_for_agent 

Source
pub fn render_prompt_text_for_agent(text: &str) -> String
Expand description

Rewrites user-entered @ lookups into quoted agent-facing path tokens.

File and directory lookups like @path/to/file are rewritten to "path/to/file". Non-lookup uses of @, including email-like tokens and lone @, are preserved so frontends and persisted transcripts can continue storing the original user input unchanged.