17 lines
323 B
Python
17 lines
323 B
Python
import json
|
|
from pydantic import BaseModel, Field
|
|
from typing import List, Optional, Callable, Literal, Union, Dict, Any
|
|
|
|
|
|
class ChatLaw(BaseModel):
|
|
ref_ids: List
|
|
answer: str
|
|
answer_type: str
|
|
llm_reason: str = None
|
|
metadata: Dict
|
|
|
|
class TitleRepeat(BaseModel):
|
|
title: str
|
|
id: str
|
|
score: int
|