Skip to content

feat: add end_call as LLM function tool#532

Draft
san0808 wants to merge 1 commit intomasterfrom
feat/end-call-tool
Draft

feat: add end_call as LLM function tool#532
san0808 wants to merge 1 commit intomasterfrom
feat/end-call-tool

Conversation

@san0808
Copy link
Contributor

@san0808 san0808 commented Mar 2, 2026

Adds end_call as a special-cased LLM function tool (similar to transfer_call) so the primary conversation LLM can signal when to hang up => idea is to replace the extra hangup_after_LLMCall inference and increase accuracy

How it works: When the LLM calls end_call, the tool result is fed back and the LLM generates a clean goodbye message before disconnect (tool-result flow).

Changes:

  • constants.pyEND_CALL_FUNCTION_PREFIX and END_CALL_TOOL_DEFINITION
  • helpers/utils.py — Skip filler message for end_call
  • llms/tool_call_accumulator.py — Skip pre-call message for end_call
  • agent_manager/task_manager.py — Handle end_call in __execute_function_call with tool-result flow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant