Connecting to Agent System Runtime and Plotting Results of Agent System Operations
Step 1: Understanding agent_inference.py
agent_inference.pyStep 2: Connecting to the Runtime and Loading the Agent System
async def run_agent():
# Start Runtime
trainer = Trainer(config)
# Load the pre-trained agent
agent = Agent.load(PATH_CHECKPOINTS)
# Prepare the agent for inference
trained_agent = await trainer._package(agent)Step 3: Connecting to the Simulation Environment
Step 4: Setting the Scenario and Running Inference
Step 5: Saving Data and Plotting Results
Step 6: Running the Script
Conclusion
Last updated