Skip to content

Commit 2b71cb3

Browse files
committed
fixing dbos test
1 parent 90db5ac commit 2b71cb3

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

tests/test_dbos.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,6 +1401,7 @@ async def hitl_main_loop(prompt: str) -> AgentRunResult[str | DeferredToolReques
14011401
)
14021402
],
14031403
instructions='Just call tools without asking for confirmation.',
1404+
run_id=IsStr(),
14041405
),
14051406
ModelResponse(
14061407
parts=[
@@ -1431,6 +1432,7 @@ async def hitl_main_loop(prompt: str) -> AgentRunResult[str | DeferredToolReques
14311432
provider_details={'finish_reason': 'tool_calls'},
14321433
provider_response_id=IsStr(),
14331434
finish_reason='tool_call',
1435+
run_id=IsStr(),
14341436
),
14351437
ModelRequest(
14361438
parts=[
@@ -1448,6 +1450,7 @@ async def hitl_main_loop(prompt: str) -> AgentRunResult[str | DeferredToolReques
14481450
),
14491451
],
14501452
instructions='Just call tools without asking for confirmation.',
1453+
run_id=IsStr(),
14511454
),
14521455
ModelResponse(
14531456
parts=[
@@ -1469,6 +1472,7 @@ async def hitl_main_loop(prompt: str) -> AgentRunResult[str | DeferredToolReques
14691472
provider_details={'finish_reason': 'stop'},
14701473
provider_response_id=IsStr(),
14711474
finish_reason='stop',
1475+
run_id=IsStr(),
14721476
),
14731477
]
14741478
)
@@ -1528,6 +1532,7 @@ def hitl_main_loop_sync(prompt: str) -> AgentRunResult[str | DeferredToolRequest
15281532
)
15291533
],
15301534
instructions='Just call tools without asking for confirmation.',
1535+
run_id=IsStr(),
15311536
),
15321537
ModelResponse(
15331538
parts=[
@@ -1558,6 +1563,7 @@ def hitl_main_loop_sync(prompt: str) -> AgentRunResult[str | DeferredToolRequest
15581563
provider_details={'finish_reason': 'tool_calls'},
15591564
provider_response_id=IsStr(),
15601565
finish_reason='tool_call',
1566+
run_id=IsStr(),
15611567
),
15621568
ModelRequest(
15631569
parts=[
@@ -1575,6 +1581,7 @@ def hitl_main_loop_sync(prompt: str) -> AgentRunResult[str | DeferredToolRequest
15751581
),
15761582
],
15771583
instructions='Just call tools without asking for confirmation.',
1584+
run_id=IsStr(),
15781585
),
15791586
ModelResponse(
15801587
parts=[
@@ -1596,6 +1603,7 @@ def hitl_main_loop_sync(prompt: str) -> AgentRunResult[str | DeferredToolRequest
15961603
provider_details={'finish_reason': 'stop'},
15971604
provider_response_id=IsStr(),
15981605
finish_reason='stop',
1606+
run_id=IsStr(),
15991607
),
16001608
]
16011609
)
@@ -1629,7 +1637,8 @@ async def test_dbos_agent_with_model_retry(allow_model_requests: None, dbos: DBO
16291637
content='What is the weather in CDMX?',
16301638
timestamp=IsDatetime(),
16311639
)
1632-
]
1640+
],
1641+
run_id=IsStr(),
16331642
),
16341643
ModelResponse(
16351644
parts=[
@@ -1655,6 +1664,7 @@ async def test_dbos_agent_with_model_retry(allow_model_requests: None, dbos: DBO
16551664
provider_details={'finish_reason': 'tool_calls'},
16561665
provider_response_id=IsStr(),
16571666
finish_reason='tool_call',
1667+
run_id=IsStr(),
16581668
),
16591669
ModelRequest(
16601670
parts=[
@@ -1664,7 +1674,8 @@ async def test_dbos_agent_with_model_retry(allow_model_requests: None, dbos: DBO
16641674
tool_call_id=IsStr(),
16651675
timestamp=IsDatetime(),
16661676
)
1667-
]
1677+
],
1678+
run_id=IsStr(),
16681679
),
16691680
ModelResponse(
16701681
parts=[
@@ -1690,6 +1701,7 @@ async def test_dbos_agent_with_model_retry(allow_model_requests: None, dbos: DBO
16901701
provider_details={'finish_reason': 'tool_calls'},
16911702
provider_response_id=IsStr(),
16921703
finish_reason='tool_call',
1704+
run_id=IsStr(),
16931705
),
16941706
ModelRequest(
16951707
parts=[
@@ -1699,7 +1711,8 @@ async def test_dbos_agent_with_model_retry(allow_model_requests: None, dbos: DBO
16991711
tool_call_id=IsStr(),
17001712
timestamp=IsDatetime(),
17011713
)
1702-
]
1714+
],
1715+
run_id=IsStr(),
17031716
),
17041717
ModelResponse(
17051718
parts=[TextPart(content='The weather in Mexico City is currently sunny.')],
@@ -1719,6 +1732,7 @@ async def test_dbos_agent_with_model_retry(allow_model_requests: None, dbos: DBO
17191732
provider_details={'finish_reason': 'stop'},
17201733
provider_response_id=IsStr(),
17211734
finish_reason='stop',
1735+
run_id=IsStr(),
17221736
),
17231737
]
17241738
)

0 commit comments

Comments
 (0)