Skip to content

Commit 907d542

Browse files
revert
1 parent ae11459 commit 907d542

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

stagehand/handlers/extract_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
from stagehand.a11y.utils import get_accessibility_tree
88
from stagehand.llm.inference import extract as extract_inference
99
from stagehand.metrics import StagehandFunctionName # Changed import location
10-
from stagehand.schemas import (
11-
DEFAULT_EXTRACT_SCHEMA,
10+
from stagehand.types import (
11+
DefaultExtractSchema,
1212
ExtractOptions,
1313
ExtractResult,
1414
)
@@ -97,7 +97,7 @@ async def extract(
9797
# TODO: Remove this once we have a better way to handle URLs
9898
transformed_schema, url_paths = transform_url_strings_to_ids(schema)
9999
else:
100-
transformed_schema = DEFAULT_EXTRACT_SCHEMA
100+
transformed_schema = DefaultExtractSchema
101101

102102
# Use inference to call the LLM
103103
extraction_response = extract_inference(

stagehand/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
)
1616
from .agent import (
1717
AgentConfig,
18+
AgentExecuteOptions,
19+
AgentResult,
1820
)
1921
from .llm import (
2022
ChatMessage,

0 commit comments

Comments
 (0)