For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
GuidesReference
GuidesReference
    • Core
      • Overview
    • Agents
      • Overview
      • AgentBase
      • AgentServer
      • Configuration
      • ContextBuilder
      • DataMap
      • FunctionResult
      • Helper Functions & Utilities
      • LiveWire
      • PomBuilder
      • Prefabs
      • SkillBase
      • SkillManager
      • SkillRegistry
      • Skills
        • ApiNinjasTriviaSkill
        • AskClaudeSkill
        • ClaudeSkillsSkill
        • CustomSkillsSkill
        • DataSphereServerlessSkill
        • DataSphereSkill
        • DateTimeSkill
        • GoogleMapsSkill
        • InfoGathererSkill
        • JokeSkill
        • MathSkill
        • McpGatewaySkill
        • NativeVectorSearchSkill
        • PlayBackgroundFileSkill
        • SpiderSkill
        • SwmlTransferSkill
        • WeatherApiSkill
        • WebSearchSkill
        • WikipediaSearchSkill
      • SwaigFunction
      • SwmlBuilder
      • SWMLService
    • RELAY
      • Overview
      • Actions
      • Call
      • Constants
      • Events
      • Message
      • RelayClient
      • RelayError
    • REST Client
      • Overview
      • Addresses
      • Calling
      • ChatResource
      • Compat
      • Datasphere
      • Fabric
      • ImportedNumbersResource
      • Logs
      • LookupResource
      • MFA
      • Number Groups
      • Phone Numbers
      • Project
      • PubSubResource
      • Queues
      • Recordings
      • Registry
      • RestClient
      • RestError
      • Short Codes
      • SIP Profile
      • Verified Callers
      • Video
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • api_key
  • tool_name
  • units
AgentsSkills

WeatherApiSkill

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

WebSearchSkill

Next
Built with

Get current weather conditions for any location using the OpenWeatherMap API.

Provider note: This skill uses OpenWeatherMap (api.openweathermap.org/data/2.5/weather), not WeatherAPI.com. An OpenWeatherMap API key is required — a WeatherAPI.com key will not work. Obtain a key at https://openweathermap.org/api.

Class: WeatherApiSkill

Tools: get_weather (configurable via tool_name)

Env vars: WEATHER_API_KEY

api_key
stringRequired

OpenWeatherMap API key. Falls back to the WEATHER_API_KEY environment variable when the config value is not supplied.

tool_name
stringDefaults to get_weather

Custom name for the generated weather tool.

units
stringDefaults to fahrenheit

Temperature units. Preferred values: "metric" (Celsius), "imperial" (Fahrenheit), or "standard" (Kelvin). Python SDK aliases are also accepted: "celsius" → "metric", "fahrenheit" → "imperial".

1import { AgentBase, WeatherApiSkill } from '@signalwire/sdk';
2
3const agent = new AgentBase({ name: 'assistant', route: '/assistant' });
4agent.setPromptText('You are a helpful assistant.');
5
6await agent.addSkill(new WeatherApiSkill({
7 units: 'imperial',
8}));
9
10agent.run();