You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix issue here in this discussion -
#4208 (comment)
<!-- Thank you for your contribution! Please review
https://microsoft.github.io/autogen/docs/Contribute before opening a
pull request. -->
<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->
## Why are these changes needed?
Fix bug in AGS UI where frontend crashes because the default team config
is null
- update /teams endpoint to always return a default team if none is
found for the user
- update UI to check for team before rendering
- also update run_id type to be autoincrement int (similar to team id)
instead of uuid. This helps side step the migration failed errors
related to UUID type when using an sqlite backend
<!-- Please give a short summary of the change and the problem this
solves. -->
## Related issue number
<!-- For example: "Closes#1234" -->
## Checks
- [ ] I've included any doc changes needed for
<https://microsoft.github.io/autogen/>. See
<https://github.com/microsoft/autogen/blob/main/CONTRIBUTING.md> to
build and test documentation locally.
- [ ] I've added tests (if relevant) corresponding to the changes
introduced in this PR.
- [ ] I've made sure all auto checks have passed.
---------
Co-authored-by: Ryan Sweet <[email protected]>
Copy file name to clipboardExpand all lines: python/packages/autogen-core/docs/src/user-guide/autogenstudio-user-guide/faq.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,28 @@ A: If you are running the server on a remote machine (or a local machine that fa
114
114
autogenstudio ui --port 8081 --host 0.0.0.0
115
115
```
116
116
117
+
## Q: How do I use AutoGen Studio with a different database?
118
+
119
+
A: By default, AutoGen Studio uses SQLite as the database. However, it uses the SQLModel library, which supports multiple database backends. You can use any database supported by SQLModel, such as PostgreSQL or MySQL. To use a different database, you need to specify the connection string for the database using the `--database-uri` argument when running the application. Example connection strings include:
> **Note:** Make sure to install the appropriate database drivers for your chosen database:
133
+
>
134
+
> - PostgreSQL: `pip install psycopg2` or `pip install psycopg2-binary`
135
+
> - MySQL: `pip install pymysql`
136
+
> - SQL Server/Azure SQL: `pip install pyodbc`
137
+
> - Oracle: `pip install cx_oracle`
138
+
117
139
## Q: Can I export my agent workflows for use in a python app?
118
140
119
141
Yes. In the Team Builder view, you select a team and download its specification. This file can be imported in a python application using the `TeamManager` class. For example:
0 commit comments