scrape_website json extraction schema + answers guidance - #20
Merged
Conversation
scrape_website: add llm_extract param (schema/prompt) so json output works, guard when json is asked for without a parser or schema, and clarify the format docs. answers: scope the description to bounded factual questions and steer list-style extraction to create_map / get_webpage_content.
Replace em-dashes with plain punctuation in the answers description, refresh the description goldens for the new answers text, and bump the package to 1.0.17.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
scrape_website
llm_extractparam ({ schema, prompt }) sooutput_format: "json"returns structured data. It maps to the scrapes APIllm_extractfield.jsonis requested without aparserorllm_extract, return a clear message instead of the backend "requires a parser or extraction schema" error.output_formatdocs so barejsonis not picked by default.answers
create_map/get_webpage_content.jsonparam that flat shapes are more reliable than nested lists.Why
output_format: "json"on scrape_website failed with "JSON requires a parser or extraction schema" because the tool never exposed a way to pass one.answersreturned NOT_FOUND on list-style requests because it is built for factual answers, not enumerating a live list.Notes