* 更新 Session * @param sessionId Session ID * @param updates 更新内容
(sessionId: string, updates: UpdateSessionRequest)
| 56 | * @param updates 更新内容 |
| 57 | */ |
| 58 | async update(sessionId: string, updates: UpdateSessionRequest): Promise<SessionInfo> { |
| 59 | return this.request<SessionInfo>(`/v1/sessions/${sessionId}`, { |
| 60 | method: "PATCH", |
| 61 | body: updates, |
| 62 | }); |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * 删除 Session |