WithAttachedFiles seeds the session with absolute paths of files the user attached. Used when creating sub-sessions so that delegated agents inherit the parent's file context. Empty and duplicate paths are dropped.
(paths []string)
| 934 | // attached. Used when creating sub-sessions so that delegated agents inherit |
| 935 | // the parent's file context. Empty and duplicate paths are dropped. |
| 936 | func WithAttachedFiles(paths []string) Opt { |
| 937 | return func(s *Session) { |
| 938 | for _, p := range paths { |
| 939 | s.AddAttachedFile(p) |
| 940 | } |
| 941 | } |
| 942 | } |
| 943 | |
| 944 | // IsSubSession returns true if this session is a sub-session (has a parent). |
| 945 | func (s *Session) IsSubSession() bool { |