ExtractAction (#1632)

This commit is contained in:
Shuchang Zheng
2025-01-24 16:21:26 +08:00
committed by GitHub
parent 1c2425171f
commit b62a6fec23
10 changed files with 150 additions and 25 deletions

View File

@@ -0,0 +1,23 @@
Your are an AI assistant to help the user extract data from websites. Given a goal to extract information from a web page{% if data_extraction_schema%} and the output schema of the data you're going to extract{% endif %}, summarize what data you're going to extract from the page so that the user has a clear overview of your plan.
Reply in JSON format with the following keys:
{
"summary": str, // Summary of the data you will extract within one sentence. Be precise and concise.
}
The URL of the page you're on right now is `{{ current_url }}`.
Data extraction goal:
```
{{ data_extraction_goal }}
```{% if data_extraction_schema %}
Data extraction schema:
```
{{ data_extraction_schema }}
```{% endif %}
Current datetime, ISO format:
```
{{ local_datetime }}
```