Skip to content

How Maitento works

Maitento runs AI agents for you. You describe what should happen in small text files, deploy them, and then start runs from your own code. Maitento does the rest: it calls the models, runs the tools, keeps the conversation, remembers, retries, and tells you when a run is done.

There are only a handful of ideas to learn.

Everything in Maitento is either a definition or a run.

  • A definition describes something: an agent, an interaction, a tool, an app. You write definitions as files and deploy them. Every deploy that changes a definition creates a new, numbered version.
  • A run (Maitento also calls it a process) is one execution of a definition. You start a run by name, it gets an id, and it moves through statuses such as Running and Finished.

Definitions are files you write and deploy, such as an agent, an interaction, an app, a capsule or a code pipeline, and each deploy that changes one adds a version. You start one by name, which makes a run: it has an id, moves from Running to Finished, and ends with an output.

You want to…UseRead
Give a model a role and instructionsan agentAgents
Put agents to work on a taskan interactionInteractions
Get JSON back instead of prosea response schemaStructured output
Let an agent call an API, including yoursa toolTools
Let an agent search and read the webweb toolsWeb tools
Answer from your own documentsa knowledge baseKnowledge
Give agents and sandboxes filesa virtual file systemFile systems
Have several agents work togetherteamsTeams of agents
Let an agent remember people across runsmemoryMemory
Write logic around your agentsan appApps
Run code in a throwaway Linux machinea capsuleCapsules
Run coding agents on a git repoa code pipelineCode pipelines
Start things on a schedulean automationAutomations

The tutorials introduce these one at a time, and tutorial 23, Support desk puts most of them together in one small web app.

Definitions live in a namespace, a named folder for one project. A namespace is created the first time you deploy to it. Names only need to be unique within a namespace, so two projects can both have an agent called assistant.

Your organisation is a tenant. Everyone in it signs in to the portal and can create API keys for code. Maitento runs agents on your own account with the model provider: you add a model key once, and every run uses it. To run different work on different accounts, such as each of your customers on their own key, use credentials and credential stacks.

There are four ways in, and they all do the same things:

  • The portal, a web console where you write, deploy and watch everything.
  • The SDKs for TypeScript, Python and C#.
  • The mt command line.
  • The REST API, if your language has no SDK. Every API page shows the curl command.

Runs take seconds to minutes. You can wait for one in three ways, described in Runs and events:

  • the SDKs’ run() helpers, which start a run and wait for it;
  • live events over a WebSocket, including the model’s reply as it streams;
  • webhooks, where Maitento calls your server when a run changes.