Creating Custom Links
How to create custom processing links
Link Interface
def run(
vcon_uuid: str,
link_name: str,
opts: dict = default_options
) -> str | None:
"""
Process a vCon through this link.
Args:
vcon_uuid: UUID of the vCon to process
link_name: Name of this link instance in config
opts: Configuration options merged with defaults
Returns:
str: vCon UUID to continue chain (usually same as input)
None: Stop chain processing for this vCon
"""Basic Link Template
Working with vCon Objects
Reading vCon Data
Processing Dialogs
Checking Existing Analysis
Adding Results
Filtering and Routing
Stopping Chain Processing
Routing to Different Queues
External API Integration
With Retry Logic
Metrics and Monitoring
Project Structure
__init__.py
__init__.pyConfiguration
Distribution
As a PyPI Package
As a GitHub Repository
Testing
Best Practices
Last updated
Was this helpful?