sanatan_ai / modules /nodes /tool_calls.py
vikramvasudevan's picture
Upload folder using huggingface_hub
63d1774 verified
raw
history blame contribute delete
162 Bytes
from modules.nodes.state import ChatState
def increment_tool_calls(state: ChatState):
state["tool_calls"] = state.get("tool_calls", 0) + 1
return state