applied-cli 0.5.56__tar.gz → 0.5.57__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.56 → applied_cli-0.5.57}/PKG-INFO +1 -1
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli/__init__.py +1 -1
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli/cli.py +12 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli/tools.py +12 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli.egg-info/PKG-INFO +1 -1
- {applied_cli-0.5.56 → applied_cli-0.5.57}/pyproject.toml +1 -1
- {applied_cli-0.5.56 → applied_cli-0.5.57}/README.md +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli/agent_scoped_flows.py +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli/client.py +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli/conversation_lookup.py +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli/conversations.py +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli/credentials.py +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli/flow_helpers.py +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli/formatters.py +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli.egg-info/SOURCES.txt +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli.egg-info/dependency_links.txt +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli.egg-info/entry_points.txt +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli.egg-info/requires.txt +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/applied_cli.egg-info/top_level.txt +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/setup.cfg +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/tests/test_agent_scoped_flows.py +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/tests/test_audit_tools.py +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/tests/test_benchmark_scenario_tools.py +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/tests/test_cli.py +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/tests/test_client.py +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/tests/test_conversation_tools.py +0 -0
- {applied_cli-0.5.56 → applied_cli-0.5.57}/tests/test_flow_tools.py +0 -0
|
@@ -1938,9 +1938,18 @@ def knowledge_update(
|
|
|
1938
1938
|
answer: str = typer.Option(None, "--answer", "-a", help="Response text / answer"),
|
|
1939
1939
|
guardrail: str = typer.Option(None, "--guardrail", help="Guardrail instructions"),
|
|
1940
1940
|
active: bool = typer.Option(None, "--active/--inactive", help="Whether the item is active"),
|
|
1941
|
+
agent_ids: str = typer.Option(
|
|
1942
|
+
None, "--agent-ids", help="Comma-separated agent UUIDs (empty string = shop-wide)"
|
|
1943
|
+
),
|
|
1944
|
+
label_id: str = typer.Option(None, "--label-id", help="Topic label UUID"),
|
|
1945
|
+
flow_id: str = typer.Option(None, "--flow-id", help="Flow UUID to associate with"),
|
|
1941
1946
|
shop_id: str = typer.Option(None, "--shop-id", help="Override shop ID"),
|
|
1942
1947
|
) -> None:
|
|
1943
1948
|
"""Update a knowledge base item."""
|
|
1949
|
+
parsed_agent_ids = _parse_csv_option(agent_ids) if agent_ids is not None else None
|
|
1950
|
+
# Allow --agent-ids "" to clear scoping (set to shop-wide)
|
|
1951
|
+
if agent_ids is not None and parsed_agent_ids is None:
|
|
1952
|
+
parsed_agent_ids = []
|
|
1944
1953
|
client = get_client(shop_id=shop_id)
|
|
1945
1954
|
result = asyncio.run(
|
|
1946
1955
|
tools.knowledge_update(
|
|
@@ -1950,6 +1959,9 @@ def knowledge_update(
|
|
|
1950
1959
|
answer=answer,
|
|
1951
1960
|
guardrail=guardrail,
|
|
1952
1961
|
active=active,
|
|
1962
|
+
agent_ids=parsed_agent_ids,
|
|
1963
|
+
label_id=label_id,
|
|
1964
|
+
flow_id=flow_id,
|
|
1953
1965
|
)
|
|
1954
1966
|
)
|
|
1955
1967
|
typer.echo(result)
|
|
@@ -5598,6 +5598,9 @@ async def knowledge_update(
|
|
|
5598
5598
|
answer: str | None = None,
|
|
5599
5599
|
guardrail: str | None = None,
|
|
5600
5600
|
active: bool | None = None,
|
|
5601
|
+
agent_ids: list[str] | None = None,
|
|
5602
|
+
label_id: str | None = None,
|
|
5603
|
+
flow_id: str | None = None,
|
|
5601
5604
|
) -> str:
|
|
5602
5605
|
"""
|
|
5603
5606
|
Update a knowledge base item.
|
|
@@ -5609,6 +5612,9 @@ async def knowledge_update(
|
|
|
5609
5612
|
answer: New answer/response text
|
|
5610
5613
|
guardrail: New guardrail instructions
|
|
5611
5614
|
active: Enable/disable the item
|
|
5615
|
+
agent_ids: List of agent UUIDs to scope to (empty list = shop-wide)
|
|
5616
|
+
label_id: Topic label UUID
|
|
5617
|
+
flow_id: Flow UUID to associate with
|
|
5612
5618
|
|
|
5613
5619
|
Returns:
|
|
5614
5620
|
Updated knowledge item
|
|
@@ -5622,6 +5628,12 @@ async def knowledge_update(
|
|
|
5622
5628
|
updates["guardrail"] = guardrail
|
|
5623
5629
|
if active is not None:
|
|
5624
5630
|
updates["active"] = active
|
|
5631
|
+
if agent_ids is not None:
|
|
5632
|
+
updates["agents"] = agent_ids
|
|
5633
|
+
if label_id is not None:
|
|
5634
|
+
updates["label"] = label_id
|
|
5635
|
+
if flow_id is not None:
|
|
5636
|
+
updates["flow"] = flow_id
|
|
5625
5637
|
|
|
5626
5638
|
try:
|
|
5627
5639
|
item = await client.update_response(knowledge_id, **updates)
|
|
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
|