forked from agentos-project/agentos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request agentos-project#356 from andyk/run_table_in_webapp
Run table in webapp
- Loading branch information
Showing
21 changed files
with
324 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from pcs import Component | ||
from pcs.registry import WebRegistry | ||
|
||
random_agent = Component.from_registry_file( | ||
"example_agents/sb3_agent/components.yaml", "sb3_agent" | ||
).to_versioned_component() | ||
run = random_agent.run_with_arg_set("evaluate", {}) | ||
wr = WebRegistry("http://localhost:8000/api/v1") | ||
|
||
# You can publish the ComponentRun to locally running WebRegistry server | ||
# via the following command: | ||
# run.to_registry(wr) | ||
|
||
# OR, update and uncomment the code below to publish the AgentRun itself. | ||
# Look at the output printed by the call to `run_with_arg_set()` above, | ||
# and copy the ID of the AgentRun from the line that looks similar to this: | ||
# "Results for AgentRun 85ad300d7d86461c938444063de68343" | ||
# from agentos import AgentRun | ||
# agent_run_id = XXXXXXXXXXXXXXXXXXXXXXX | ||
# from pcs.registry import WebRegistry | ||
# sb3_agent_run = AgentRun.from_existing_run_id(agent_run_id) | ||
# wr = WebRegistry("http://localhost:8000/api/v1") | ||
# sb3_agent_run.to_registry(wr) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.