calm-eye-57311
10/02/2025, 12:25 PMtall-airline-16756
10/02/2025, 12:25 PMtall-airline-16756
10/02/2025, 12:26 PMinstructions property of the Agent class. This property holds the core instructions that were set during the initialization.
Here's a simple example to guide you:
agent = Assistant(tools=tools) # Example agent instantiation
system_prompt = agent.instructions
print(system_prompt) # Outputs the system instructions
For more advanced setups, like with the TriageAgent, the instructions might be loaded from a file (such as a YAML file), but you can still access them through the same instructions property. Plus, if you ever need to change these instructions on the fly, the update_instructions method makes that possible during runtime.
Sources: examples/voice_agents/realtime_joke_teller.py | complex-agents/medical_office_triage/triage.py | Workflows | LiveKit Docs