Skip to content

bug: AgentState uses __dunder__ keys which can clash with Python internals #84

@QuantumByte-01

Description

@QuantumByte-01

Problem

AgentState TypedDict uses double-underscore keys:

"__start_number__": 1,
"__previous_text__": "",

Python reserves __dunder__ names for special methods and attributes. While this works today, it's non-standard for TypedDict and could cause unexpected behavior with introspection tools, serialization, or future Python versions.

Fix

Rename to regular keys: start_number and previous_text.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions