Skip to content

Component resource reference ​

This page lists every field and option. The overview shows what it does and a first example.

The component: resource calls a reusable resource bundle - a registry component installed with kdeps install, or a custom component in your project's components/ directory. You pass typed inputs in with:, the component's resources run, and its result comes back.

Where it runs ​

It runs in a workflow. See Components for registry components, custom components, and how to build one.

Basic usage ​

yaml
# resources/scrape.yaml
actionId: scrape
name: Extract Page Content
component:
  name: web_scraper             # from the components asset set
  with:
    url: "https://example.com"
yaml
# resources/reply.yaml
actionId: reply
name: Send Telegram Reply
component:
  name: telegram_post           # a connector component
  with:
    path: sendMessage
    body: { chat_id: 42, text: "Hello!" }

Configuration options ​

OptionDescription
nameComponent name - either the registry install name, or a directory under components/ (required)
versionPin a specific installed version (registry components only)
withKey-value inputs passed to the component. Each entry is injected as set('<callerActionId>.<key>', value) before the component's resources run, so the same component can be called multiple times with different inputs in one workflow

Output ​

The output of the result resource of the component. The shape changes with the component. Check the component's own documentation or component.yaml for its output contract.

See also ​

kdeps has the Apache 2.0 License.