หน้านี้แปลด้วยเครื่อง อ่านต้นฉบับภาษาอังกฤษ

Component

core/ai-tool/model-invocation

A read-only tool that lets an agent call a model as a step in its own work — turning text into speech, transcribing audio, or whatever task the wired model performs — rather than as the agent's own reasoning engine. It declares a required socket onto a model component, so the model is resolved in the topology. The task the invocation performs is named by the developer and defaults to text-to-speech. Its effect is pinned read-only in its own schema. Realized on Kubernetes as a Knative Service, which admits an inbound call while the tool is running no replicas, so the tool occupies no compute between the calls that invoke it. It publishes a host, port, endpoint and protocol, and a consumer wires to those without naming how the tool runs. The catalog pins no image, so nothing renders until the Release sets `infra.image`. The model's address reaches the tool's code under default variable names; an `inject:` block on the connection delivers instead, as variables or files, the names that code reads. The component's own `inject:` block takes `env` and `file` entries too, and one reading a value of the tool alone replaces that value's default variable name.

ที่มา

ทางการลงลายเซ็นด้วยตัวตนที่แค็ตตาล็อกนี้รู้จักว่าเป็นผู้เผยแพร่ทางการ
ไดเจสต์ของเนื้อหา
sha256:6a7c66a921986fead2ba49ec75f60275048cbb1522e08d6817aea795623bb76a
เผยแพร่
2026-11-10T10:10:02Z
ตัวตนผู้ลงลายเซ็น
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:72488b46cc21371c490961cc77648a9e38cf2f235e0c2651c46f0f1082bc9ff5

เอกสารอ้างอิงในเวอร์ชันนี้

oci://hub.aggrega.ai/component/core/ai-tool/model-invocation:1.0.0

พารามิเตอร์ของนักพัฒนา

ค่าที่นักพัฒนากำหนดใน Aggregate

ต่อยอดจาก BaseComponents#/schemas/BaseToolParameter

ชื่อชนิดค่าเริ่มต้นจำเป็นคำอธิบาย
task_typestringtext_to_speechใช่—
side_effectsstring (read_only)read_onlyใช่—

การกำหนดขนาดโดยผู้ดำเนินการ

ขนาดโครงสร้างพื้นฐานที่ผู้ดำเนินการปรับแต่งตามแต่ละสภาพแวดล้อม

ชื่อชนิดค่าเริ่มต้นจำเป็นคำอธิบาย
imagestring—ไม่ใช่Container image serving the invocation over HTTP.
portinteger (min 1024, max 65535)8080ไม่ใช่Port the tool's own container listens on. A consumer does not necessarily connect here: the realization publishes the address callers use, and a control plane that fronts the tool routes from its own port to this one.
computeobject—ไม่ใช่—
min_replicasinteger (min 0)0ไม่ใช่Replica floor. Zero is what lets the tool run no replicas between calls, which the realization reaches through its control plane.
max_replicasinteger (min 1)5ไม่ใช่Replica ceiling the realization's autoscaler may reach.
control_plane_presentbooleanfalseไม่ใช่Operator affirmation that Knative Serving, the control plane the realization needs, is installed in the target cluster. The build halts unless this is set true, so a custom resource is never emitted as an orphan into a cluster that cannot reconcile it.
overridesobject (open)—ไม่ใช่Realization-specific overrides. Accepts any nested structure. Each Recipe documents which keys it reads.

สัญญาเอาต์พุต

ค่าที่ส่วนประกอบนี้เผยแพร่ให้ผู้บริโภคผ่านโทโพโลยี uses

ชื่อชนิดค่าเริ่มต้นจำเป็นคำอธิบาย
hoststring—ใช่In-cluster DNS name an agent calls to have the wired model perform a task. A consumer that composes its own address dials this name; one that does not reads `endpoint` instead.
portinteger—ใช่TCP port the invocation is accepted on. The realization fronts the tool on the control plane's own port rather than the tool container's, so a consumer reads this rather than the port an operator set.
endpointstring—ใช่Full base URL an agent posts an invocation to, with the host and the port already composed. It addresses the tool, not the model, which the tool reaches over its own socket.
protocolstring—ไม่ใช่URL scheme to reach `host` and `port` over, for a consumer composing its own address rather than reading `endpoint`.

ซ็อกเก็ต Uses

ซ็อกเก็ตการพึ่งพาที่ส่วนประกอบนี้เชื่อมต่อผ่าน เป้าหมายของทุกการเชื่อมต่อที่เชื่อมโยงผ่านซ็อกเก็ตต้องตรงกับตัวคัดเลือกป้ายกำกับของซ็อกเก็ต และแต่ละการเชื่อมต่อมีการแนบในสล็อตที่ซ็อกเก็ตประกาศได้ ทุกการเชื่อมต่อที่ Aggregate หรือ Release เชื่อมโยงผ่านซ็อกเก็ตต้องกำหนดสล็อตที่จำเป็น

target_model

ตัวคัดเลือก
component.aggrega.ai/category in (ai-model, gateway), model.aggrega.ai/api
Inject
env, file

ซ็อกเก็ตนี้ไม่ประกาศสล็อตการแนบ การเชื่อมต่อผ่านซ็อกเก็ตนี้จึงไม่มีการแนบติดมา

สล็อตการแนบ

จุดผูกที่มีชื่อซึ่ง Feature แนบกับส่วนประกอบนี้ ตัวคัดเลือกของสล็อตจำกัดว่า Feature ใดเติมสล็อตได้ และรายการ inject ของสล็อตระบุว่าส่งมอบเนื้อหาของ Feature ได้อย่างไร สล็อตที่จำเป็นต้องถูกผูกในทุกอินสแตนซ์ ด้วยการแนบบนอินสแตนซ์หรือที่ขอบเขตเหนือขึ้นไป และสล็อตที่ละเอียดอ่อนถูกประกาศให้จัดการข้อมูลลับ Feature แนบภายใต้ชื่อที่ไม่มีสล็อตใดประกาศได้ด้วย

ไม่มีสล็อตการแนบที่ประกาศ

รายการอนุญาต self-inject

env, file

ความสัมพันธ์

เส้นเชื่อมที่ระบุชนิดไปยังและมาจากเอนทิตีที่เผยแพร่อื่น การอ้างอิงที่ไม่มีเป้าหมายที่เผยแพร่จะเรนเดอร์เป็นเส้นเชื่อมที่ขาดแทนที่จะเป็นลิงก์

Uses

ใช้โดย

เอกสารอ้างอิงแนวคิดของ Component

แค็ตตาล็อก Aggrega — ดัชนีเปิดของส่วนประกอบ ฟีเจอร์ Recipes และปลั๊กอินที่เรนเดอร์สิ่งเหล่านั้น

สร้างด้วยระบบการออกแบบร่วมของ Aggrega

ความเป็นส่วนตัว