GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(harness): exercise ToolResponseContent.is_error in parallel-tool… · scaleapi/scale-agentex-python@a04bf5e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tests/lib/core/harness/conformance
    • test_conformance.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/lib/core/harness/conformance/test_conformance.py‎

Copy file name to clipboardExpand all lines: tests/lib/core/harness/conformance/test_conformance.py
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,10 @@
174174
# an error. It guards against the two channels agreeing with each other while
175175
# both mishandling interleaved/parallel spans or a failing tool.
176176
#
177-
# The tool error is represented the way the harness encodes it today — an
178-
# "Error: ..." string in ToolResponseContent.content (see
179-
# claude_agents/hooks/hooks.py post_tool_use_failure_hook). Once the deferred
180-
# ToolResponseContent.is_error field lands (AGX1-371), extend this fixture to
181-
# assert the error status propagates onto the closed tool span.
177+
# The failing tool sets ToolResponseContent.is_error=True (AGX1-371), which
178+
# the span deriver threads onto the closed tool span's CloseSpan.is_error.
179+
# Both channels feed the same deriver, so the recorded span signals — error
180+
# status included — must match.
182181
Fixture(
183182
name="parallel-tools-with-error",
184183
events=[
@@ -217,6 +216,7 @@
217216
tool_call_id="p-ls",
218217
name="Bash",
219218
content="Error: ls: /nope: No such file or directory",
219+
is_error=True,
220220
),
221221
),
222222
# p-read succeeds and closes second.

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.