Expand description
Traits and implementations for extracting structured intents from LLM responses.
Modules§
Structs§
- Prompt
Based Extractor Deprecated - A classic, prompt-based implementation of
IntentExtractor.
Enums§
- Intent
Error - An error type for intent extraction failures.
- Parse
Error - Parse error for intent extraction
Traits§
- Intent
Extractor - A generic trait for extracting a structured intent of type
Tfrom a string response.
Functions§
- extract_
intent_ from_ response - Helper function for extracting intents from LLM responses using XML-style tags.
This is used by the
define_intentmacro.
Type Aliases§
- Intent
Extraction Error - Alias for IntentError for backward compatibility with macro-generated code.