-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move swarm_copy to neuroagent and delete old code. (#60)
* Move swarm_copy to neuroagent and delete old code. * Restore some of main.py's features * Remove warning ignore from pyproject * Add aiohttp * Merge main * add routeur tests * add file * adress changes --------- Co-authored-by: Boris-Bergsma <[email protected]>
- Loading branch information
Showing
147 changed files
with
2,027 additions
and
13,371 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
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 |
---|---|---|
@@ -1,49 +1,55 @@ | ||
"""Initial migration | ||
Revision ID: b57e558cf11f | ||
Revises: | ||
Revises: | ||
Create Date: 2024-11-11 14:42:05.624237 | ||
""" | ||
|
||
from typing import Sequence, Union | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision: str = 'b57e558cf11f' | ||
revision: str = "b57e558cf11f" | ||
down_revision: Union[str, None] = None | ||
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.create_table('threads', | ||
sa.Column('thread_id', sa.String(), nullable=False), | ||
sa.Column('vlab_id', sa.String(), nullable=False), | ||
sa.Column('project_id', sa.String(), nullable=False), | ||
sa.Column('title', sa.String(), nullable=False), | ||
sa.Column('creation_date', sa.DateTime(), nullable=False), | ||
sa.Column('update_date', sa.DateTime(), nullable=False), | ||
sa.Column('user_id', sa.String(), nullable=False), | ||
sa.PrimaryKeyConstraint('thread_id') | ||
op.create_table( | ||
"threads", | ||
sa.Column("thread_id", sa.String(), nullable=False), | ||
sa.Column("vlab_id", sa.String(), nullable=False), | ||
sa.Column("project_id", sa.String(), nullable=False), | ||
sa.Column("title", sa.String(), nullable=False), | ||
sa.Column("creation_date", sa.DateTime(), nullable=False), | ||
sa.Column("update_date", sa.DateTime(), nullable=False), | ||
sa.Column("user_id", sa.String(), nullable=False), | ||
sa.PrimaryKeyConstraint("thread_id"), | ||
) | ||
op.create_table('messages', | ||
sa.Column('message_id', sa.String(), nullable=False), | ||
sa.Column('order', sa.Integer(), nullable=False), | ||
sa.Column('creation_date', sa.DateTime(), nullable=False), | ||
sa.Column('content', sa.String(), nullable=False), | ||
sa.Column('thread_id', sa.String(), nullable=False), | ||
sa.ForeignKeyConstraint(['thread_id'], ['threads.thread_id'], ), | ||
sa.PrimaryKeyConstraint('message_id') | ||
op.create_table( | ||
"messages", | ||
sa.Column("message_id", sa.String(), nullable=False), | ||
sa.Column("order", sa.Integer(), nullable=False), | ||
sa.Column("creation_date", sa.DateTime(), nullable=False), | ||
sa.Column("content", sa.String(), nullable=False), | ||
sa.Column("thread_id", sa.String(), nullable=False), | ||
sa.ForeignKeyConstraint( | ||
["thread_id"], | ||
["threads.thread_id"], | ||
), | ||
sa.PrimaryKeyConstraint("message_id"), | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_table('messages') | ||
op.drop_table('threads') | ||
op.drop_table("messages") | ||
op.drop_table("threads") | ||
# ### 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
File renamed without changes.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.