sotopia-lab / sotopia

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

feat: Adding Agent session to Sotopia Aact #251

Open akhatua2 opened 1 week ago

akhatua2 commented 1 week ago

📑 Description

Added a agent session to prevent agnets from running same action multiple times.

Next steps -> We can update the runtime node to handle multiple runtimes so agnets don't have to wait for results and can multi-task

✅ 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
codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 77.14286% with 8 lines in your changes missing coverage. Please review.

Project coverage is 72.89%. Comparing base (7d2ab2f) to head (113112e).

Files with missing lines Patch % Lines
sotopia/experimental/agents/base_agent.py 76.47% 8 Missing :warning:
@@            Coverage Diff             @@
##             main     #251      +/-   ##
==========================================
+ Coverage   72.88%   72.89%   +0.01%     
==========================================
  Files          58       58              
  Lines        2972     3003      +31     
==========================================
+ Hits         2166     2189      +23     
- Misses        806      814       +8     
Files with missing lines Coverage Δ
sotopia/experimental/__init__.py 100.00% <100.00%> (ø)
sotopia/experimental/agents/base_agent.py 87.32% <76.47%> (ø)