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 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
-
15
- """An in-memory implementation of the artifact service."""
14
+ from __future__ import annotations
16
15
17
16
import logging
18
17
from typing import Optional
28
27
29
28
30
29
class 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
+ """
32
35
33
36
artifacts : dict [str , list [types .Part ]] = Field (default_factory = dict )
34
37
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
-
15
-
16
14
from __future__ import annotations
17
15
18
16
import re
@@ -43,6 +41,9 @@ class InMemoryMemoryService(BaseMemoryService):
43
41
"""An in-memory memory service for prototyping purpose only.
44
42
45
43
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.
46
47
"""
47
48
48
49
def __init__ (self ):
Original file line number Diff line number Diff line change 33
33
34
34
35
35
class 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
+ """
37
41
38
42
def __init__ (self ):
39
43
# 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