AgentsSkills

datetime

View as MarkdownOpen in Claude

Get current date and time information with timezone support.

Tools: get_current_time, get_current_date

Requirements: pytz

No custom parameters. This skill inherits only the base parameters (swaig_fields, skip_prompt).

1from signalwire import AgentBase
2
3class MyAgent(AgentBase):
4 def __init__(self):
5 super().__init__(name="assistant", route="/assistant")
6 self.set_prompt_text("You are a helpful assistant.")
7 self.add_skill("datetime")
8
9agent = MyAgent()
10agent.serve()