write-swarm-client
Introduction:
Your task is to create a trainable Agent (or Agent Loop, multi-agent system, etc.) based on the requirements, and provide it to the user for reinforcement learning training. Under the AgentJet reinforcement learning framework, this is very simple.
First, give the agent system a name based on the user's requirements, always place your code at ``tutorial/opencode_build_*, for example opencode_build_math_agent`.
Next, create the directory:
tutorial/opencode_build_math_agent
Then, create the Agent source files:
tutorial/opencode_build_math_agent/agent_roll.py(Usetutorial/example_academic_trans_swarm/trans_roll.pyas a template. There aren't many changes — the key is to ask the user for the necessary parameters.)tutorial/opencode_build_math_agent/agent_run.py(Create the function or class to run the agent based on the user's requirements. Synchronous or asynchronous are both fine.)tutorial/opencode_build_math_agent/readme.md(Agent description, along with training and debugging instructions.)
How to Write the Agent
Write the agent using the OpenAI SDK. It mainly includes the following three functions (along with any necessary sub-functions and sub-modules):
More from modelscope/agentjet
openjudge
>
2train-complex-blackbox
Create a trainable agent loop or agent workflow with AgentJet
2write-passive-swarm-client
Create a passive swarm client that waits for user input instead of iterating through a dataset by itself.
2map-verl-config
map verl config to agentjet config
1monitor-with-tmux
Monitor training progress by reading tmux content with exponential backoff intervals (30s, 1min, 2min, 4min, 8min, 16min), analyze logs when anomalies occur, and provide fix suggestions
1install-agentjet-client
Install agentjet swarm server with uv package manager
1