Uses of Class
io.github.easy4j.opencode.api.model.Session
Packages that use Session
-
Uses of Session in io.github.easy4j.opencode
Methods in io.github.easy4j.opencode that return SessionModifier and TypeMethodDescriptionOpenCodeClient.createSession(String title) 通过 OpenCode Server HTTP API 创建会话。OpenCodeClient.forkSession(String sessionId, String messageId) 从指定消息位置派生新会话,并返回服务端创建的子会话。OpenCodeClient.getSession(String sessionId) 通过 OpenCode Server HTTP API 获取会话。OpenCodeClient.shareSession(String sessionId) 为指定会话启用共享,并返回更新后的会话信息。OpenCodeClient.unshareSession(String sessionId) 取消指定会话的共享状态,并返回更新后的会话信息。Methods in io.github.easy4j.opencode that return types with arguments of type SessionModifier and TypeMethodDescriptionOpenCodeClient.findSessionByTitle(String title) 调用 OpenCode Server 搜索接口查找标题匹配的会话;未命中时返回空结果。OpenCodeClient.getSessionChildren(String sessionId) 通过 OpenCode Server HTTP API 获取子会话。OpenCodeClient.listSessions()通过 OpenCode Server HTTP API 查询会话;无数据时返回空集合。OpenCodeClient.listSessions(String search, Integer limit, Integer start) 通过 OpenCode Server HTTP API 查询会话;无数据时返回空集合。 -
Uses of Session in io.github.easy4j.opencode.api
Methods in io.github.easy4j.opencode.api that return SessionModifier and TypeMethodDescriptionOpenCodeHttpClient.createSession(String title) 通过 OpenCode Server HTTP API 创建会话。OpenCodeHttpClient.createSession(String title, OpenCodeRequestContext context) 通过 OpenCode Server HTTP API 创建会话。OpenCodeHttpClient.createSession(String title, OpenCodeRequestContext context, HttpCallCancellation cancellation) 通过 OpenCode Server HTTP API 创建会话。OpenCodeHttpClient.forkSession(String sessionId, String messageId) POST /session/:id/fork,从指定 message 处 fork session。OpenCodeHttpClient.getSession(String sessionId) 通过 OpenCode Server HTTP API 获取会话。OpenCodeHttpClient.shareSession(String sessionId) POST /session/:id/share,创建可分享链接。OpenCodeHttpClient.unshareSession(String sessionId) DELETE /session/:id/share,取消分享。Methods in io.github.easy4j.opencode.api that return types with arguments of type SessionModifier and TypeMethodDescriptionOpenCodeHttpClient.createSessionAsync(String title, OpenCodeRequestContext context, HttpCallCancellation cancellation) 异步请求 OpenCode Server 创建会话;网络或解析失败通过返回的 Future 传播。OpenCodeHttpClient.findSessionByTitle(String title) 按 title 精确查找 session。OpenCodeHttpClient.findSessionByTitle(String title, OpenCodeRequestContext context) 调用 OpenCode Server 搜索接口查找标题匹配的会话;未命中时返回空结果。OpenCodeHttpClient.findSessionByTitle(String title, OpenCodeRequestContext context, HttpCallCancellation cancellation) 调用 OpenCode Server 搜索接口查找标题匹配的会话;未命中时返回空结果。OpenCodeHttpClient.getSessionChildren(String sessionId) GET /session/:id/children,列出 session 的子(forked)session。OpenCodeHttpClient.listSessions()通过 OpenCode Server HTTP API 查询会话;无数据时返回空集合。OpenCodeHttpClient.listSessions(String search, Integer limit, Integer start) 分页/过滤列出 sessions,对齐 HermeslistSessions(limit, offset, source, includeChildren)。OpenCodeHttpClient.listSessions(String search, Integer limit, Integer start, OpenCodeRequestContext context) 通过 OpenCode Server HTTP API 查询会话;无数据时返回空集合。OpenCodeHttpClient.listSessionsAsync(String search, Integer limit, Integer start, OpenCodeRequestContext context, HttpCallCancellation cancellation) 异步分页列出会话。