forked from TransformerOptimus/SuperAGI
-
Notifications
You must be signed in to change notification settings - Fork 0
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
6f614c3
commit b232c67
Showing
11 changed files
with
142 additions
and
82 deletions.
There are no files selected for viewing
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
46 changes: 46 additions & 0 deletions
46
migrations/versions/864d7872b598_added_agent_execution_config.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,46 @@ | ||
"""added_agent_execution_config | ||
Revision ID: 864d7872b598 | ||
Revises: c5c19944c90c | ||
Create Date: 2023-07-03 11:50:04.038668 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy.dialects import postgresql | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = '864d7872b598' | ||
down_revision = 'c5c19944c90c' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_table('agent_execution_configs', | ||
sa.Column('created_at', sa.DateTime(), nullable=True), | ||
sa.Column('updated_at', sa.DateTime(), nullable=True), | ||
sa.Column('id', sa.Integer(), nullable=False), | ||
sa.Column('agent_execution_id', sa.Integer(), nullable=True), | ||
sa.Column('key', sa.String(), nullable=True), | ||
sa.Column('value', sa.Text(), nullable=True), | ||
sa.PrimaryKeyConstraint('id') | ||
) | ||
op.drop_table('tool_statistics') | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.create_table('tool_statistics', | ||
sa.Column('created_at', postgresql.TIMESTAMP(), autoincrement=False, nullable=True), | ||
sa.Column('updated_at', postgresql.TIMESTAMP(), autoincrement=False, nullable=True), | ||
sa.Column('id', sa.INTEGER(), autoincrement=True, nullable=False), | ||
sa.Column('toolkit_id', sa.INTEGER(), autoincrement=False, nullable=True), | ||
sa.Column('key', sa.VARCHAR(), autoincrement=False, nullable=True), | ||
sa.Column('value', sa.VARCHAR(), autoincrement=False, nullable=True), | ||
sa.PrimaryKeyConstraint('id', name='tool_statistics_pkey') | ||
) | ||
op.drop_table('agent_execution_configs') | ||
# ### 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from typing import List, Optional | ||
|
||
from pydantic import BaseModel | ||
from pydantic_sqlalchemy import sqlalchemy_to_pydantic | ||
from superagi.models.agent_execution import AgentExecution | ||
|
||
|
||
class AgentExecutionConfigRequest(BaseModel): | ||
AgentExecution: Optional[sqlalchemy_to_pydantic(AgentExecution, exclude=["id"])] | ||
goal: List[str] | ||
instruction: List[str] |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# from typing import List | ||
# | ||
# from pydantic import BaseModel | ||
# | ||
# | ||
# class AgentExecutionConfig(BaseModel): | ||
# goal: List[str] | ||
# instruction: List[str] |