Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions stardog_cloud_mcp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,16 @@ async def voicebox_settings() -> str:
annotations={"title": "Voicebox: Ask Questions", "readOnlyHint": True},
)
@tool_logging("voicebox_ask")
# async def voicebox_ask(
# question: str,
# conversation_id: Optional[str] = None,
#) -> str:

async def voicebox_ask(
question: str,
conversation_id: Optional[str] = None,
conversation_id: str = "",
) -> str:
conversation_id = conversation_id.strip() or None
"""
Ask a question to Voicebox and get a natural language response
"""
Expand Down Expand Up @@ -175,10 +181,16 @@ async def voicebox_ask(
annotations={"title": "Voicebox: Generate SPARQL", "readOnlyHint": True},
)
@tool_logging("voicebox_generate_query")
async def voicebox_generate_query(
# async def voicebox_generate_query(
# question: str,
# conversation_id: Optional[str] = None,
# ) -> str:

async def voicebox_generate_query(
question: str,
conversation_id: Optional[str] = None,
conversation_id: str = "",
) -> str:
conversation_id = conversation_id.strip() or None
"""
Generate a SPARQL query from a natural language question using Voicebox
"""
Expand Down