Skip to content

Commit ce67da1

Browse files
committed
fix(dojo): re-enable hitl test for pydantic-ai
Signed-off-by: Tyler Slaton <[email protected]>
1 parent 73de12c commit ce67da1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

typescript-sdk/apps/dojo/e2e/tests/pydanticAITests/humanInTheLoopPage.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { test, expect, waitForAIResponse, retryOnAIFailure } from "../../test-is
22
import { HumanInLoopPage } from "../../pages/pydanticAIPages/HumanInLoopPage";
33

44
test.describe("Human in the Loop Feature", () => {
5-
test.fixme("[PydanticAI] should interact with the chat and perform steps", async ({
5+
test("[PydanticAI] should interact with the chat and perform steps", async ({
66
page,
77
}) => {
88
await retryOnAIFailure(async () => {

typescript-sdk/apps/dojo/src/files.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
},
9999
{
100100
"name": "human_in_the_loop.py",
101-
"content": "\"\"\"Human in the Loop Feature.\n\nNo special handling is required for this feature.\n\"\"\"\n\nfrom __future__ import annotations\n\nfrom textwrap import dedent\n\nfrom pydantic_ai import Agent\n\nagent = Agent(\n 'openai:gpt-4o-mini',\n instructions=dedent(\n \"\"\"\n When planning tasks use tools only, without any other messages.\n IMPORTANT:\n - Use the `generate_task_steps` tool to display the suggested steps to the user\n - Never repeat the plan, or send a message detailing steps\n - If accepted, confirm the creation of the plan and the number of selected (enabled) steps only\n - If not accepted, ask the user for more information, DO NOT use the `generate_task_steps` tool again\n \"\"\"\n ),\n)\n\napp = agent.to_ag_ui()\n",
101+
"content": "\"\"\"Human in the Loop Feature.\n\nNo special handling is required for this feature.\n\"\"\"\n\nfrom __future__ import annotations\n\nfrom textwrap import dedent\n\nfrom pydantic_ai import Agent\n\nagent = Agent(\n 'openai:gpt-4o-mini',\n instructions=dedent(\n \"\"\"\n When planning tasks use tools only, without any other messages.\n IMPORTANT:\n - Use the `generate_task_steps` tool to display the suggested steps to the user\n - Do not call the `generate_task_steps` twice in a row, ever.\n - Never repeat the plan, or send a message detailing steps\n - If accepted, confirm the creation of the plan and the number of selected (enabled) steps only\n - If not accepted, ask the user for more information, DO NOT use the `generate_task_steps` tool again\n \"\"\"\n ),\n)\n\napp = agent.to_ag_ui()\n",
102102
"language": "python",
103103
"type": "file"
104104
}

typescript-sdk/integrations/pydantic-ai/examples/server/api/human_in_the_loop.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
When planning tasks use tools only, without any other messages.
1717
IMPORTANT:
1818
- Use the `generate_task_steps` tool to display the suggested steps to the user
19+
- Do not call the `generate_task_steps` twice in a row, ever.
1920
- Never repeat the plan, or send a message detailing steps
2021
- If accepted, confirm the creation of the plan and the number of selected (enabled) steps only
2122
- If not accepted, ask the user for more information, DO NOT use the `generate_task_steps` tool again

0 commit comments

Comments
 (0)