Skip to main content

Use Your Model or Agent

An agent turns MAGMA's instructions, tool descriptions, task attributes, and memory into a response or tool calls. Its package owns prompt construction, model access, decision making, and memory updates. MAGMA-GEN executes the proposed actions and evaluates their effects.

Do I need to create a package?

Your goalStart with
Run one compatible LLM with the full interaction historyUse full-history-agent
Change the prompt while retaining the provided decision and memory logicAdapt the chat template
Use a different model API, output parser, or inference engineCreate an agent package, then replace its decision function
Add custom memory, planning, routing, or several modelsCreate an agent package, then manage memory and components

Start with full-history to obtain a first result. You do not need to implement coaching or dataset export to run inference. A model must support the selected adapter's input and output conventions; a template alone cannot make every checkpoint compatible.

One package represents the whole agent, even if it contains several models. The number of internal models is independent of the number of robots controlled or environments processed in parallel. The provided history-summarized implementation is a worked example of multi-model design in the advanced memory guide.

Follow the integration path

  1. Run your model and check a response and a tool call.
  2. Connect it to GEN and inspect an action in simulation.
  3. Export the run using the full-history exporter.

If the provided adapter does not fit your model, adapt its prompt or create your own agent package, then return to the connection guide. Custom memory, coaching, and export are separate extensions.

Keep the responsibilities clear

A scenario defines the world, tools, instructions, and success conditions. An agent chooses how to solve those instructions. The motion planner executes physical trajectories; a coaching backend supplies assistance when requested. They are separate integrations.

Read packages and services for deployment, coaching concepts for the correction lifecycle, and the agent HTTP reference for exact fields.