(perms *PermissionsConfig)
| 852 | } |
| 853 | |
| 854 | func WithPermissions(perms *PermissionsConfig) Opt { |
| 855 | return func(s *Session) { |
| 856 | s.Permissions = perms |
| 857 | } |
| 858 | } |
| 859 | |
| 860 | // WithAgentName pins this session to a specific agent. When set, RunStream |
| 861 | // resolves the agent from the session rather than the shared runtime state, |
no outgoing calls