mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-16 08:25:18 +02:00
docs: restructure & add mintilify pages for tool
This commit is contained in:
parent
7532c75661
commit
793dee182d
8 changed files with 121 additions and 25 deletions
|
|
@ -1728,7 +1728,6 @@ async def complete_transfer_function_call(transfer_id: str, request: Request):
|
|||
status=result["status"],
|
||||
action=result.get("action", ""),
|
||||
reason=result.get("reason"),
|
||||
end_call=result.get("end_call", False),
|
||||
)
|
||||
|
||||
# Publish the event via Redis
|
||||
|
|
|
|||
|
|
@ -790,8 +790,6 @@ class ARIConnection:
|
|||
message="Transfer destination answered",
|
||||
status="success",
|
||||
action="destination_answered",
|
||||
end_call=True,
|
||||
timestamp=time.time(),
|
||||
)
|
||||
await transfer_manager.publish_transfer_event(success_event)
|
||||
|
||||
|
|
@ -824,8 +822,6 @@ class ARIConnection:
|
|||
status="failed",
|
||||
action="transfer_failed",
|
||||
reason=reason,
|
||||
end_call=False,
|
||||
timestamp=time.time(),
|
||||
)
|
||||
await transfer_manager.publish_transfer_event(failure_event)
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ class TransferEvent:
|
|||
"conference_id": self.conference_name,
|
||||
"transfer_call_sid": self.transfer_call_sid,
|
||||
"original_call_sid": self.original_call_sid,
|
||||
"end_call": self.end_call,
|
||||
"reason": self.reason,
|
||||
}
|
||||
return result
|
||||
|
|
|
|||
|
|
@ -318,7 +318,6 @@ class CustomToolManager:
|
|||
"message": "I'm sorry, but call transfers are not available for web calls. Please try a telephony call.",
|
||||
"action": "transfer_failed",
|
||||
"reason": "webrtc_not_supported",
|
||||
"end_call": True,
|
||||
}
|
||||
await self._handle_transfer_result(
|
||||
webrtc_error_result, function_call_params, properties
|
||||
|
|
@ -332,7 +331,6 @@ class CustomToolManager:
|
|||
"message": "I'm sorry, but I don't have a phone number configured for the transfer. Please contact support to set up call transfer.",
|
||||
"action": "transfer_failed",
|
||||
"reason": "no_destination",
|
||||
"end_call": True,
|
||||
}
|
||||
await self._handle_transfer_result(
|
||||
validation_error_result, function_call_params, properties
|
||||
|
|
@ -354,7 +352,6 @@ class CustomToolManager:
|
|||
"message": "I'm sorry, but the transfer destination appears to be invalid. Please contact support to verify the transfer settings.",
|
||||
"action": "transfer_failed",
|
||||
"reason": "invalid_destination",
|
||||
"end_call": True,
|
||||
}
|
||||
await self._handle_transfer_result(
|
||||
validation_error_result, function_call_params, properties
|
||||
|
|
@ -369,7 +366,6 @@ class CustomToolManager:
|
|||
"message": "I'm sorry, but the transfer phone number appears to be invalid. Please contact support to verify the transfer settings.",
|
||||
"action": "transfer_failed",
|
||||
"reason": "invalid_destination",
|
||||
"end_call": True,
|
||||
}
|
||||
await self._handle_transfer_result(
|
||||
validation_error_result, function_call_params, properties
|
||||
|
|
@ -388,7 +384,6 @@ class CustomToolManager:
|
|||
"message": "I'm sorry, there's an issue with this call transfer. Please contact support.",
|
||||
"action": "transfer_failed",
|
||||
"reason": "no_organization_id",
|
||||
"end_call": False,
|
||||
}
|
||||
await self._handle_transfer_result(
|
||||
validation_error_result, function_call_params, properties
|
||||
|
|
@ -402,7 +397,6 @@ class CustomToolManager:
|
|||
"message": "I'm sorry, there's an issue with this call transfer. Please contact support.",
|
||||
"action": "transfer_failed",
|
||||
"reason": "provider_does_not_support_transfer",
|
||||
"end_call": False,
|
||||
}
|
||||
await self._handle_transfer_result(
|
||||
validation_error_result, function_call_params, properties
|
||||
|
|
@ -512,7 +506,6 @@ class CustomToolManager:
|
|||
"message": "I'm sorry, but the call is taking longer than expected to connect. The person might not be available right now. Please try calling back later.",
|
||||
"action": "transfer_failed",
|
||||
"reason": "timeout",
|
||||
"end_call": True,
|
||||
}
|
||||
await self._handle_transfer_result(
|
||||
timeout_result, function_call_params, properties
|
||||
|
|
@ -530,7 +523,6 @@ class CustomToolManager:
|
|||
"message": "I'm sorry, but something went wrong while trying to transfer your call. Please try again later or contact support if the problem persists.",
|
||||
"action": "transfer_failed",
|
||||
"reason": "execution_error",
|
||||
"end_call": True,
|
||||
}
|
||||
|
||||
await self._handle_transfer_result(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue