Skip to content

Commit 30e6ce6

Browse files
committed
make pydantic a conditional import
1 parent c77fc8a commit 30e6ce6

File tree

1 file changed

+2
-2
lines changed
  • lib/idp_common_pkg/idp_common/extraction

1 file changed

+2
-2
lines changed

lib/idp_common_pkg/idp_common/extraction/service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
import time
1515
from typing import Any, Dict, List, Optional, Type
1616

17-
from pydantic import BaseModel, Field, create_model
18-
1917
from idp_common import bedrock, image, metrics, s3, utils
2018
from idp_common.models import Document
2119

2220
# Conditional import for agentic extraction (requires Python 3.10+ dependencies)
2321
try:
22+
from pydantic import BaseModel, Field, create_model
23+
2424
from idp_common.extraction.agentic_idp import structured_output
2525

2626
AGENTIC_AVAILABLE = True

0 commit comments

Comments
 (0)