WithAgentName pins this session to a specific agent. When set, RunStream resolves the agent from the session rather than the shared runtime state, which is required for concurrent background agent tasks.
(name string)
| 861 | // resolves the agent from the session rather than the shared runtime state, |
| 862 | // which is required for concurrent background agent tasks. |
| 863 | func WithAgentName(name string) Opt { |
| 864 | return func(s *Session) { |
| 865 | s.AgentName = name |
| 866 | } |
| 867 | } |
| 868 | |
| 869 | // WithParentID marks this session as a sub-session of the given parent. |
| 870 | // Sub-sessions are not persisted as standalone entries in the session store. |
no outgoing calls