MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / run_command

Method run_command

methods/letta/server/server.py:672–678  ·  view source on GitHub ↗

Run a command on the agent

(self, user_id: str, agent_id: str, command: str)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 1

_commandMethod · 0.95

Tested by

no test coverage detected