CurrentAgent returns the current agent
()
| 1169 | |
| 1170 | // CurrentAgent returns the current agent |
| 1171 | func (r *LocalRuntime) CurrentAgent() *agent.Agent { |
| 1172 | return r.agents.Current() |
| 1173 | } |
| 1174 | |
| 1175 | // resolveSessionAgent returns the agent for the given session. Delegates to |
| 1176 | // agentRouter.ResolveSession; kept on LocalRuntime for the existing callsites |