AS AgentScopeAPI 手册 / API Reference

SessionIdUtils

public final class SessionIdUtils
源码Source io/agentscope/harness/agent/gateway/SessionIdUtils.java:28–52

会话标识 Utils,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.agent.gateway 包。核心成员包括 deterministicHash。

Deterministic session-ID derivation. Produces a 12-character hex string from arbitrary input parts using SHA-256, guaranteeing the same inputs always yield the same output regardless of JVM instance or machine.

方法摘要Method Summary

方法Method说明Description
public static String deterministicHash(String... parts)
static
设置该参数。
Returns a 12-character lowercase hex hash derived from the given parts joined by `"/"`.

方法详情Method Detail

deterministicHash

public static String deterministicHash(String... parts)
static

设置该参数。

Returns a 12-character lowercase hex hash derived from the given parts joined by "/".

参数Parameters
名称Name类型Type说明Description
parts varargsString...parts(类型 `String...`)。one or more non-null seed values
返回Returns String
返回字符串结果。12-char hex string
源码Source io/agentscope/harness/agent/gateway/SessionIdUtils.java:42–51
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.