Extending
Extending
Extending
Two extension points cover nearly everything.
- Writing a processor
: add your own logic to the chain,
such as redacting text before it reaches the LLM, logging transcripts, hanging
up on a keyword, or counting words. A struct embedding
*processor.Baseand one method. - Writing a service : add an STT, LLM or TTS provider. Usually one interface method; the shared base handles frames, metrics, tracing, interruption and the tool loop.
Read Processors first, particularly the part about the two goroutines. It is the thing that catches people out.