ContextStr
autogen.agentchat.contrib.swarm_agent.ContextStr dataclass
#
A string that requires context variable substitution.
Use the format method to substitute context variables into the string.
PARAMETER | DESCRIPTION |
---|---|
template | The string to be substituted with context variables. It is expected that the string will contain TYPE: |
Source code in autogen/agentchat/contrib/swarm_agent.py
format #
Substitute context variables into the string.
PARAMETER | DESCRIPTION |
---|---|
context_variables | The context variables to substitute into the string. |
RETURNS | DESCRIPTION |
---|---|
Optional[str] | Optional[str]: The formatted string with context variables substituted. |