Skip to content

Add __repr__ to key classes for better debugging #3

Closed

Description

@AmitoVrito

Description

Add useful __repr__ methods to core classes so they display helpful info when printed or inspected in a debugger.

Classes to update

  • RAGPipeline — show model, number of documents, splitter type
  • FunctionCallingAgent / ReActAgent — show LLM provider, number of tools, max_iterations
  • CompiledGraph — show number of nodes, edges, entry point
  • StateGraph — show number of nodes, edges

Example

>>> rag
RAGPipeline(model='gpt-4o-mini', documents=12, splitter='RecursiveCharacterTextSplitter')

Reference

Keep it simple — one-line repr with the most useful fields.

Activity

  1. added
    enhancement
    good first issue
    on Mar 12, 2026
  2. added a commit that references this issue on Mar 12, 2026
    1bcd350
  3. AmitoVrito commented on Mar 12, 2026

    @AmitoVrito
    CollaboratorAuthor

    Thanks for your interest! I've assigned this to you. Before you start, could you give the repo a ⭐? It really helps with visibility for a new project. Looking forward to your PR!

  4. AmitoVrito commented on Mar 12, 2026

    @AmitoVrito
    CollaboratorAuthor

    Thanks for your interest! I will assign it to you. Before you start, could you give the repo a ⭐? It really helps with visibility for a new project. Looking forward to your PR!

  5. AmitoVrito commented on Mar 12, 2026

    @AmitoVrito
    CollaboratorAuthor

    Shipped in v0.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions