component-input-source
workflowv1.0.0Workflow driven exclusively by run.component calls (no HTTP server or file reader)
Install
kdeps registry install component-input-source
Then run locally:
kdeps exec component-input-source
Configure LLM provider in ~/.kdeps/config.yaml (created automatically on first run).
README
component-input-source
Demonstrates the component input source - a workflow designed to be invoked exclusively via run.component from a parent workflow.
When sources: [component] is declared, kdeps starts no HTTP server, bot listener, or file reader. The workflow is driven entirely by component calls from a parent.
Structure
component-input-source/
├── workflow.yaml # sources: [component]
└── resources/
└── transform.yaml # transforms text via Python
What It Does
Takes a text input and an optional style (uppercase | lowercase | title) and returns the transformed text as JSON.
Using It From a Parent Workflow
# In your parent workflow's resource:
run:
component:
name: component-input-source
with:
text: "hello world"
style: title
Then access the result:
"{{ output('myActionId') }}" # {"original":"hello world","style":"title","result":"Hello World"}
The component Source
settings:
input:
sources: [component]
component:
description: "Transforms text to uppercase, lowercase, or title case."
sources: [component]- no listener is started; the workflow only runs when called viarun.componentcomponent.description- surfaced bykdeps component listandkdeps component info
Difference from sources: [api]
api | component | |
|---|---|---|
| HTTP server started | Yes | No |
Callable via run.component | Yes | Yes |
| Callable via HTTP request | Yes | No |
Listed by kdeps component list | Yes | Yes |
Validate
kdeps validate examples/component-input-source
Versions
| Version | Published | Status |
|---|---|---|
| 1.0.0 | 4/11/2026 | active |
Details
- Author
- kdeps
- License
- Apache-2.0
- Latest Version
- 1.0.0
- Published
- 4/11/2026
Tags
componentsinput-source