sink
Last updated
Last updated
The sink agent will attempt to write the input message data to the specified connector. LangStream does not pre-load any sink connectors. However it is compatible with Kafka connect. You can specify a Kafka sink connector (jar) as an application dependency and then use this agent to implement the connector.
You will need the (public) URL of the sink connector’s jar. Here are resources to discover different Kafka connectors:
(find public URL of connector jar)
(example individual connector release)
Once you have the jar, you’ll need its sha512 hash. Here are resources to calculate this:
(simple online tool)
(for linux, mac, & wsl)
(for powershell)
Finally, you will need the connector’s configuration properties. If you are using an individually distributed jar, the properties should be available in the project’s documentation. offers a searchable database of connectors, which link to the documentation.
This is an example using the Apache Cassandra sink for Kafka. Include the URL, sha512, and type as an application dependency in configuration.yaml
Then the agent would implement the sink connector with appropriate values
Input
Output
None, it’s a sink.
Structured and unstructured text
Implicit topic
Templating
Checkout the full configuration properties in the .