# Agents and tools

> An agent profile defines how an agent behaves (model, prompt, allowed tools, limits) and a cognitive tool defines a capability an agent may call, with its schema, safety class and limits. Today both are governed definitions; no node runs an agent yet.

Source: https://docs.sommatic.ai/en/ai/agents-and-tools/ (updated 2026-11-26)

In Sommatic AI an agent is not a prompt with tools attached. It is a profile your organization governs: which model it
uses, which instructions it starts from, which tools it may call, how many steps it may take and how much of it is
audited. Tools are governed the same way: each one declares its parameters, its result, how risky it is and who may
call it.

> **Warning: Definitions today**
>
> Agent profiles and cognitive tools are stored with a status and managed through the portal and the API, but no
> workflow node runs an agent loop or calls a cognitive tool yet. The AI nodes you use today call
> [LLM providers](https://docs.sommatic.ai/en/ai/llm-providers.md), [prompt templates](https://docs.sommatic.ai/en/ai/prompt-templates.md) and
> [knowledge resources](https://docs.sommatic.ai/en/ai/knowledge-resources.md) directly.

## Agent profile

| Field                                | What it is                                                                                                |
| ------------------------------------ | --------------------------------------------------------------------------------------------------------- |
| `slug`, `name`, `description`        | Stable key and labels.                                                                                    |
| `organization_id`                    | Owner organization.                                                                                       |
| `llm_provider_slug`                  | The LLM provider the agent reasons with by default.                                                       |
| `default_prompt_template_id`         | The prompt template it starts from.                                                                       |
| `cognitive_tool_ids`                 | The tools it is allowed to call. Nothing outside this list.                                               |
| `memory_store_ids`, `datasource_ids` | The [memory stores and datasources](https://docs.sommatic.ai/en/ai/memory-and-datasources.md) it may use. |
| `behavior_policies`                  | Behavioral rules, for example temperature bounds or a reasoning mode.                                     |
| `safety_rules`                       | Safety constraints.                                                                                       |
| `max_tool_calls_per_step`            | Upper bound of tool calls in one reasoning cycle.                                                         |
| `max_reasoning_steps`                | Upper bound of reasoning or tool-use loops.                                                               |
| `audit_level`                        | How much of its activity is audited.                                                                      |
| `tags`, `is_system`                  | Labels, and whether it is a system profile.                                                               |

```json
{
  "slug": "agent.support-router",
  "name": "Support router",
  "llm_provider_slug": "<llm-provider-slug>",
  "default_prompt_template_id": "<prompt-template-id>",
  "cognitive_tool_ids": ["<cognitive-tool-id>"],
  "behavior_policies": { "temperature": { "min": 0.0, "max": 0.4 } },
  "max_tool_calls_per_step": 3,
  "max_reasoning_steps": 5
}
```

## Cognitive tool

A cognitive tool is a capability an agent may invoke without adding nodes to the workflow graph: an HTTP call, a
database operation, a sub-workflow. Keeping tools outside the graph keeps the workflow deterministic.

| Field                                                        | What it is                                                                                                                                      |
| ------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| `slug`, `name`, `description`                                | Stable key and labels. `slug`, `name` and `invocation_kind` are required.                                                                       |
| `organization_id`, `project_id`                              | Owner organization and, optionally, project.                                                                                                    |
| `invocation_kind`                                            | The kind of capability, for example `http-endpoint`, `internal-function`, `sub-flow`, `vector-query`, `database-operation` or `identity-check`. |
| `execution_mode`                                             | `sync` (result returned inline), `async` (completed later) or `stream` (incremental results).                                                   |
| `async_result_strategy`, `async_result_ingress_binding_slug` | How an `async` result comes back.                                                                                                               |
| `connector_slug`, `endpoint_key`, `target_flow_slug`         | What the tool calls: a connector, an endpoint template or a workflow.                                                                           |
| `parameter_schema`, `result_schema`                          | Typed parameters and the normalized result.                                                                                                     |
| `agent_result_projection`                                    | How a raw response maps to `result_schema`.                                                                                                     |
| `requires_auth_context`                                      | Whether a call needs an authenticated identity.                                                                                                 |
| `allowed_agent_profile_ids`, `allowed_operator_slugs`        | Who may call it.                                                                                                                                |
| `safety_classification`                                      | `read-only`, `idempotent-write`, `state-changing`, `sensitive` or `high-risk`.                                                                  |
| `safety_rules`                                               | Preconditions checked before a call.                                                                                                            |
| `max_invocations_per_run`, `timeout_ms`                      | Limits per run and per call.                                                                                                                    |
| `audit_level`, `tags`, `is_system`                           | Audit level, labels and system flag.                                                                                                            |

Both artifacts use the statuses `enabled`, `review`, `deprecated` and `archived`.

## The rules these definitions express

- **Explicit allowlists.** An agent may call only the tools in `cognitive_tool_ids`, and a tool names the profiles
  allowed to call it in `allowed_agent_profile_ids`.
- **Ceilings.** Steps, tool calls per step, calls per run and time per call are bounded.
- **Risk is declared.** `safety_classification` says what a tool can change, so you know it before you allow it.
- **Never the only path.** An agent proposes or acts under governance; a critical action always has an explicit,
  non-inference path, such as a workflow, a [task](https://docs.sommatic.ai/en/human-in-the-loop.md) or a Command Center command.

## Manage them

In the portal, go to **Advanced → Cognitive Infrastructure** and open **Agent Profile** or **Cognitive Tool**. Through
the API, use `/cognitive-infrastructure/cognitive-assets/agent-profile/` and
`/cognitive-infrastructure/cognitive-assets/cognitive-tool/` (see the
[API reference](https://docs.sommatic.ai/en/api/reference/cognitive-infrastructure.md)).

## Next steps

- [Memory and datasources](https://docs.sommatic.ai/en/ai/memory-and-datasources.md): Where agents may remember and what they may query.
- [Human in the loop](https://docs.sommatic.ai/en/human-in-the-loop.md): Put a person in front of the decisions that need one.
