Skip to content

Commit 0ef8ccc

Browse files
authored
Merge pull request #2395 from tisnik/lcore-3473-added-new-common-models
LCORE-3473: added new common models
2 parents 4bbb3f6 + dfa6b60 commit 0ef8ccc

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

src/models/common/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
from models.common.query import Attachment, SolrVectorSearchRequest
2222
from models.common.shields import CatalogShield
2323
from models.common.skills import SkillMetadata
24+
from models.common.tools import (
25+
CatalogTool,
26+
CatalogToolParameter,
27+
ListedMcpTool,
28+
)
2429
from models.common.transcripts import Transcript, TranscriptMetadata
2530
from models.common.turn_summary import (
2631
MCPListToolsSummary,
@@ -37,11 +42,14 @@
3742
"Attachment",
3843
"CatalogModel",
3944
"CatalogShield",
45+
"CatalogTool",
46+
"CatalogToolParameter",
4047
"ConversationData",
4148
"ConversationDetails",
4249
"ConversationTurn",
4350
"FeedbackCategory",
4451
"HealthStatus",
52+
"ListedMcpTool",
4553
"MCPListToolsSummary",
4654
"MCPServerAuthInfo",
4755
"MCPServerInfo",

src/utils/models_dumper.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@
108108

109109
common_models: list[type[BaseModel]] = [
110110
c.Attachment,
111+
c.CatalogModel,
112+
c.CatalogShield,
111113
c.ConversationData,
112114
c.ConversationDetails,
113115
c.ConversationTurn,
@@ -129,6 +131,9 @@
129131
c.Transcript,
130132
c.TranscriptMetadata,
131133
c.TurnSummary,
134+
c.CatalogTool,
135+
c.CatalogToolParameter,
136+
c.ListedMcpTool,
132137
]
133138

134139
agents_models: list[type[BaseModel]] = [

tests/unit/utils/test_models_dumper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10439,6 +10439,9 @@ def test_dump_models_group_common(tmpdir: Path) -> None:
1043910439
"Transcript",
1044010440
"TranscriptMetadata",
1044110441
"TurnSummary",
10442+
"CatalogTool",
10443+
"CatalogToolParameter",
10444+
"ListedMcpTool",
1044210445
]
1044310446
check_json_file_content(filename, expected_schemas)
1044410447

0 commit comments

Comments
 (0)