@mistralai-capabilities/backend-agents 0.0.0-stage → 0.1.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ # template/ mirrors the scaffolded app: every file is vendored to ~/<path>.
2
+ # This is the single source of truth for what is NOT vendored. Gitignore
3
+ # syntax, matched against each candidate's path relative to the capability's
4
+ # template/. `!` negation is supported.
5
+
6
+ # Package-only composition / generated — no app target.
7
+ /api.server.ts
8
+ /routes.gen.ts
9
+
10
+ # NOTE: the scaffolded default also excluded `__tests__/`, `*.test.*`,
11
+ # `*.spec.*` and `*.d.ts`. This registry deliberately vendors them: it
12
+ # reproduces a real application whose test suite and ambient type
13
+ # declarations (e.g. apps/web/src/types/*.d.ts) are part of the app, not
14
+ # dev-only scaffolding. Excluding them silently drops ~80 real files.
15
+
16
+ # Never copied.
17
+ node_modules/
18
+ .templateignore
19
+
20
+ # Residue from running a Python tool inside a template zone. Untracked, so a git-vendored app
21
+ # never sees it, but the registry tests walk the filesystem: without this their view of a template
22
+ # depends on whether someone happened to import a template module or point ruff at `capabilities/`.
23
+ __pycache__/
24
+ *.pyc
25
+ .ruff_cache/
26
+ .pytest_cache/
27
+ .mypy_cache/
package/CHANGELOG.md ADDED
@@ -0,0 +1,235 @@
1
+ # Changelog — `@mistralai-capabilities/backend-agents`
2
+
3
+ Keep a Changelog format, lockstep versions. `### Breaking` lists what an app must do to upgrade.
4
+
5
+ ## [Unreleased]
6
+
7
+ ## [0.1.83] - 2026-11-19
8
+
9
+ ### Changed
10
+
11
+ - The agent runs on Mistral Large 4 by default: `AGENT_MODEL` defaults to `mistral-large-4` (was
12
+ `mistral-medium-3-5`). An existing app keeps the model its `.env` sets; to switch, set
13
+ `AGENT_MODEL=mistral-large-4` in `.env` and in each deployment's environment.
14
+
15
+ ### Fixed
16
+
17
+ - Each step of `Dockerfile.agent` that calls core's `tools/uv.sh` also mounts a `REGISTRY_TOKEN`
18
+ BuildKit secret as an env var, which core's `tools/uv.sh` reads, so `mistral deploy` builds the
19
+ image when the module sets the registry token as `REGISTRY_TOKEN` (Mistral Apps hands each module
20
+ env var to the build as a secret of the same name). Compose's `registry_token` secret still works.
21
+ Update core in the same step.
22
+ - `Dockerfile.agent` runs core's `tools/normalise-lockfiles.sh` before each `uv sync`, so an app
23
+ locked through a package firewall the image build cannot reach still builds, installing the same
24
+ files from PyPI. Update core in the same step.
25
+
26
+ ## [0.1.76] - 2026-11-10
27
+
28
+ ### Breaking
29
+
30
+ - `mistralai-agents` 1.1.2: pin `mistralai-agents[bashkit]==1.1.2` in `apps/agent/pyproject.toml`.
31
+ No API change. Its session worker no longer stores the Workflow execution token in the Workflow
32
+ history (the Session procedure Activities read it from the run's context, not an argument), and
33
+ reads the Session's id and pending Turns without copying the whole Session state. It brings
34
+ `mistralai-vibe-harness` 0.1.21, whose completion providers also read NDJSON streams. Move every
35
+ worker of an app to 1.1.2 together: an older worker that runs a Session procedure Activity a 1.1.2
36
+ worker scheduled calls the Agents API without the token.
37
+
38
+ ## [0.1.74] - 2026-11-07
39
+
40
+ ### Changed
41
+
42
+ - `Dockerfile.agent` copies uv 0.13.7 (was 0.11.17), and `apps/agent/pyproject.toml` builds with
43
+ `uv_build>=0.13.0,<0.14.0` (was `>=0.8.22,<0.9.0`). An existing app keeps building unchanged; uv
44
+ 0.13 reads the current `uv.lock` as is.
45
+
46
+ ### Fixed
47
+
48
+ - The agent sets `WORKFLOWS_DEPLOYMENT_NAME` to the app's worker, where its tools' `start_workflow`
49
+ runs go: `DEPLOYMENT_NAME` before the `-agent` suffix under `mistral apps dev`, and `<app>-worker`
50
+ for a `<app>-agent` deployment in the `Dockerfile.agent` CMD that Mistral Apps runs. An app that
51
+ mapped `-agent` to `-worker` itself can drop that.
52
+
53
+ ## [0.1.72] - 2026-11-05
54
+
55
+ ### Breaking
56
+
57
+ - `mistralai-agents` 1.1.0, the first stable release: pin `mistralai-agents[bashkit]==1.1.0` in
58
+ `apps/agent/pyproject.toml`. `agents.LocalSessionProcedureError` and
59
+ `agents.RemoteSessionConflictError` are deprecated (catch `agents.AgentsError`; an invalid event
60
+ cursor raises `agents.InvalidCursorError`). `agents.CustomSandbox` moved to
61
+ `agents.experimental.CustomSandbox`, with its `CustomSandbox*Request` / `*Result` types.
62
+ - With it, an `agents.Hook` gets a view of its input, not the harness's `*HookInvocation`: an app's
63
+ own hook under `apps/agent/src/agent/hooks/` takes `agents.hook.PreAgentTurn` (`user_content` of
64
+ `agents.TextContentBlock` and the other `agents.*ContentBlock`), `PreLlmCall`, `PostLlmCall` /
65
+ `PostAgentTurn` (`text`, `content`, `tool_calls`, `reasoning`, `finish_reason`, `usage` in place of
66
+ `.candidate`), `PreToolCall` (`tool_name`, `tool_id`, `tool_call_id`, `arguments` in place of
67
+ `.tool_call.call`) or `PostToolCall` (the same, plus `tool_result`, an `agents.ToolResult` with
68
+ `is_error`). `post_tool_call` returns `agents.hook.PostToolCallHookContinue(tool_result=...)` with an
69
+ `agents.ToolResult`. A hook that tells an authored tool from a sandbox built-in calls
70
+ `mistralai_capabilities.agents.tools.is_builtin`. Tests that call a hook build these views. The
71
+ `post_agent_turn` chain (`mistralai_capabilities.agents.hook_chain`) hands each member an
72
+ `agents.hook.PostAgentTurn`.
73
+
74
+ ### Added
75
+
76
+ - `mistralai_capabilities.agents.tools.is_builtin(call)`: whether a hook's `agents.hook.PreToolCall`
77
+ (or `PostToolCall`) is to a sandbox built-in rather than a provided tool, from the view's `tool_id`.
78
+
79
+ ## [0.1.71] - 2026-11-04
80
+
81
+ ### Breaking
82
+
83
+ - `mistralai-agents` 1.1.0rc16: pin `mistralai-agents[bashkit]==1.1.0rc16` and `mistralai>=3.6.0` in
84
+ `apps/agent/pyproject.toml`. `agents.Agent(sandbox=)` is `environment=` (`response_format=` is
85
+ `output_type=`), so `assemble()` returns the sandbox as `fields["environment"]`.
86
+
87
+ ## [0.1.70] - 2026-11-04
88
+
89
+ ### Breaking
90
+
91
+ - An app that ran 0.1.68 under `mistral dev` with the workflows capability registered its agent on the
92
+ worker's task queue, so the agent now fails to start with "already exists in this workspace".
93
+ Remove that registration once, then restart `mistral dev`: from `apps/agent`, with `MISTRAL_API_KEY`
94
+ exported, `bash ../../tools/uv.sh run --all-packages agents shutdown <AGENT_NAME> --yes`.
95
+
96
+ ### Fixed
97
+
98
+ - `mistral dev` serves the agent on its own task queue, `<DEPLOYMENT_NAME>-agent`, instead of the
99
+ workflows worker's: `env -u DEPLOYMENT_NAME` did not stick, because the `env` package loads it back
100
+ from the root `.env`, so the agent took the worker's tasks.
101
+
102
+ ## [0.1.68] - 2026-11-03
103
+
104
+ ### Breaking
105
+
106
+ - The agents capability moved from `feature/agents` to `backend/agents` and runs the app's agent as a
107
+ managed agent (Agents SDK, mistralai-agents 1.1.0rc15), no longer as the `agents` session workflow
108
+ in the app's worker. The agent is its own module at `apps/agent` (a member of the app's uv
109
+ workspace, package `agent`, entrypoint `agent.main:agent`): `mistral dev` serves it with
110
+ `agents serve` under `AGENT_NAME`, its image (`deploy/docker/Dockerfile.agent`) runs
111
+ `agents run-worker`, and `mistral agents deploy` deploys it. To upgrade:
112
+ - move `apps/worker/src/worker/agents/` to `apps/agent/src/agent/` (`agent.py` is now `main.py`,
113
+ its `pyproject.toml` and `project.json` sit in `apps/agent/`), and rewrite `worker.agents.<...>`
114
+ imports to `agent.<...>` (`worker.agents.agent` is `agent.main`);
115
+ - delete `apps/worker/src/worker/workflows/agents.py` and `packages/py/agents/`: the worker no
116
+ longer serves the agent, and the agent project installs the SDK itself;
117
+ - rename `ORCHESTRATOR_MODEL` to `AGENT_MODEL` and set `AGENT_NAME` (one per deployment: the name
118
+ the agent registers and /chat fronts); the nx project is `agent` (`agent:test`,
119
+ `agent:typecheck`), not `agents`;
120
+ - in a hook, declare a class attribute such as `post_agent_turn_order` as a `ClassVar` (a hook is a
121
+ pydantic model on rc15, whose fields are its session state) and type `ctx` as
122
+ `agents.HookCallbackContext`; a tool is an `agents.PythonTool`.
123
+ - `feature/agents` is removed from the registry. An app that got it through another capability
124
+ (`chat`, `search`, ...) upgrades with `mistral apps registry update`, which swaps it for
125
+ `backend/agents`; a worker kept only for it (`workflows`, `observability`) is removed with it. An
126
+ app that selected it itself (`feature/agents` under `requested` in `.mistral/capabilities.json`)
127
+ stops with `Unknown capability "mistralai-capabilities/feature/agents"`. Before updating, it:
128
+ - commits its own files under `apps/worker/src/worker/agents/` elsewhere and restores the vendored
129
+ ones it edited, so nothing of the app is left there;
130
+ - runs `mistral apps capability remove feature/agents`;
131
+ - runs `mistral apps registry update --caps <its other roots>,backend/agents`, keeping the
132
+ `mistralai-capabilities-backend-agents` side of any root `pyproject.toml` conflict, then
133
+ `mistral apps capability merge --continue`;
134
+ - moves its files back under `apps/agent/src/agent/`.
135
+ - `mistralai_capabilities.agents.assembly.assemble_harness(tools=, connectors=, hooks=, mcps=)` is
136
+ replaced by `assemble(<agent package>)`, which reads every kind directory of the package and also
137
+ returns the `instructions`, and the `sandbox` the contributions need (a files-only Bashkit
138
+ sandbox when there are skills). An app's `main.py` spreads it as `agents.Agent(model=...,
139
+ name=..., description=..., **assemble(package))`; one that passed its own `sandbox=` sets
140
+ `fields["sandbox"]` on `fields = assemble(package)` and spreads `**fields` instead.
141
+
142
+ ### Added
143
+
144
+ - Subagents, skills and instruction fragments join the contribution kinds: `subagents/<name>.py`
145
+ (`subagent: agents.Subagent`, spawned through the SDK's `spawn` tool), `skills/<name>/SKILL.md`
146
+ (loaded as an `agents.LocalSkillBundle`, run in a files-only Bashkit sandbox) and
147
+ `instructions/<name>.md` (appended to `instructions.md` in name order; any other entry in
148
+ `instructions/` fails assembly).
149
+ - The module declares the `agents` deploy platform, so an app deploy leaves it to
150
+ `mistral agents deploy`.
151
+ - The agent project's `dev` group adds `pytest-asyncio`, so the async tests other capabilities vendor
152
+ into `apps/agent/tests/` run without the `testing` capability.
153
+ - A root `main.py` re-exports the agent (`main:agent`, the SDK's default entrypoint), so
154
+ `agents deploy . --dockerfile deploy/docker/Dockerfile.agent` finds it from the app root, where the
155
+ agent image is built and which the SDK makes the managed agent's working directory.
156
+
157
+ ### Changed
158
+
159
+ - Without `AGENT_NAME`, an agent running as the deployment `<app>-agent` is named `agent-<app>`,
160
+ so each app in a workspace gets its own agent. Otherwise the default stays `app-agent`.
161
+
162
+ ### Fixed
163
+
164
+ - `AGENT_NAME` defaults to `agent-<app>`, no longer `agent-<app>-<user>`: the SDK refuses a name
165
+ containing `.` (platform agents), which a `first.last` user name put there.
166
+
167
+ ## [0.1.65] - 2026-10-30
168
+
169
+ ### Breaking
170
+
171
+ - The prompt registry is gone: `worker/agents/instructions.md` is the orchestrator's only system
172
+ prompt. The worker no longer resolves a prompt from AI Studio at startup, the `prompts` init step
173
+ (`cli/commands/prompts.py`) no longer exists, and `PROMPT_REGISTRY_ENABLED`, `PROMPT_REGISTRY_NAME`,
174
+ `PROMPT_REGISTRY_ALIAS` and `PROMPT_REGISTRY_TIMEOUT_SECONDS` are no longer read: drop them from
175
+ `.env` and deployment values. An app that ran a registry version in production copies that
176
+ version's content into `instructions.md` before upgrading.
177
+ - The `agents:dev` target and `tools/dev_agent.py` (a cloudflared/ngrok tunnel in front of
178
+ `compose:dev` for MCP apps) are removed. It never reached the containers: the Compose dev files
179
+ pin `MCP_SERVER_URL` to `http://api:3000/mcp`. There is no local replacement; try MCP apps on a
180
+ deployed app with `MCP_APPS_ENABLED=true`, where `MCP_SERVER_URL` falls back to the public origin
181
+ (see `mcp-apps`).
182
+
183
+ ### Removed
184
+
185
+ - The agent project's `conftest.py` `AGENT` guard (pytest never collected it; `tools/uv.sh` already
186
+ unsets `AGENT`), its unused `dev` dependency group, pytest and ruff settings, and the `httpx`
187
+ dependency of the agent project and of `packages/py/agents`.
188
+
189
+ ## [0.1.63] - 2026-10-29
190
+
191
+ ### Breaking
192
+
193
+ - The Agents SDK is `mistralai-agents==1.1.0rc13` (was `1.1.0rc6`). `agents.Agent` takes the
194
+ Harness fields directly and no longer takes `harness=`: `assemble_harness` returns them as
195
+ `HarnessFields`, spread with `agents.Agent(..., **assemble_harness(...))`. An app's own
196
+ `agents.Agent(harness=agents.Harness(tools=..., hooks=...))` becomes
197
+ `agents.Agent(tools=..., hooks=...)`.
198
+ - A `post_agent_turn` hook may only accept, or return `None` to accept as is: the SDK, and the
199
+ `PostAgentTurnChain`, refuse a `Retry` or `Reject` there. Retry or reject an answer in
200
+ `post_llm_call`. A scripted completion provider in an app's tests must report token usage
201
+ (`ModelCompletionFinished(..., usage=CompletionUsage())`), or the turn fails.
202
+ - The worker sends GenAI traces to AI Studio by default, prompt and completion content included.
203
+ Set `AGENTS_SDK_STUDIO_TRACING_INCLUDE_CONTENT=0` to drop the content, or
204
+ `AGENTS_SDK_STUDIO_TRACING_ENABLED=0` to turn tracing off.
205
+
206
+ ### Changed
207
+
208
+ - `agents` no longer depends on `fastapi` and `postgres`, which it never used: an app selecting it
209
+ alone gets no API host or database. Capabilities that need them still declare them. On Mistral
210
+ Apps, pre-start migrations still run only with `fastapi` (as already for `postgres` with
211
+ `workflows` and no `fastapi`): keep `fastapi` selected for an Apps deployment.
212
+ - With `1.1.0rc13`, a session compacts its history by default, at the model's default threshold;
213
+ `TurnExecutionPolicy.output_limit_retries` defaults to 6 (set 0 to keep a cut-off completion); and
214
+ a sandboxed `bash` command without `timeout_seconds` stops after 120 s instead of 300 s.
215
+
216
+ ### Fixed
217
+
218
+ - A deployed worker runs the orchestrator prompt from the prompt registry: it checked
219
+ `MISTRAL_API_KEY`, which the platform reserves on workers, so it always fell back to
220
+ `instructions.md`. It now uses the worker's service-account token.
221
+
222
+ ## [0.1.30] and earlier
223
+
224
+ ### Removed
225
+
226
+ - The orchestrator census in `apps/worker/tests/agents/test_app.py` (`CAPABILITY_TOOLS`,
227
+ `CAPABILITY_CONNECTORS`, `CAPABILITY_HOOKS`, `APP_*`): an app can drop its own `APP_TOOLS`
228
+ entries.
229
+ - The npm package's empty TypeScript entry point; no app change needed.
230
+
231
+ ### Fixed
232
+
233
+ - Several `post_agent_turn` hooks no longer erase each other: they run as one `PostAgentTurnChain`,
234
+ each seeing earlier replacements, ordered by `post_agent_turn_order` (`ANSWER` default, `SAFETY`
235
+ last). An app's own gate should declare `post_agent_turn_order = SAFETY`.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2025 Mistral AI
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,41 @@
1
+ {
2
+ "id": "agents",
3
+ "version": "0.1.88",
4
+ "title": "Agents",
5
+ "description": "Run the app's agent to assemble and serve tools, connectors, hooks, MCP servers, subagents, skills and instructions contributed by installed capabilities as files.",
6
+ "kind": "backend",
7
+ "module": {
8
+ "serve": "worker"
9
+ },
10
+ "categories": [
11
+ "solutions"
12
+ ],
13
+ "dependencies": [
14
+ "core"
15
+ ],
16
+ "packages": [
17
+ "ts",
18
+ "py"
19
+ ],
20
+ "envVars": {
21
+ "MISTRAL_API_KEY": "",
22
+ "AGENT_NAME": "agent-{{app_name}}",
23
+ "AGENT_MODEL": "mistral-large-4"
24
+ },
25
+ "metadata": {
26
+ "weight": 2,
27
+ "appDir": "apps/agent",
28
+ "platform": "agents",
29
+ "build": {
30
+ "context": ".",
31
+ "dockerfile": "deploy/docker/Dockerfile.agent"
32
+ },
33
+ "lifecycle": {
34
+ "dev": {
35
+ "startCommand": "[ -z \"${DEPLOYMENT_NAME:-}\" ] || export WORKFLOWS_DEPLOYMENT_NAME=\"${WORKFLOWS_DEPLOYMENT_NAME:-$DEPLOYMENT_NAME}\" DEPLOYMENT_NAME=\"${DEPLOYMENT_NAME}-agent\"; bash ../../tools/uv.sh run --all-packages agents serve . --name \"$AGENT_NAME\""
36
+ }
37
+ },
38
+ "public": true,
39
+ "tsZone": false
40
+ }
41
+ }