Commit 8a7a658
committed
feat(agents): AgentBuilder.Build() auto-applies to the global policy when present
Build() now registers the config on CoreAIAgent.Policy the moment it is built (when a policy exists),
so a role is routable immediately — complementing the first-Ask auto-registration. BuildDetached()
still leaves the global policy untouched. EditMode test added.1 parent 60bb168 commit 8a7a658
3 files changed
Lines changed: 7 additions & 2 deletions
File tree
- Assets
- CoreAI
- Runtime/Core/Features/AgentMemory
- CoreAiUnity/Tests/EditMode
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
849 | | - | |
| 849 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
0 commit comments