feat: 重构MCP功能和AI服务提供者架构
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
"""关系管理相关的Pydantic模型"""
|
||||
from pydantic import BaseModel, Field
|
||||
from pydantic import BaseModel, Field, ConfigDict
|
||||
from typing import Optional, List
|
||||
from datetime import datetime
|
||||
|
||||
@@ -17,8 +17,7 @@ class RelationshipTypeResponse(BaseModel):
|
||||
description: Optional[str] = None
|
||||
created_at: datetime
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
||||
# ============ 角色关系相关 ============
|
||||
@@ -62,8 +61,7 @@ class CharacterRelationshipResponse(CharacterRelationshipBase):
|
||||
created_at: datetime
|
||||
updated_at: datetime
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
||||
class RelationshipGraphNode(BaseModel):
|
||||
@@ -127,8 +125,7 @@ class OrganizationResponse(OrganizationBase):
|
||||
created_at: datetime
|
||||
updated_at: datetime
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
||||
class OrganizationDetailResponse(BaseModel):
|
||||
@@ -185,8 +182,7 @@ class OrganizationMemberResponse(OrganizationMemberBase):
|
||||
created_at: datetime
|
||||
updated_at: datetime
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
|
||||
class OrganizationMemberDetailResponse(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user