Skip to main content

ContextStrLLMCondition

Context variable-based LLM condition.
This condition uses a ContextStr object with context variable placeholders that will be substituted before being evaluated by an LLM.
Initialize with a context string as a positional parameter.
Parameters:

Class Attributes

context_str



model_config



Instance Methods

get_prompt

Return the prompt with context variables substituted.
Parameters: Returns: