Skip to content

Instantly share code, notes, and snippets.

View rominirani's full-sized avatar

Romin Irani rominirani

  • Mumbai
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Text Summarizer</title>
<style>
body {
font-family: sans-serif;
}
textarea {
<!DOCTYPE html>
<html>
<head>
<title>Issue Tracker</title>
<style>
table {
border-collapse: collapse;
width: 100%;
}
th, td {
from autogen import GroupChat
from autogen import GroupChatManager
import autogen
import pprint
config_list_gemini = autogen.config_list_from_json("model_config.json")
user_proxy = autogen.UserProxyAgent(
name="User_proxy",
from autogen import ConversableAgent
import autogen
config_list_gemini = autogen.config_list_from_json("model_config.json")
article_processor_agent = ConversableAgent(
name="Exam Paper Processor Agent",
llm_config = {"config_list" : config_list_gemini},
human_input_mode = "NEVER",
)
from autogen import ConversableAgent
import autogen
import pprint
config_list_gemini = autogen.config_list_from_json("model_config.json")
article_processor_agent = ConversableAgent(
name="Article Processor Agent",
llm_config = {"config_list" : config_list_gemini},
human_input_mode = "NEVER",
------ summary ------
{'audio': None,
'content': 'Albert Einstein\'s quote "Strive not to be a success, but rather '
'to be of value" encourages a shift from seeking external '
'validation to making a positive impact on the world. It '
'emphasizes intrinsic motivation, long-term contributions, and the '
'importance of defining "value" in a way that aligns with personal '
'passions and goals. The quote transcends specific professions and '
'can be applied to various fields, prompting businesses to '
from autogen import ConversableAgent
import autogen
config_list_gemini = autogen.config_list_from_json("model_config.json")
quote_writer = ConversableAgent(
name="Quote Generator",
system_message="Your task is to provide famous quotes",
llm_config = {"config_list" : config_list_gemini},
code_execution_config = False,
<!DOCTYPE html>
<html>
<head>
<title>Blog Post Reviews</title>
<style>
table {
border-collapse: collapse;
width: 100%;
}
from autogen import ConversableAgent
import autogen
config_list_local_llm = [
{
"model": "gemma",
"base_url": "http://localhost:11434/v1",
"api_key": "ollama",
}
]
from autogen import ConversableAgent
import autogen
# Configure Gemini models
config_list_gemini = autogen.config_list_from_json("model_config.json")
human = ConversableAgent(
name="Human",
llm_config=False,
human_input_mode="ALWAYS",