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.
Files changed (27) hide show
  1. {applied_cli-0.5.57 → applied_cli-0.5.59}/PKG-INFO +1 -1
  2. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/__init__.py +1 -1
  3. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/cli.py +9 -0
  4. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/client.py +1 -1
  5. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/tools.py +4 -1
  6. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli.egg-info/PKG-INFO +1 -1
  7. {applied_cli-0.5.57 → applied_cli-0.5.59}/pyproject.toml +1 -1
  8. {applied_cli-0.5.57 → applied_cli-0.5.59}/README.md +0 -0
  9. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/agent_scoped_flows.py +0 -0
  10. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/conversation_lookup.py +0 -0
  11. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/conversations.py +0 -0
  12. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/credentials.py +0 -0
  13. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/flow_helpers.py +0 -0
  14. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli/formatters.py +0 -0
  15. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli.egg-info/SOURCES.txt +0 -0
  16. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli.egg-info/dependency_links.txt +0 -0
  17. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli.egg-info/entry_points.txt +0 -0
  18. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli.egg-info/requires.txt +0 -0
  19. {applied_cli-0.5.57 → applied_cli-0.5.59}/applied_cli.egg-info/top_level.txt +0 -0
  20. {applied_cli-0.5.57 → applied_cli-0.5.59}/setup.cfg +0 -0
  21. {applied_cli-0.5.57 → applied_cli-0.5.59}/tests/test_agent_scoped_flows.py +0 -0
  22. {applied_cli-0.5.57 → applied_cli-0.5.59}/tests/test_audit_tools.py +0 -0
  23. {applied_cli-0.5.57 → applied_cli-0.5.59}/tests/test_benchmark_scenario_tools.py +0 -0
  24. {applied_cli-0.5.57 → applied_cli-0.5.59}/tests/test_cli.py +0 -0
  25. {applied_cli-0.5.57 → applied_cli-0.5.59}/tests/test_client.py +0 -0
  26. {applied_cli-0.5.57 → applied_cli-0.5.59}/tests/test_conversation_tools.py +0 -0
  27. {applied_cli-0.5.57 → applied_cli-0.5.59}/tests/test_flow_tools.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: applied-cli
3
- Version: 0.5.57
3
+ Version: 0.5.59
4
4
  Summary: CLI and shared client library for Applied Labs AI support agents
5
5
  Author: Applied Labs
6
6
  License-Expression: MIT
@@ -4,6 +4,6 @@ from applied_cli import tools
4
4
  from applied_cli.client import AppliedClient
5
5
  from applied_cli.formatters import to_csv, to_json
6
6
 
7
- __version__ = "0.5.57"
7
+ __version__ = "0.5.59"
8
8
 
9
9
  __all__ = ["AppliedClient", "tools", "to_csv", "to_json", "__version__"]
@@ -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
  )
@@ -2171,7 +2171,7 @@ class AppliedClient:
2171
2171
  if guardrail:
2172
2172
  body["guardrail"] = guardrail
2173
2173
  if agent_ids:
2174
- body["agents"] = agent_ids
2174
+ body["agent_ids"] = agent_ids
2175
2175
  if label_id:
2176
2176
  body["label"] = label_id
2177
2177
  if flow_id:
@@ -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["agents"] = agent_ids
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: applied-cli
3
- Version: 0.5.57
3
+ Version: 0.5.59
4
4
  Summary: CLI and shared client library for Applied Labs AI support agents
5
5
  Author: Applied Labs
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "applied-cli"
3
- version = "0.5.57"
3
+ version = "0.5.59"
4
4
  description = "CLI and shared client library for Applied Labs AI support agents"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
File without changes
File without changes