CreateSession creates a new session
(ctx context.Context, sessTemplate *session.Session)
| 297 | |
| 298 | // CreateSession creates a new session |
| 299 | func (c *Client) CreateSession(ctx context.Context, sessTemplate *session.Session) (*session.Session, error) { |
| 300 | var sess session.Session |
| 301 | err := c.doRequest(ctx, http.MethodPost, "/api/sessions", sessTemplate, &sess) |
| 302 | return &sess, err |
| 303 | } |
| 304 | |
| 305 | // ResumeSession resumes a session by ID with optional rejection reason or tool name |
| 306 | func (c *Client) ResumeSession(ctx context.Context, id, confirmation, reason, toolName string) error { |
no test coverage detected