MCPcopy Create free account

hub / github.com/Azure-Samples/nlp-sql-in-a-box / functions

Functions17 in github.com/Azure-Samples/nlp-sql-in-a-box

↓ 6 callersMethodsynthesize
Synthesize text to speech and play it through the speaker
src/speech/service.py:44
↓ 2 callersMethodrecognize
Recognize speech from the microphone and convert it to text
src/speech/service.py:22
↓ 2 callersMethodrun
Run the orchestrator
src/orchestrator/service.py:17
↓ 1 callersFunctioncreate_table
Create the ExplorationProduction table in the database.
src/database/utils.py:22
↓ 1 callersFunctionget_connection
(server_name: str, database_name: str, token: str)
src/database/service.py:74
↓ 1 callersFunctioninsert_record
Insert a fake record into the ExplorationProduction table.g
src/database/utils.py:46
↓ 1 callersFunctionmain
()
src/app.py:25
↓ 1 callersMethodmessage
Send a message to the kernel and get a response.
src/kernel/service.py:48
↓ 1 callersMethodsetup
Set up the database by creating the table and inserting fake records.
src/database/service.py:27
↓ 1 callersFunctiontable_exists
Check whether the ExplorationProduction table exists in the database.
src/database/utils.py:5
Method__init__
(self, server_name: str, database_name: str, credential: DefaultAzureCredential)
src/database/service.py:22
Method__init__
(self, credential: DefaultAzureCredential, resource_id: str, region: str)
src/speech/service.py:15
Method__init__
(self, db: Database)
src/plugins/database_plugin.py:16
Method__init__
(self, database_service: Database, credential: DefaultAzureCredential, openai_endpoint: str, openai_deployment
src/kernel/service.py:26
Method__init__
(self, speech_service: Speech, kernel: Kernel)
src/orchestrator/service.py:13
Methodquery
Query the database with the given SQL query.
src/database/service.py:55
Methodquery
(self, query: Annotated[str, "The SQL query"])
src/plugins/database_plugin.py:20