This file contains hidden or 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
| import { | |
| CopilotRuntime, | |
| copilotRuntimeNextJSAppRouterEndpoint, | |
| LangChainAdapter, | |
| OpenAIAdapter, | |
| langGraphPlatformEndpoint | |
| } from "@copilotkit/runtime"; | |
| import { NextRequest } from "next/server"; | |
| import { ChatOpenAI } from "@langchain/openai"; |
This file contains hidden or 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
| """Author: https://github.com/lestan""" | |
| """Tested on AutoGen version 0.2.19""" | |
| """This is a basic working version of AutoGen that uses a local LLM served by Ollama""" | |
| from autogen import AssistantAgent, UserProxyAgent, ConversableAgent | |
| from autogen.coding import LocalCommandLineCodeExecutor, DockerCommandLineCodeExecutor | |
| import os | |
| from pathlib import Path | |
| import pprint | |
| #model = "mixtral:latest" |