Python: Fix AI Search Tool Sample and improve AI Search Exceptions (#1206)

* Python: Fix AI Search Tool Sample and improve AI Search Exceptions

* Python: Fix AI Search Tool Test

---------

Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
This commit is contained in:
Hassan Warsi
2025-10-10 11:46:57 -07:00
committed by GitHub
Unverified
parent e032fe3993
commit 350cdfc1cd
9 changed files with 33 additions and 20 deletions
@@ -65,6 +65,7 @@ class CommonEvents(Enum):
EXIT_REQUESTED = "ExitRequested"
START_PROCESS = "StartProcess"
######################################################################
# region Semantic Kernel Process Framework path
######################################################################
@@ -153,6 +154,7 @@ async def run_semantic_kernel_process_example() -> None:
assert c_step_state.state.current_cycle == 3 # nosec
print(f"Final State Check: CStepState current cycle: {c_step_state.state.current_cycle}")
######################################################################
# region Agent Framework workflow path
######################################################################
@@ -50,6 +50,7 @@ class ProcessEvents(Enum):
OUTPUT_READY_PUBLIC = "OutputReadyPublic"
OUTPUT_READY_INTERNAL = "OutputReadyInternal"
######################################################################
# region Semantic Kernel nested process path
######################################################################
@@ -152,6 +153,7 @@ async def run_semantic_kernel_nested_process() -> None:
raise RuntimeError("RepeatStep state missing")
assert repeat_state.state.last_message == "Test Test Test Test" # nosec
######################################################################
# region Agent Framework nested workflow path
######################################################################
@@ -260,6 +262,7 @@ async def run_agent_framework_nested_workflow(initial_message: str) -> Sequence[
return results
######################################################################
# endregion
######################################################################