Module intent

Module intent 

Source
Expand description

Traits and implementations for extracting structured intents from LLM responses.

Modules§

frame

Structs§

PromptBasedExtractorDeprecated
A classic, prompt-based implementation of IntentExtractor.

Enums§

IntentError
An error type for intent extraction failures.
ParseError
Parse error for intent extraction

Traits§

IntentExtractor
A generic trait for extracting a structured intent of type T from 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_intent macro.

Type Aliases§

IntentExtractionError
Alias for IntentError for backward compatibility with macro-generated code.