AgentsSkills

datasphere_serverless

View as MarkdownOpen in Claude

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()