Files
omnigent-ai--omnigent/tests/resources/agents/async-tools/tools/python/count_chars.py
T
2026-07-13 13:12:00 +08:00

17 lines
369 B
Python

"""count_chars fixture tool (sync; returns character count)."""
from __future__ import annotations
from omnigent_client.tools import tool
@tool
def count_chars(text: str) -> int:
"""
Return the literal character count of ``text``.
:param text: Text to measure, e.g. ``"abc"``.
:returns: Length of ``text``, e.g. ``3``.
"""
return len(text)