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
      • Skills
        • api_ninjas_trivia
        • claude_skills
        • Custom Skills
        • datasphere
        • datasphere_serverless
        • datetime
        • google_maps
        • info_gatherer
        • joke
        • math
        • mcp_gateway
        • native_vector_search
        • play_background_file
        • spider
        • swml_transfer
        • weather_api
        • web_search
        • wikipedia_search
      • 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
  • space_name
  • project_id
  • token
  • document_id
  • count
  • distance
  • tags
  • language
  • pos_to_expand
  • max_synonyms
  • no_results_message
  • tool_name
AgentsSkills

datasphere_serverless

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

datetime

Next
Built with

Search SignalWire DataSphere documents using a DataMap for serverless execution. Unlike the standard datasphere skill, this version executes entirely server-side without a webhook round-trip, making it suitable for serverless deployments.

Tools: search_knowledge (default, customizable via tool_name)

Requirements: SignalWire DataSphere credentials

Multi-instance: Yes

space_name
strRequired

SignalWire space name.

project_id
strRequired

SignalWire project ID.

token
strRequired

SignalWire API token.

document_id
strRequired

DataSphere document ID to search within.

count
intDefaults to 1

Number of search results to return.

distance
floatDefaults to 3.0

Maximum distance threshold for results.

tags
list[str]

Tags to filter search results.

language
str

Language code for query expansion (e.g., "en", "es").

pos_to_expand
list[str]

Parts of speech to expand with synonyms: "NOUN", "VERB", "ADJ", "ADV".

max_synonyms
int

Maximum number of synonyms for query expansion (1–10).

no_results_message
str

Message returned when no results are found. Supports {query} placeholder.

tool_name
strDefaults to search_knowledge

Custom tool name for this instance.

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("datasphere_serverless", {
8 "space_name": "your-space",
9 "project_id": "YOUR_PROJECT_ID",
10 "token": "YOUR_API_TOKEN",
11 "document_id": "YOUR_DOCUMENT_ID",
12 "count": 3
13 })
14
15agent = MyAgent()
16agent.serve()