File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212# See the License for the specific language governing permissions and
1313# limitations under the License.
14-
15- """An in-memory implementation of the artifact service."""
14+ from __future__ import annotations
1615
1716import logging
1817from typing import Optional
2827
2928
3029class InMemoryArtifactService (BaseArtifactService , BaseModel ):
31- """An in-memory implementation of the artifact service."""
30+ """An in-memory implementation of the artifact service.
31+
32+ It is not suitable for multi-threaded production environments. Use it for
33+ testing and development only.
34+ """
3235
3336 artifacts : dict [str , list [types .Part ]] = Field (default_factory = dict )
3437
Original file line number Diff line number Diff line change 1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212# See the License for the specific language governing permissions and
1313# limitations under the License.
14-
15-
1614from __future__ import annotations
1715
1816import re
@@ -43,6 +41,9 @@ class InMemoryMemoryService(BaseMemoryService):
4341 """An in-memory memory service for prototyping purpose only.
4442
4543 Uses keyword matching instead of semantic search.
44+
45+ It is not suitable for multi-threaded production environments. Use it for
46+ testing and development only.
4647 """
4748
4849 def __init__ (self ):
Original file line number Diff line number Diff line change 3333
3434
3535class InMemorySessionService (BaseSessionService ):
36- """An in-memory implementation of the session service."""
36+ """An in-memory implementation of the session service.
37+
38+ It is not suitable for multi-threaded production environments. Use it for
39+ testing and development only.
40+ """
3741
3842 def __init__ (self ):
3943 # A map from app name to a map from user ID to a map from session ID to
You can’t perform that action at this time.
0 commit comments