add call transfer skeleton

This commit is contained in:
Abhishek Kumar 2026-02-05 17:50:54 +05:30
parent e8005042e2
commit c990af2a16
8 changed files with 450 additions and 25 deletions

View file

@ -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."""