add phone number format checking (#2125)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from typing import Any
|
||||
|
||||
import structlog
|
||||
from pydantic import BaseModel
|
||||
|
||||
from skyvern.constants import DEFAULT_MAX_TOKENS
|
||||
from skyvern.forge.sdk.prompting import PromptEngine
|
||||
@@ -10,6 +11,13 @@ from skyvern.webeye.scraper.scraper import ScrapedPage
|
||||
LOG = structlog.get_logger()
|
||||
|
||||
|
||||
class CheckPhoneNumberFormatResponse(BaseModel):
|
||||
phone_number_format: str
|
||||
thought: str
|
||||
is_current_format_correct: bool
|
||||
recommended_phone_number: str | None
|
||||
|
||||
|
||||
def load_prompt_with_elements(
|
||||
scraped_page: ScrapedPage,
|
||||
prompt_engine: PromptEngine,
|
||||
|
||||
Reference in New Issue
Block a user