Skip to content

Commit 6ae2481

Browse files
committed
update
1 parent 384e82c commit 6ae2481

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/experimental/tasks/server/test_run_task_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ async def handle_call_tool(name: str, arguments: dict[str, Any]) -> CallToolResu
7878
ctx.experimental.validate_task_mode(TASK_REQUIRED)
7979

8080
# Capture the meta from the request (if present)
81-
if ctx.meta is not None and ctx.meta.get("model_extra"): # pragma: no branch
82-
received_meta[0] = ctx.meta["model_extra"].get("custom_field")
81+
if ctx.meta is not None: # pragma: no branch
82+
received_meta[0] = ctx.meta.get("custom_field")
8383

8484
async def work(task: ServerTaskContext) -> CallToolResult:
8585
await task.update_status("Working...")

0 commit comments

Comments
 (0)