session: add Agent.ID() method

This commit is contained in:
Levi Neely 2026-07-29 20:49:51 +02:00
parent d6c56bd4f0
commit 84a64e9251
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ func (ag *Agent) Backend() backend.Backend {
// Name returns the agent's name.
func (ag *Agent) Name() string { return ag.agentName }
// ID returns the agent's unique identity.
func (ag *Agent) ID() string { return ag.id }
// BackendName returns the name of the active backend.
func (ag *Agent) BackendName() string {
if ag.runtime == nil || ag.runtime.Backend == nil {