Expand description
Plugin-neutral evidence recording for managed LLM calls. Managed, bounded LLM optimization accounting.
Structs§
- LlmOptimization
Recorder - Cloneable capability for adding evidence to the current managed LLM call.
Constants§
- MAX_
LLM_ OPTIMIZATION_ CONTRIBUTIONS - Maximum contributions retained for one LLM call.
- MAX_
LLM_ OPTIMIZATION_ CONTRIBUTION_ ATTEMPTS - Maximum contribution records inspected before the recorder seals itself.
- MAX_
LLM_ OPTIMIZATION_ CONTRIBUTION_ BYTES - Maximum serialized size of one complete contribution envelope.
- MAX_
LLM_ OPTIMIZATION_ TOTAL_ CONTRIBUTION_ BYTES - Maximum aggregate serialized size of all contribution envelopes for one call.
Functions§
- current_
llm_ optimization_ recorder - Return a recorder for the current execution intercept, if it is managed by Relay.
- record_
llm_ optimization_ contribution - Best-effort shorthand for recording evidence on the current managed call.