Component
core/ai-agent/smolagents
A smolagents agent, run in-cluster as an application image the Release supplies. smolagents offers two ways for an agent to act, and they are different enough to be different classes rather than a flag: one writes and executes code to reach its answer, the other selects among declared tools. The agent-type value carries that choice, and the step ceiling is deliberately small — a handful of steps rather than a hundred — because the library is built around short reasoning loops. The Release supplies the image containing the smolagents application. The catalog pins no image, so nothing renders until the Release sets `infra.image`. An `inject:` block on the model connection delivers the names the application reads, as variables or as files, in place of the model-name variable the Recipes choose by default; the endpoint variable the client SDK reads and the attached key stay. Its Recipes deliver each own value under a default variable name; the component's own `inject:` block takes `env` and `file` entries, and one reading a value alone replaces that value's default name.
出處
- 內容摘要
- sha256:cfd47bcc0e59a064673c640c063c6ca34a46399d6411b5be64c5b32054d884f9
- 發布時間
- 2026-11-10T10:08:51Z
- 簽署身分
- https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
簽章
- 官方application/vnd.dev.sigstore.bundle.v0.3+json
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main
sha256:00c7ca906c5c0bc60cd391f6d529b5f258d9db6bcb5cab7ca94038940f2449c0
此版本的參照
oci://hub.aggrega.ai/component/core/ai-agent/smolagents:1.0.0開發者參數
開發者在 Aggregate 中設定的值。
擴充 BaseComponents#/schemas/BaseAgentParameter
| 名稱 | 型別 | 預設 | 必填 | 描述 |
|---|---|---|---|---|
| agent_type | string (CodeAgent | ToolCallingAgent) | CodeAgent | 是 | — |
| max_steps | integer | 6 | 是 | — |
操作員資源規格
操作員依各環境調整的基礎架構資源規格。
| 名稱 | 型別 | 預設 | 必填 | 描述 |
|---|---|---|---|---|
| image | string | — | 否 | Container image running the smolagents application code. |
輸出契約
此元件透過 uses 拓撲向使用端發布的值。
未宣告任何輸出值。
Uses 插槽
此元件用來連線的相依插槽。經由插槽連接的每個連線,其目標都必須符合該插槽的標籤選擇器,且每個連線可在該插槽宣告的槽位中帶有附加項目。Aggregate 或 Release 經由該插槽連接的每個連線,都必須提供必填槽位。
model
- 選擇器
- component.aggrega.ai/category in (ai-model, gateway), model.aggrega.ai/api
- 注入
- env, file
經由此插槽的每個連線可填入的槽位
| 槽位 | 選擇器 | 必填 | 注入 | 敏感 | 描述 |
|---|---|---|---|---|---|
| credential | feature.aggrega.ai/kind=secret | 否 | env | 是 | Optional credential the agent presents to the model this connection reaches. When attached, the Recipe delivers it to the application as OPENAI_API_KEY (a Kubernetes secretKeyRef on helm, the inject pipe on compose); unattached, the application runs without an injected key. |
附加槽位
Feature 附加到此元件的具名繫結點。槽位的選擇器限制哪個 Feature 可以填入該槽位,其注入清單則指明該 Feature 的內容可以如何傳遞。必填槽位必須在每個實例上繫結,方式是在該實例上或其上層範圍中附加項目;敏感槽位則宣告用於處理機密內容。Feature 也可以附加在沒有任何槽位宣告的名稱之下。
未宣告任何附加槽位。
自我注入允許清單
env, file
關係
與其他已發布實體之間具型別的邊。沒有已發布目標的參照,會渲染為中斷的邊,而不是連結。
使用
- 使用使用插槽「model」
component.aggrega.ai/category in (ai-model, gateway), model.aggrega.ai/api
附加槽位:credential
core/ai-model/ai21 v1.0.0 core/ai-model/anthropic v1.0.0 core/ai-model/azure-managed v1.0.0 core/ai-model/azure-openai v1.0.0 core/ai-model/azure-openai-embedding v1.0.0 core/ai-model/bedrock v1.0.0 core/ai-model/bedrock-embedding v1.0.0 core/ai-model/cohere v1.0.0 core/ai-model/databricks v1.0.0 core/ai-model/docker-model-runner v1.0.0 core/ai-model/gemini v1.0.0 core/ai-model/huggingface v1.0.0 core/ai-model/litellm v1.0.0 core/ai-model/mistral v1.0.0 core/ai-model/nvidia-api v1.0.0 core/ai-model/nvidia-nim v1.0.0 core/ai-model/ollama v1.0.0 core/ai-model/openai v1.0.0 core/ai-model/openai-compatible v1.0.0 core/ai-model/openai-embedding v1.0.0 core/ai-model/replicate v1.0.0 core/ai-model/sagemaker v1.0.0 core/ai-model/tei v1.0.0 core/ai-model/tgi v1.0.0 core/ai-model/vertex-ai v1.0.0 core/ai-model/vertex-ai-embedding v1.0.0 core/ai-model/vllm v1.0.0 core/gateway/agentgateway v1.0.0 core/gateway/apisix v1.0.0 core/gateway/envoy-gateway v1.0.0 core/gateway/higress v1.0.0 core/gateway/kong v1.0.0 core/gateway/kong-enterprise v1.0.0 core/gateway/litellm v1.0.0 core/gateway/traefik-hub v1.0.0 - $ref擴充結構描述(values)
BaseComponents#/schemas/BaseAgentParameter
被使用於
使用插槽「runner」
使用插槽「api」
使用插槽「runner」
使用插槽「api」
使用插槽「services」
使用插槽「api」
使用插槽「services」
使用插槽「services」
使用插槽「sandbox」
使用插槽「plugin_daemon」
使用插槽「ssrf_proxy」
使用插槽「sandbox」
使用插槽「plugin_daemon」
使用插槽「ssrf_proxy」
使用插槽「api」
使用插槽「ssrf_proxy」
使用插槽「api」
使用插槽「api」
使用插槽「sandbox」
使用插槽「plugin_daemon」
使用插槽「ssrf_proxy」
使用插槽「sandbox」
使用插槽「plugin_daemon」
使用插槽「ssrf_proxy」
使用插槽「target_agent」
使用插槽「scrape_target」
適用於
適用於
適用於
實作
實作