Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AGS to Use AgentChat Declarative Config Serialization #5261

Merged
merged 22 commits into from
Jan 31, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
v2 on ags migration
victordibia committed Jan 27, 2025
commit d0377798b09cb438b715e5a0713f5cca2a3ad62d
4 changes: 2 additions & 2 deletions python/packages/autogen-studio/autogenstudio/datamodel/db.py
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ class Team(SQLModel, table=True):
) # pylint: disable=not-callable
user_id: Optional[str] = None
version: Optional[str] = "0.0.1"
config: Union[ComponentModel, dict] = Field(sa_column=Column(JSON))
component: Union[ComponentModel, dict] = Field(sa_column=Column(JSON))



@@ -42,7 +42,7 @@ class Message(SQLModel, table=True):
) # pylint: disable=not-callable
user_id: Optional[str] = None
version: Optional[str] = "0.0.1"
config: Union[MessageConfig, dict] = Field(default_factory=MessageConfig, sa_column=Column(JSON))
component: Union[MessageConfig, dict] = Field(default_factory=MessageConfig, sa_column=Column(JSON))
session_id: Optional[int] = Field(
default=None, sa_column=Column(Integer, ForeignKey("session.id", ondelete="CASCADE"))
)
Loading