Skip to Content
The Ngamia platform API is in preview. Endpoints may change before general availability.
ConceptsAgents

Agents

An agent is a definition stored in your workspace. Running it combines the definition with the run’s input, the conversation so far, and whatever the agent is allowed to use.

FieldMeaning
slugURL name, unique in the workspace: 3–64 characters of a-z, 0-9 and -, starting with a letter. Cannot change.
display_name, descriptionFor people.
instructionsThe system instructions (up to 32,000 characters).
modelModel at the Ngamia model gateway. Defaults to the workspace’s default_model, then the platform default.
knowledgeGives the agent the knowledge_search tool over this workspace’s knowledge. Answers then cite sources.
toolsBusiness tools by exact tool_id@version (up to 32). Only tools the platform operator has enabled are offered.
memoryRemembers facts about each end user across runs, when the memory engine is enabled.
max_stepsModel calls per run, 1–64 (default 8).
max_total_tokensToken budget per run, 1,000–1,000,000 (default 60,000).
archivedArchived agents keep their definition but cannot start runs.
versionIncreases on every change.

Changing an agent safely

PUT /v1/agents/{slug} replaces the whole definition. Send the version you edited: if someone saved a newer version first, you get 409 conflict and nothing changes. Reload, merge, and save again.

Runs already in progress keep the definition they started with. New runs pick up a change within 30 seconds.

Citations

With knowledge: true, the agent searches before answering facts. The model must cite each supported claim. The runtime then:

  • removes citations to passages that were not actually retrieved;
  • numbers the real ones [1], [2] and lists them under Sources:.

Tools that the policy marks as needing a person’s approval are refused in this release. Read-only and low-risk tools run. See Status and limits.