StringLLMCondition

StringLLMCondition(prompt: str, **data: Any)

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.

Parameters:
NameDescription
promptType: str
**dataType: Any

Class Attributes

model_config



prompt



Instance Methods

get_prompt

get_prompt(
    self,
    agent: ConversableAgent,
    messages: list[dict[str, Any]]
) -> str

Return the static prompt string.

Parameters:
NameDescription
agentThe agent evaluating the condition (not used)

Type: ConversableAgent
messagesThe conversation history (not used)

Type: list[dict[str, typing.Any]]
Returns:
TypeDescription
strThe static prompt string