sotopia-lab / sotopia

Sotopia: an Open-ended Social Learning Environment (ICLR 2024 spotlight)
https://docs.sotopia.world
MIT License
168 stars 21 forks source link

feat: Adding Chat print node for pretty printing chat conversation between agents #250

Closed akhatua2 closed 1 week ago

akhatua2 commented 2 weeks ago

📑 Description

Added a pretty printer for agent agent using rich.

✅ Checks

ℹ Additional Information

Update the goals in the llm_agent.toml file. Then to run this:

uv run aact run-dataflow examples/experimental/llm_agent/llm_agent.toml
Before (Print Node) After (Chat Print Node)
Screenshot 2024-11-12 at 7 00 34 PM Screenshot 2024-11-12 at 7 01 48 PM
codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 72.88%. Comparing base (7d2ab2f) to head (9c62b90). Report is 18 commits behind head on main.

@@           Coverage Diff           @@
##             main     #250   +/-   ##
=======================================
  Coverage   72.88%   72.88%           
=======================================
  Files          58       58           
  Lines        2972     2972           
=======================================
  Hits         2166     2166           
  Misses        806      806           
Files with missing lines Coverage Δ
sotopia/experimental/__init__.py 100.00% <100.00%> (ø)
sotopia/experimental/agents/base_agent.py 97.50% <100.00%> (ø)