Skip to content

Python: Standardize __repr__ implementations across event classes #3547

@moonbox3

Description

@moonbox3

Summary

Inconsistent __repr__ implementations across event classes should be standardized.

Files

File Line
_events.py 392

Context

class AgentRunEvent(ExecutorEvent):
    # TODO: make this the same
    def __repr__(self) -> str:
        return f"{self.__class__.__name__}(executor_id={self.executor_id}, data={self.data})"

Compare with AgentRunUpdateEvent which uses messages={self.data} - should be consistent.

Action Items

  • Standardize __repr__ implementations across all event classes

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent orchestrationIssues related to agent orchestrationpythonworkflowsRelated to Workflows in agent-framework

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions