MCPcopy
hub / github.com/langroid/langroid / add

Method add

examples/basic/1-agent-3-tools.py:80–85  ·  view source on GitHub ↗
(self, msg: AddTool)

Source from the content-addressed store, hash-verified

78 """
79
80 def add(self, msg: AddTool) -> str:
81 self.secret += msg.number
82 return f"""
83 Added {msg.number} to stored number => {self.secret}.
84 Ask the user what they want to do.
85 """
86
87 def show(self, msg: ShowTool) -> str:
88 return f"Tell the user that the SECRET NUMBER is {self.secret}"

Callers 6

test_git_commit_modsFunction · 0.45
mock_db_sessionFunction · 0.45
sessionFunction · 0.45

Calls

no outgoing calls

Tested by 4

test_git_commit_modsFunction · 0.36
mock_db_sessionFunction · 0.36
sessionFunction · 0.36