Do we have option to cache system instructions for...
# agents
c
Do we have option to cache system instructions for llms? @refined-appointment-81829
r
Many LLMs like OpenAI has transparent caching.
c
But the summary generated on session closure shows the following,
Copy code
"summary": {
        "llm_prompt_tokens": 4189,
        "llm_prompt_cached_tokens": 0,
        "llm_input_audio_tokens": 0,
        "llm_completion_tokens": 141,
        "llm_output_audio_tokens": 0,
        "tts_characters_count": 715,
        "tts_audio_duration": 37.51183673469393,
        "stt_audio_duration": 9.872
      }
r
Check the documentation for the LLM provider your are using related to caching
c
I am using gemini, according to which the instructions should have been cached. I just want to know if the instructions were actually cached. Is the summary fetched from the llm?
r
I am not a Gemini expert but last I checked their caching mechanism was based on when the context get over a certain threshold. But I don't recall for sure.