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
      • BedrockAgent
      • CLI Tools
      • Configuration
      • ContextBuilder
      • DataMap
      • FunctionResult
      • Helper Functions
      • LiveWire
      • MCP Gateway
      • PomBuilder
      • Prefabs
      • Search
      • SkillBase
        • cleanup
        • define_tool
        • get_global_data
        • get_hints
        • get_instance_key
        • get_parameter_schema
        • get_prompt_sections
        • get_skill_data
        • register_tools
        • setup
        • update_skill_data
        • validate_env_vars
        • validate_packages
      • Skills
      • SWAIGFunction
      • SWMLBuilder
      • SWMLService
      • WebService
    • RELAY
      • Overview
      • Actions
      • Call
      • Constants
      • Events
      • Message
      • RelayClient
      • RelayError
    • REST Client
      • Overview
      • Addresses
      • Calling
      • Chat
      • Compat
      • Datasphere
      • Fabric
      • Imported Numbers
      • Logs
      • Lookup
      • MFA
      • Number Groups
      • Phone Numbers
      • Project
      • PubSub
      • Queues
      • Recordings
      • Registry
      • RestClient
      • Short Codes
      • SignalWireRestError
      • SIP Profile
      • Verified Callers
      • Video
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Parameters
  • Returns
  • Example
AgentsSkillBase

validate_packages

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

Skills

Next
Built with

Check whether all REQUIRED_PACKAGES can be imported.

Parameters

None.

Returns

bool — True if all required packages are available, False with error logging otherwise.

Example

1from signalwire.core.skill_base import SkillBase
2
3class MySkill(SkillBase):
4 SKILL_NAME = "my_skill"
5 SKILL_DESCRIPTION = "Example skill"
6 REQUIRED_PACKAGES = ["requests", "beautifulsoup4"]
7 REQUIRED_ENV_VARS = ["MY_API_KEY", "MY_SECRET"]
8
9 def setup(self) -> bool:
10 if not self.validate_packages():
11 return False
12 if not self.validate_env_vars():
13 return False
14 return True
15
16 def register_tools(self):
17 pass