Run a command on the agent
(self, user_id: str, agent_id: str, command: str)
| 670 | |
| 671 | # @LockingServer.agent_lock_decorator |
| 672 | def run_command(self, user_id: str, agent_id: str, command: str) -> LettaUsageStatistics: |
| 673 | """Run a command on the agent""" |
| 674 | # If the input begins with a command prefix, attempt to process it as a command |
| 675 | if command.startswith("/"): |
| 676 | if len(command) > 1: |
| 677 | command = command[1:] # strip the prefix |
| 678 | return self._command(user_id=user_id, agent_id=agent_id, command=command) |
| 679 | |
| 680 | @trace_method |
| 681 | def get_cached_llm_config(self, **kwargs): |