when i use generate_reply and i pass some instruct...
# ask-ai
w
when i use generate_reply and i pass some instructions to it does it also uses the current agent instructions?
t
Thanks for reaching out, Test. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I’d be happy to help you understand how the
generate_reply
function works depending on the model you’re using: • Non-Realtime LLM Models: Here, the function thoughtfully combines the agent’s current instructions with the ones you provide, linking them with a newline character. This way, both sets of instructions work together smoothly. • Realtime Models: In this case, the function sends only the instructions you pass directly to the server. Usually, the agent’s base instructions are set up during session initialization, so they aren’t combined again during the
generate_reply
call. If anything feels unclear or if you have a particular scenario in mind, please don’t hesitate to reach out—I’m here to help! Sources: livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/realtime... | plugins/openai/src/realtime/realtime_model.ts