@@ -24,7 +24,7 @@ Configure an agent with a system prompt and execute a turn.
2424
2525``` java
2626AgentConfig config = AgentConfig . builder()
27- .persona (" You are a helpful assistant." )
27+ .instructions (" You are a helpful assistant." )
2828 .build();
2929
3030try (AntigravityAgent agent = new AntigravityAgent (config)) {
@@ -39,7 +39,7 @@ Stream tokens as they are generated by the model.
3939
4040``` java
4141AgentConfig config = AgentConfig . builder()
42- .persona (" Write a long story." )
42+ .instructions (" Write a long story." )
4343 .build();
4444
4545try (AntigravityAgent agent = new AntigravityAgent (config)) {
@@ -68,7 +68,7 @@ public class MyToolbox {
6868}
6969
7070AgentConfig config = AgentConfig . builder()
71- .persona (" You can fetch the weather." )
71+ .instructions (" You can fetch the weather." )
7272 .addTool(new MyToolbox ())
7373 .build();
7474```
@@ -79,7 +79,7 @@ For advanced use-cases where tools need to be defined at runtime without classes
7979
8080``` java
8181AgentConfig config = AgentConfig . builder()
82- .persona (" You can fetch the weather." )
82+ .instructions (" You can fetch the weather." )
8383 .addTool(new DynamicTool () {
8484 @Override
8585 public String getName () { return " get_weather" ; }
@@ -107,7 +107,7 @@ Extend your agent with complex capabilities by loading file-based skills contain
107107
108108``` java
109109AgentConfig config = AgentConfig . builder()
110- .persona (" You are a specialized developer." )
110+ .instructions (" You are a specialized developer." )
111111 .addSkillPath(" /path/to/my-agent-skill" )
112112 .addSkillPath(" /path/to/another-skill" )
113113 .build();
@@ -119,7 +119,7 @@ Restrict which tools the agent is allowed to execute using Security Policies.
119119
120120``` java
121121AgentConfig config = AgentConfig . builder()
122- .persona (" You are restricted from running dangerous commands." )
122+ .instructions (" You are restricted from running dangerous commands." )
123123 .addPolicy(new DenyAllPolicy ()) // Blocks all tool executions by default
124124 .build();
125125```
@@ -130,7 +130,7 @@ Hook into the agent's execution lifecycle to monitor, intercept, or modify inter
130130
131131``` java
132132AgentConfig config = AgentConfig . builder()
133- .persona (" You are an observed agent." )
133+ .instructions (" You are an observed agent." )
134134 .addHook(new PreTurnHook () {
135135 @Override
136136 public HookResult onPreTurn (TriggerContext context , AgentInput input ) {
0 commit comments