ExampleTool1.py 337 B

1234567891011121314
  1. from pydantic import Field
  2. from agency_swarm.tools import BaseTool
  3. class ExampleTool1(BaseTool):
  4. """Simple echo tool used by tests."""
  5. content: str = Field(..., description="Text that will be returned by the tool.")
  6. def run(self) -> str:
  7. """Return the provided content unchanged."""
  8. return self.content