Skip to content

Commit

Permalink
Autogen to AG2
Browse files Browse the repository at this point in the history
  • Loading branch information
Moore, Eric authored and Moore, Eric committed Dec 13, 2024
1 parent ab5947b commit 1a30b9e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"source": [
"# LiteLLM with WatsonX \n",
"\n",
"LiteLLM is an open-source, locally run proxy server providing an OpenAI-compatible API. It supports various LLM providers, including IBM's WatsonX, enabling seamless integration with tools like AutoGen.\n",
"LiteLLM is an open-source, locally run proxy server providing an OpenAI-compatible API. It supports various LLM providers, including IBM's WatsonX, enabling seamless integration with tools like AG2.\n",
"\n",
"Running LiteLLM with WatsonX requires the following installations:\n",
"\n",
"1. **AutoGen** – A framework for building and orchestrating AI agents.\n",
"1. **AG2** – A framework for building and orchestrating AI agents.\n",
"2. **LiteLLM** – An OpenAI-compatible proxy for bridging non-compliant APIs.\n",
"3. **IBM WatsonX** – LLM service requiring specific session token authentication.\n",
"\n",
Expand Down Expand Up @@ -136,9 +136,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Installing AutoGen \n",
"## Installing AG2 \n",
"\n",
"AutoGen simplifies orchestration and communication between agents. To install:\n",
"AG2 simplifies orchestration and communication between agents. To install:\n",
"\n",
"1. Open a terminal with administrator rights.\n",
"2. Run the following command:\n",
Expand All @@ -147,7 +147,7 @@
" pip install ag2\n",
" ```\n",
"\n",
"Once installed, AutoGen agents can leverage WatsonX APIs via LiteLLM.\n",
"Once installed, AG2 agents can leverage WatsonX APIs via LiteLLM.\n",
"\n",
"---\n",
"```bash\n",
Expand Down Expand Up @@ -175,7 +175,7 @@
" \"cache_seed\": None, # Disable caching.\n",
"}\n",
"\n",
"from autogen import ConversableAgent, AssistantAgent\n",
"from AG2 import ConversableAgent, AssistantAgent\n",
"\n",
"jack = ConversableAgent(\n",
" \"Jack (Phi-2)\",\n",
Expand All @@ -189,7 +189,7 @@
" system_message=\"Your name is Emma and you are a comedian in two-person comedy show.\",\n",
")\n",
"\n",
"#autogen\n",
"#AG2\n",
"chat_result = jack.initiate_chat(emma, message=\"Emma, tell me a joke.\", max_turns=2)\n",
"```"
]
Expand Down

0 comments on commit 1a30b9e

Please sign in to comment.