Basic usage
There are 2 main components to adding runtime protection:ProtectTool
- a LangChain tool that is configured with a stage, and optionally prioritized rulesets for local stagesProtectParser
- a parser that checks the results of theProtectTool
, and runs the next step in the chain if the rulesets are not triggered
Passthrough
action, the original input is returned to be processed by the calling application. If the action is an Override
then a randomly selected choice is returned.
If no rulesets are triggered, then the chain is run and the relevant message type is returned by LangChain.
Integrate with logging
You can pass aRunnableConfig
when invoking the protected chain, allowing you to add a GalileoCallback logger callback handler.
Next steps
Basic protection components
Rules
Learn about defining rules for runtime protection.
Rulesets
Learn about defining rulesets for runtime protection.
Stages
Learn about defining stages for runtime protection to be used during different stages in your application workflow.
Invoke runtime protection
Learn how to invoke runtime protection in code using the Galileo SDK.