Skip to content

Refactor Agent and AgentState into a single AgentInfo type #377

Closed
@bhouston

Description

@bhouston

Currently, AgentTracker has both an Agent type and an AgentState type which contain duplicative information. This creates unnecessary complexity and potential for inconsistency.

Proposed Changes

  • Merge Agent and AgentState into a single AgentInfo type
  • Update all references to these types throughout the codebase
  • Ensure backward compatibility where possible
  • Update the AgentTracker class to use the new unified type

Implementation Details

  • Create a new AgentInfo interface that combines all fields from both types
  • Refactor the AgentTracker class to use a single Map for storing agent data
  • Update all methods that currently use either type
  • Update all imports in other files to use the new type

Benefits

  • Simplified data model
  • Reduced potential for inconsistency between the two data structures
  • Cleaner code and easier maintenance

Metadata

Metadata

Assignees

No one assigned

    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