Source code for tools.ping
"""Simple ping/pong tool for verifying that tool calling works."""
TOOL_NAME = "ping"
TOOL_DESCRIPTION = "Replies with 'pong'. Useful for testing that tool calling is functional."
TOOL_PARAMETERS = {
"type": "object",
"properties": {},
}
[docs]
async def run() -> str:
"""Execute this tool and return the result.
Returns:
str: Result string.
"""
return "pong"