diff --git a/agentscope-core/src/main/java/io/agentscope/core/tool/ContextStore.java b/agentscope-core/src/main/java/io/agentscope/core/tool/ContextStore.java index 72b3213941..d77986ed2c 100644 --- a/agentscope-core/src/main/java/io/agentscope/core/tool/ContextStore.java +++ b/agentscope-core/src/main/java/io/agentscope/core/tool/ContextStore.java @@ -18,16 +18,17 @@ /** * Storage layer abstraction for tool execution context. * - *

This interface defines the storage contract for context objects. It supports two retrieval + *

This interface defines the storage contract for context objects. It supports three retrieval * modes: *

    *
  1. By type only: {@code get(Class)} - suitable for singleton scenarios
  2. *
  3. By key + type: {@code get(String, Class)} - suitable for multi-instance - * scenarios
  4. + * scenarios requiring type safety *
* - *

This design allows handling both simple cases (one UserContext) and complex cases - * (multiple UserContext instances for different users). + *

This design allows handling both simple cases (one UserContext), complex cases + * (multiple UserContext instances for different users), and dynamic attributes (like a simple + * string tenantId). * *

Implementations can be: *