Hooks
Python functions and classes of your own that the agent server calls at set points: when it starts and stops, around every agent run, at publishing, before LLM and API calls, and to store conversation state, read secrets and supply encryption keys.
- How hooks workHooks are Python functions and classes of your own that the agent server calls at set points: when the agent server starts and stops, before and after an age…
- Server and agent runsSeven hooks follow the life of the agent server and of the agents it runs: one call when the agent server starts and one when it stops, three around each top…
- Conversation stateBy default the agent server encrypts a conversation's state and stores the ciphertext in Search2o Cloud. With these three hooks, the state is stored by your …
- Secrets and encryptionTwo hooks hand the agent server what it must never store: the value of a secret, from a vault of your own, and the key for end-to-end encryption. Both return…
- LLM and API callsThese hooks see every call and can refuse it; they cannot change it. A refused call stops the agent with the hook's message.
- Adapters and validatorsTwo boxes on the Hooks page take classes and functions that extend what the agent server accepts: adapter classes for language model vendors the bundled adap…

