StringLLMCondition
autogen.agentchat.group.llm_condition.StringLLMCondition #
Bases: LLMCondition
Simple string-based LLM condition.
This condition provides a static string prompt to be evaluated by an LLM.
Initialize with a prompt string as a positional parameter.
PARAMETER | DESCRIPTION |
---|---|
prompt | The static prompt string to evaluate TYPE: |
data | Additional data for the parent class TYPE: |
Source code in autogen/agentchat/group/llm_condition.py
get_prompt #
Return the static prompt string.
PARAMETER | DESCRIPTION |
---|---|
agent | The agent evaluating the condition (not used) TYPE: |
messages | The conversation history (not used) |
RETURNS | DESCRIPTION |
---|---|
str | The static prompt string |