Elffuss BraidHub

kikocis/llama-stack public

566afbf5da2b · 563 BRawPermalink
1# Copyright (c) Meta Platforms, Inc. and affiliates.
2# All rights reserved.
3#
4# This source code is licensed under the terms described in the LICENSE file in
5# the root directory of this source tree.
6
7from llama_models.schema_utils import json_schema_type
8from pydantic import BaseModel, Field
9
10
11@json_schema_type
12class RedisImplConfig(BaseModel):
13 url: str = Field(
14 description="The URL for the Redis server",
15 )
16 namespace: Optional[str] = Field(
17 default=None,
18 description="All keys will be prefixed with this namespace",
19 )