UpdateAgent

The UpdateAgent action updates specific attributes of an agent, namely, the title and description.

UpdateAgent(  
    idn: str = None,  
    name: Literal["title", "description"],  
    value: str  
)

Where:

  • idn: (Optional) Provide the agent's ID. Defaults to None (current agent).
  • name: Specify the name of the value to update (title or description).
  • value: Provide the new value for the title or description.

Example

{{UpdateAgent(name="title", value="Hotel Receptionist")}}

{{SendMessage(message="Agent title has been updated.")}}

The above code snippet updates the current agent's title to "Hotel Receptionist."