From fcec8eef888c981143f443906419a4afa7bdbd60 Mon Sep 17 00:00:00 2001 From: Haocong Wang <75206183+Ryan-Nightwish@users.noreply.github.com> Date: Mon, 8 Jun 2026 15:58:49 +0800 Subject: [PATCH 1/2] [docs] Fix workflow agent quickstart code snippet and comment Co-Authored-By: Claude Opus 4.6 (1M context) --- docs/content/docs/get-started/quickstart/workflow_agent.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/content/docs/get-started/quickstart/workflow_agent.md b/docs/content/docs/get-started/quickstart/workflow_agent.md index 549bc041f..b353d64bf 100644 --- a/docs/content/docs/get-started/quickstart/workflow_agent.md +++ b/docs/content/docs/get-started/quickstart/workflow_agent.md @@ -48,8 +48,7 @@ Create the agents execution environment, and register the available chat model c env = StreamExecutionEnvironment.get_execution_environment() agents_env = AgentsExecutionEnvironment.get_execution_environment(env) -# Add Ollama chat model connection to be used by the ReviewAnalysisAgent -# and ProductSuggestionAgent. +# Add Ollama chat model connection to be used by the ReviewAnalysisAgent. agents_env.add_resource( "ollama_server", ResourceType.CHAT_MODEL_CONNECTION, @@ -132,8 +131,7 @@ class ReviewAnalysisAgent(Agent): @staticmethod def process_input(event: Event, ctx: RunnerContext) -> None: """Process input event and send chat request for review analysis.""" - input_event = InputEvent.from_event(event) - input: ProductReview = input_event.input + input = ProductReview.model_validate(InputEvent.from_event(event).input) ctx.short_term_memory.set("id", input.id) content = f""" From 6abd83320db23ab0fbdc444c9af4104a04215009 Mon Sep 17 00:00:00 2001 From: Haocong Wang <75206183+Ryan-Nightwish@users.noreply.github.com> Date: Mon, 8 Jun 2026 16:55:42 +0800 Subject: [PATCH 2/2] =?UTF-8?q?[docs]=20Restore=20ProductSuggestionAgent?= =?UTF-8?q?=20comment=20=E2=80=94=20used=20by=20the=20multi-agent=20exampl?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- docs/content/docs/get-started/quickstart/workflow_agent.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/content/docs/get-started/quickstart/workflow_agent.md b/docs/content/docs/get-started/quickstart/workflow_agent.md index b353d64bf..23855dc98 100644 --- a/docs/content/docs/get-started/quickstart/workflow_agent.md +++ b/docs/content/docs/get-started/quickstart/workflow_agent.md @@ -48,7 +48,8 @@ Create the agents execution environment, and register the available chat model c env = StreamExecutionEnvironment.get_execution_environment() agents_env = AgentsExecutionEnvironment.get_execution_environment(env) -# Add Ollama chat model connection to be used by the ReviewAnalysisAgent. +# Add Ollama chat model connection to be used by the ReviewAnalysisAgent +# and ProductSuggestionAgent. agents_env.add_resource( "ollama_server", ResourceType.CHAT_MODEL_CONNECTION,