feat(tools): add phone_call tool for outbound AI voice calls#847
Open
feat(tools): add phone_call tool for outbound AI voice calls#847
Conversation
Add phone_call and phone_call_result tools for making outbound phone calls via AI voice agents. Supports two providers: - Bland.ai (default): simple all-in-one, one API key, built-in voices - Vapi: flexible platform with ElevenLabs/Deepgram/PlayHT voices and Twilio/Vonage/Telnyx telephony. Better voice quality, more setup. The tool handles the API plumbing (initiating calls, polling for transcripts/recordings). Provider is selected via config.yaml or env vars (BLAND_API_KEY or VAPI_API_KEY + VAPI_PHONE_NUMBER_ID). Tools only appear when at least one provider is configured (check_fn returns False otherwise). Files changed: - tools/phone_tool.py: new tool module (phone_call, phone_call_result) - toolsets.py: add 'phone' toolset + tools to _HERMES_CORE_TOOLS - model_tools.py: add tools.phone_tool to discovery list
48ea4bb to
1cbadb7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bland.ai call
phone_call(<phone_number_hidden>, "Deliver a message from Morgane")
→ call_id: b1c18c55-...
→ Transcript: AI delivered message, user responded
Vapi + ElevenLabs + Twilio call
phone_call(<phone_number_hidden>, "Test voice quality")
→ call_id: 019cd87a-...
→ Transcript: User confirmed voice quality improvement