ContextStrLLMCondition
autogen.agentchat.group.llm_condition.ContextStrLLMCondition #
Bases: LLMCondition
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.
get_prompt #
Return the prompt with context variables substituted.
PARAMETER | DESCRIPTION |
---|---|
agent | The agent evaluating the condition (provides context variables) TYPE: |
messages | The conversation history (not used) |
RETURNS | DESCRIPTION |
---|---|
str | The prompt with context variables substituted |