-
Notifications
You must be signed in to change notification settings - Fork 837
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
558b9be
commit 374b232
Showing
6 changed files
with
133 additions
and
27 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
alembic/versions/2025_01_10_2246-6a947c379c02_observer_summary_and_output.py
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
"""observer summary and output | ||
Revision ID: 6a947c379c02 | ||
Revises: d5640aa644b9 | ||
Create Date: 2025-01-10 22:46:41.757862+00:00 | ||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
import sqlalchemy as sa | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = "6a947c379c02" | ||
down_revision: Union[str, None] = "d5640aa644b9" | ||
branch_labels: Union[str, Sequence[str], None] = None | ||
depends_on: Union[str, Sequence[str], None] = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column("observer_cruises", sa.Column("summary", sa.String(), nullable=True)) | ||
op.add_column("observer_cruises", sa.Column("output", sa.JSON(), nullable=True)) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column("observer_cruises", "output") | ||
op.drop_column("observer_cruises", "summary") | ||
# ### end Alembic commands ### |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
The AI assistant has helped the user achieve the user goal in the web. | ||
Given the user goal, the latest screenshot of the page and the mini tasks that have been completed by the user along the way, summarize what has been achieved and output structured data related to the user goal in json format. | ||
You want to present the response in a clear way so that user can clearly understand what has been achieved. | ||
|
||
Reply in JSON format with the following keys: | ||
{ | ||
"description": str, // Summarize what has been achieved and describe the information extracted related to the user goal if any. Be precise and concise. | ||
"output": json, // Structured data related to the user goal if any. | ||
} | ||
|
||
User goal: | ||
``` | ||
{{ user_goal }} | ||
``` | ||
|
||
Task history (the earliest task is the first in the list and the latest is the last in the list): | ||
``` | ||
{{ task_history }} | ||
``` | ||
|
||
Current datetime, ISO format: | ||
``` | ||
{{ local_datetime }} | ||
``` |
This file contains 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
This file contains 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
This file contains 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
This file contains 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