Examples
Function Creation
guardrail_function = project.new_function(
name="request-guardrail",
kind="guardrail",
code_src="guardrail.py",
handler="process",
python_version="PYTHON3_10",
processing_mode="preprocessor"
)
Task Execution
Build image:
Guardrail serve:
Tutorials
Find additional examples in the tutorial repository of the DSLab GitHub organization.