applied-cli 0.5.57__tar.gz → 0.5.59__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.57 → applied_cli-0.5.59}/PKG-INFO +1 -1
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/__init__.py +1 -1
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/cli.py +9 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/client.py +1 -1
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/tools.py +4 -1
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli.egg-info/PKG-INFO +1 -1
- {applied_cli-0.5.57 → applied_cli-0.5.59}/pyproject.toml +1 -1
- {applied_cli-0.5.57 → applied_cli-0.5.59}/README.md +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/agent_scoped_flows.py +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/conversation_lookup.py +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/conversations.py +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/credentials.py +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/flow_helpers.py +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/formatters.py +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli.egg-info/SOURCES.txt +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli.egg-info/dependency_links.txt +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli.egg-info/entry_points.txt +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli.egg-info/requires.txt +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli.egg-info/top_level.txt +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/setup.cfg +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/tests/test_agent_scoped_flows.py +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/tests/test_audit_tools.py +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/tests/test_benchmark_scenario_tools.py +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/tests/test_cli.py +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/tests/test_client.py +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/tests/test_conversation_tools.py +0 -0
- {applied_cli-0.5.57 → applied_cli-0.5.59}/tests/test_flow_tools.py +0 -0
|
@@ -1871,6 +1871,11 @@ def agent_update(
|
|
|
1871
1871
|
help="Escalation mode: default, email, sms, email_non_opening_hours, ticketing_integration",
|
|
1872
1872
|
),
|
|
1873
1873
|
auto_reply: bool = typer.Option(None, "--auto-reply", help="Enable auto-reply"),
|
|
1874
|
+
contact_context: str = typer.Option(
|
|
1875
|
+
None,
|
|
1876
|
+
"--contact-context",
|
|
1877
|
+
help="JSON array of contact context fields (e.g. '[\"name\", \"email\", \"order_id\"]')",
|
|
1878
|
+
),
|
|
1874
1879
|
metadata: str = typer.Option(
|
|
1875
1880
|
None, "--metadata", help="JSON metadata to set on the agent"
|
|
1876
1881
|
),
|
|
@@ -1878,6 +1883,9 @@ def agent_update(
|
|
|
1878
1883
|
) -> None:
|
|
1879
1884
|
"""Update an agent."""
|
|
1880
1885
|
metadata_dict = _parse_json_option(metadata, option_name="--metadata")
|
|
1886
|
+
contact_context_list = _parse_json_array_option(
|
|
1887
|
+
contact_context, option_name="--contact-context"
|
|
1888
|
+
)
|
|
1881
1889
|
client = get_client(shop_id=shop_id)
|
|
1882
1890
|
result = asyncio.run(
|
|
1883
1891
|
tools.agent_update(
|
|
@@ -1890,6 +1898,7 @@ def agent_update(
|
|
|
1890
1898
|
agent_type=agent_type,
|
|
1891
1899
|
escalation_mode=escalation_mode,
|
|
1892
1900
|
auto_reply=auto_reply,
|
|
1901
|
+
contact_context=contact_context_list,
|
|
1893
1902
|
metadata=metadata_dict,
|
|
1894
1903
|
)
|
|
1895
1904
|
)
|
|
@@ -5629,7 +5629,7 @@ async def knowledge_update(
|
|
|
5629
5629
|
if active is not None:
|
|
5630
5630
|
updates["active"] = active
|
|
5631
5631
|
if agent_ids is not None:
|
|
5632
|
-
updates["
|
|
5632
|
+
updates["agent_ids"] = agent_ids
|
|
5633
5633
|
if label_id is not None:
|
|
5634
5634
|
updates["label"] = label_id
|
|
5635
5635
|
if flow_id is not None:
|
|
@@ -6001,6 +6001,7 @@ async def agent_update(
|
|
|
6001
6001
|
agent_type: str | None = None,
|
|
6002
6002
|
escalation_mode: str | None = None,
|
|
6003
6003
|
auto_reply: bool | None = None,
|
|
6004
|
+
contact_context: list | None = None,
|
|
6004
6005
|
metadata: dict | None = None,
|
|
6005
6006
|
) -> str:
|
|
6006
6007
|
"""Update an agent's properties."""
|
|
@@ -6019,6 +6020,8 @@ async def agent_update(
|
|
|
6019
6020
|
updates["escalation_mode"] = escalation_mode
|
|
6020
6021
|
if auto_reply is not None:
|
|
6021
6022
|
updates["auto_reply"] = auto_reply
|
|
6023
|
+
if contact_context is not None:
|
|
6024
|
+
updates["contact_context"] = contact_context
|
|
6022
6025
|
if metadata is not None:
|
|
6023
6026
|
updates["metadata"] = metadata
|
|
6024
6027
|
|
|
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
|