chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:58:18 +08:00
commit 6d5d58c1a9
18293 changed files with 3502153 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
"""Dice-rolling tool implementation."""
import random
from typing import Any
def roll_dice_impl(sides: int) -> dict[str, Any]:
"""Roll a die with the given number of sides.
Returns a dict with the requested ``sides`` and the rolled ``result``
(a random integer in ``[1, sides]``).
"""
return {"sides": sides, "result": random.randint(1, sides)}