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 when it needs a secret, an encryption key or the state of a conversation.
- How hooks workHooks are Python functions and classes of your own that the agent server calls at set points: when it starts and stops, before and after an agent runs, when …
- Server and agent runsSeven hooks follow the life of the agent server and of the agents it runs: one when the server starts and one when it stops, three around each agent run, and…
- Conversation stateBy default the agent server encrypts a conversation's state and stores the ciphertext in Search2o Cloud. With these three hooks, your own code stores the sta…
- Secrets and encryptionTwo hooks supply the agent server with 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…
- 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 LLM vendors the bundled adapters do not…

