mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-22 08:38:13 +02:00
add call transfer skeleton
This commit is contained in:
parent
e8005042e2
commit
c990af2a16
8 changed files with 450 additions and 25 deletions
|
|
@ -113,6 +113,7 @@ class MockToolModel:
|
|||
name: str
|
||||
description: str
|
||||
definition: Dict[str, Any]
|
||||
category: str = "http_api"
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
@ -144,6 +145,25 @@ def mock_user_config():
|
|||
return MockUserConfig()
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def transfer_call_tool():
|
||||
"""Create a mock transfer call tool for testing."""
|
||||
return MockToolModel(
|
||||
tool_uuid="transfer-uuid-001",
|
||||
name="Transfer to Support",
|
||||
description="Transfer the call to a support representative",
|
||||
category="transfer_call",
|
||||
definition={
|
||||
"schema_version": 1,
|
||||
"type": "transfer_call",
|
||||
"config": {
|
||||
"transferNumber": "+15551234567",
|
||||
"transferMessage": "Please hold while I transfer you to a support representative.",
|
||||
},
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def sample_tools():
|
||||
"""Create sample mock tools for testing."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue