Optional EvalPort adapter for AgentMessage trajectories (portable eval-result interchange)

Đang mở
#375 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
ai

Hướng nghiên cứu

Start by reading lagent/schema.py, lagent/agents/agent.py, and the react.py and fc_agent.py agents to understand the trajectory and action objects they produce. Review EvalPort's SPEC.md, then clarify whether the adapter belongs under lagent/eval/ or in EvalPort's adapters; done would mean an agreed optional conversion and import scope without required core dependencies.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I've been reading lagent/schema.py — AgentMessage (content, sender, receiver, tool_calls, tool_calls_ids, formatted, extra_info, stream_state, finish_reason) and ActionReturn (args, result, state: ActionStatusCode, valid: ActionValidCode) — plus lagent/agents/agent.py and the react.py/fc_agent.py agents that produce sequences of these as a run unfolds.

I maintain EvalPort, a JSON-Schema-based interchange spec (TestCase/Suite/Grader/Result/ResultSet) for moving eval data between frameworks instead of it being locked to one tool's format. It's early-stage (~35 shipped adapters, no notable star count — being upfront about that).

The AgentMessage trajectory a lagent agent run produces — the sequence of sender/receiver/content/tool_calls, terminating in a message with finish_reason — maps reasonably well onto an EvalPort Result's transcript, and ActionReturn.state/valid give a natural signal for a GraderResult. What lagent doesn't have today is any way to get that trajectory into a form another framework's eval/scoring tooling (or a benchmark harness someone's already built for a different agent framework) can consume, or to run a suite of tasks defined in a portable format against a lagent agent.

I'd propose a standalone, optional adapter — converting a run's list of AgentMessages (plus ActionReturns for any tool calls) to an EvalPort Result/ResultSet, with an importer so an EvalPort Suite of tasks can drive lagent.agents agents. No required dependency, no change to lagent's core message/action classes.

Happy to build this either as a PR into lagent (e.g. under a new lagent/eval/ or as an example), or as a standalone package in EvalPort's own adapters/ directory with zero footprint on this repo — whichever fits better. Let me know if there's interest. Spec: https://github.com/adhabnr-ux/evalport/blob/main/SPEC.md

— Sahi, independent contributor (not affiliated with lagent/InternLM)

Ngôn ngữ chính
Python
Star
2.3k
Fork
249
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của InternLM/lagent

Tất cả issue của InternLM/lagent

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.