mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 02:53:30 +00:00
21 lines
467 B
Python
21 lines
467 B
Python
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed under the terms described in the LICENSE file in
|
|
# the root directory of this source tree.
|
|
|
|
from enum import Enum
|
|
|
|
from llama_models.schema_utils import json_schema_type
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class LogFormat(Enum):
|
|
TEXT = "text"
|
|
JSON = "json"
|
|
|
|
|
|
@json_schema_type
|
|
class ConsoleConfig(BaseModel):
|
|
log_format: LogFormat = LogFormat.TEXT
|