applied-cli 0.5.65__tar.gz → 0.5.66__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {applied_cli-0.5.65 → applied_cli-0.5.66}/PKG-INFO +1 -1
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli/client.py +5 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli/tools.py +3 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli.egg-info/PKG-INFO +1 -1
- {applied_cli-0.5.65 → applied_cli-0.5.66}/pyproject.toml +1 -1
- {applied_cli-0.5.65 → applied_cli-0.5.66}/tests/test_benchmark_scenario_tools.py +3 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/README.md +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli/__init__.py +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli/agent_scoped_flows.py +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli/cli.py +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli/conversation_lookup.py +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli/conversations.py +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli/credentials.py +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli/flow_helpers.py +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli/formatters.py +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli.egg-info/SOURCES.txt +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli.egg-info/dependency_links.txt +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli.egg-info/entry_points.txt +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli.egg-info/requires.txt +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/applied_cli.egg-info/top_level.txt +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/setup.cfg +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/tests/test_agent_scoped_flows.py +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/tests/test_audit_tools.py +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/tests/test_cli.py +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/tests/test_client.py +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/tests/test_conversation_tools.py +0 -0
- {applied_cli-0.5.65 → applied_cli-0.5.66}/tests/test_flow_tools.py +0 -0
|
@@ -1884,6 +1884,7 @@ class AppliedClient:
|
|
|
1884
1884
|
scenario_ids: list[str] | None = None,
|
|
1885
1885
|
benchmark_id: str | None = None,
|
|
1886
1886
|
target_agent_id: str | None = None,
|
|
1887
|
+
contact_override: dict | None = None,
|
|
1887
1888
|
) -> dict:
|
|
1888
1889
|
"""Run multiple scenarios at once.
|
|
1889
1890
|
|
|
@@ -1891,6 +1892,8 @@ class AppliedClient:
|
|
|
1891
1892
|
scenario_ids: List of scenario UUIDs to run
|
|
1892
1893
|
benchmark_id: Run all scenarios in this benchmark
|
|
1893
1894
|
target_agent_id: Optional agent to run against (for A/B testing)
|
|
1895
|
+
contact_override: Optional contact override dict, e.g.
|
|
1896
|
+
{"mode": "contact", "contact_id": "<uuid>"}
|
|
1894
1897
|
"""
|
|
1895
1898
|
body: dict[str, Any] = {}
|
|
1896
1899
|
if scenario_ids:
|
|
@@ -1899,6 +1902,8 @@ class AppliedClient:
|
|
|
1899
1902
|
body["benchmark_id"] = benchmark_id
|
|
1900
1903
|
if target_agent_id:
|
|
1901
1904
|
body["target_agent_id"] = target_agent_id
|
|
1905
|
+
if contact_override:
|
|
1906
|
+
body["contact_override"] = contact_override
|
|
1902
1907
|
return await self._request("POST", "/v1/scenario-runs/bulk-run/", body=body)
|
|
1903
1908
|
|
|
1904
1909
|
async def get_scenario_bulk_run_status(self, job_id: str) -> dict:
|
|
@@ -4938,6 +4938,7 @@ async def scenario_bulk_run(
|
|
|
4938
4938
|
scenario_ids: list[str] | None = None,
|
|
4939
4939
|
benchmark_id: str | None = None,
|
|
4940
4940
|
target_agent_id: str | None = None,
|
|
4941
|
+
contact_override: dict | None = None,
|
|
4941
4942
|
output_format: str = "text",
|
|
4942
4943
|
) -> str:
|
|
4943
4944
|
"""
|
|
@@ -4948,6 +4949,7 @@ async def scenario_bulk_run(
|
|
|
4948
4949
|
scenario_ids: List of scenario UUIDs to run
|
|
4949
4950
|
benchmark_id: Run all scenarios in this benchmark
|
|
4950
4951
|
target_agent_id: Optional agent to run against (for A/B testing)
|
|
4952
|
+
contact_override: Optional contact override, e.g. {"mode": "contact", "contact_id": "<uuid>"}
|
|
4951
4953
|
|
|
4952
4954
|
Returns:
|
|
4953
4955
|
Summary of runs created
|
|
@@ -4975,6 +4977,7 @@ async def scenario_bulk_run(
|
|
|
4975
4977
|
result = await client.bulk_run_scenarios(
|
|
4976
4978
|
scenario_ids=resolved_scenario_ids,
|
|
4977
4979
|
target_agent_id=target_agent_id,
|
|
4980
|
+
contact_override=contact_override,
|
|
4978
4981
|
)
|
|
4979
4982
|
except AppliedAPIError as e:
|
|
4980
4983
|
return _format_error(e)
|
|
@@ -231,11 +231,13 @@ class FakeScenarioClient:
|
|
|
231
231
|
scenario_ids=None,
|
|
232
232
|
benchmark_id=None,
|
|
233
233
|
target_agent_id=None,
|
|
234
|
+
contact_override=None,
|
|
234
235
|
):
|
|
235
236
|
self.bulk_run_kwargs = {
|
|
236
237
|
"scenario_ids": scenario_ids,
|
|
237
238
|
"benchmark_id": benchmark_id,
|
|
238
239
|
"target_agent_id": target_agent_id,
|
|
240
|
+
"contact_override": contact_override,
|
|
239
241
|
}
|
|
240
242
|
return {
|
|
241
243
|
"job_id": "job-1",
|
|
@@ -351,6 +353,7 @@ async def test_scenario_bulk_run_resolves_ids_from_benchmark():
|
|
|
351
353
|
"scenario_ids": ["scenario-1"],
|
|
352
354
|
"benchmark_id": None,
|
|
353
355
|
"target_agent_id": "agent-2",
|
|
356
|
+
"contact_override": None,
|
|
354
357
|
}
|
|
355
358
|
assert payload["benchmark_id"] == "bench-1"
|
|
356
359
|
assert payload["scenario_run_ids"] == ["scenario-run-1"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|