mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-04 10:52:17 +02:00
feat: add template variable rendering for transfer call destination
This commit is contained in:
parent
65d46bc313
commit
9966940624
8 changed files with 279 additions and 142 deletions
15
api/tests/test_tool_schema.py
Normal file
15
api/tests/test_tool_schema.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from api.schemas.tool import TransferCallConfig
|
||||
|
||||
|
||||
def test_transfer_call_destination_accepts_initial_context_template():
|
||||
config = TransferCallConfig(
|
||||
destination="{{initial_context.transfer_destination}}",
|
||||
)
|
||||
|
||||
assert config.destination == "{{initial_context.transfer_destination}}"
|
||||
|
||||
|
||||
def test_transfer_call_destination_accepts_provider_specific_literal():
|
||||
config = TransferCallConfig(destination="provider-specific-destination")
|
||||
|
||||
assert config.destination == "provider-specific-destination"
|
||||
Loading…
Add table
Add a link
Reference in a new issue