mirror of
https://github.com/microsoft/autogen.git
synced 2026-01-27 04:58:04 -05:00
* add client interface, response protocol, and move code into openai client class * add ability to register custom client * tidy up code * adding checks and errors, and more unit tests * remove code * fix error msg * add use_docer False in notebook * better error message * add another example to custom model notebook * rename and have register_client take model name too * make Client protocol and remove inheritance * renames * update notebook * add link * rename and more error checking for registered agents * adding message retrieval to client protocol for more flexible response * fix failing openai test * api_type req made model_client_cls requirement * notebook cleanup and added blog * remove raise error if client list is empty - client list will never be empty it will have placeholders * rename Client -> ModelClient * add forgotten file * fix test by fetching internal client * Update autogen/oai/client.py Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com> * don't add retrieval function to cache * added placeholder cllient class during initial client init, and rewrote registration * fix spelling * Update autogen/agentchat/conversable_agent.py Co-authored-by: Chi Wang <wang.chi@microsoft.com> * type hints, small fixes, docstr comment * fix api type checking --------- Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com> Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Website
This website is built using Docusaurus 3, a modern static website generator.
Prerequisites
To build and test documentation locally, begin by downloading and installing Node.js, and then installing Yarn. On Windows, you can install via the npm package manager (npm) which comes bundled with Node.js:
npm install --global yarn
Installation
pip install pydoc-markdown
cd website
yarn install
Install Quarto
quarto is used to render notebooks.
Install it here.
Note: Support for Docusaurus 3.0 in Quarto is from version
1.4. Ensure that yourquartoversion is1.4or higher.
Local Development
Navigate to the website folder and run:
pydoc-markdown
quarto render ./docs
yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.