Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(arbiter-engine): Run method for agents and messager echo example #746

Merged
merged 7 commits into from
Dec 13, 2023

Conversation

Autoparallel
Copy link
Collaborator

Give an overview of the tasks completed
This PR adds the ability to have a world ran via World::run(). To show how this works, see arbiter_engine::examples::tests, specifically the base_simulation() function. This will run a simulation that loads an agent's engine with a messager as both a collector and executor which allows for this agent to receive external stimulus and communicate within this layer (potentially to other agents). Externally, "Start" is sent to the agent which kicks off a loop where the agent repeatedly echoes "Hello, world!" every second. This does not exit gracefully yet, use ctrl + c. It is a POC.

Link to issue(s) that this PR closes
Closes #745

@Autoparallel Autoparallel force-pushed the arbiter-engine/run-agents branch from 6b1f5f9 to 8909502 Compare December 13, 2023 22:12
@0xJepsen 0xJepsen self-requested a review December 13, 2023 22:58
0xJepsen
0xJepsen previously approved these changes Dec 13, 2023
Copy link
Collaborator

@0xJepsen 0xJepsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really nice

Copy link

codecov bot commented Dec 13, 2023

Codecov Report

Attention: 215 lines in your changes are missing coverage. Please review.

Comparison is base (eb5a7f8) 11.52% compared to head (6015ac2) 52.63%.
Report is 23 commits behind head on main.

Files Patch % Lines
arbiter-engine/src/examples.rs 0.00% 90 Missing ⚠️
arbiter-engine/src/agent.rs 0.00% 58 Missing ⚠️
arbiter-engine/src/world.rs 0.00% 47 Missing ⚠️
arbiter-engine/src/messager.rs 0.00% 18 Missing ⚠️
arbiter-core/src/middleware/mod.rs 86.66% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #746       +/-   ##
===========================================
+ Coverage   11.52%   52.63%   +41.10%     
===========================================
  Files          32       36        +4     
  Lines        7047     7277      +230     
===========================================
+ Hits          812     3830     +3018     
+ Misses       6235     3447     -2788     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@0xJepsen 0xJepsen merged commit 83a8123 into main Dec 13, 2023
11 checks passed
@0xJepsen 0xJepsen deleted the arbiter-engine/run-agents branch December 13, 2023 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(arbiter-engine): create Agent::run() and an example
2 participants