Open
Conversation
Contributor
Docs Preview
|
… managers Consolidate baggage, concurrency, graph iteration, and toolset context managers into a single AsyncExitStack, reducing nesting depth and ensuring baggage is properly scoped to the agent run lifetime. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
| retries: int = 0 | ||
| run_step: int = 0 | ||
| run_id: str = dataclasses.field(default_factory=lambda: str(uuid.uuid4())) | ||
| run_id: str = dataclasses.field(default_factory=lambda: ulid_as_uuid(Random(), lambda: time.time_ns() // 1_000_000)) |
Contributor
There was a problem hiding this comment.
🚩 run_id format change: UUID4 with dashes → ULID hex without dashes
The run_id field changed from str(uuid.uuid4()) (36-char hyphenated UUID like 550e8400-e29b-41d4-a716-446655440000) to ulid_as_uuid(...) (32-char plain hex like 0192a7b3c4d5e6f7a8b9c0d1e2f3a4b5). This is an intentional change, but it alters the format of GraphAgentState.run_id which is a public field. Any downstream code (user code, observability tooling, databases) that parses or validates run_id as a UUID with dashes would break. This is likely acceptable since run_id is typed as str with no documented format, but worth noting as a behavioral change.
Was this helpful? React with 👍 or 👎 to provide feedback.
Use IsStr() matcher for non-deterministic ULID-based conversation IDs in span attribute snapshots. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.