Skip to main content

parse_action

Function parse_action 

Source
pub fn parse_action(content: &str) -> Result<AgentAction, ActionParseError>
Expand description

Parse a raw LLM text response into an AgentAction.

Handles optional markdown code fences (```json / ```) and leading/trailing whitespace.