server-personification/pers/langchain/tools/agent_end_response.py

8 lines
173 B
Python

from langchain_core.tools import tool
@tool
def end_my_response():
"""Signals the chat subsystem to end the assistant's turn and let the human reply."""
return ''