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
| 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, |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Blog Post Reviews</title> | |
| <style> | |
| table { | |
| border-collapse: collapse; | |
| width: 100%; | |
| } |
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
| from autogen import ConversableAgent | |
| import autogen | |
| config_list_local_llm = [ | |
| { | |
| "model": "gemma", | |
| "base_url": "http://localhost:11434/v1", | |
| "api_key": "ollama", | |
| } | |
| ] |
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
| 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", |
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
| from autogen import ConversableAgent | |
| import autogen | |
| # Configure Gemini models | |
| config_list_gemini = autogen.config_list_from_json("model_config.json") | |
| SYSTEM_MESSAGE_INITIAL_CFP_WRITER = """ | |
| Your task is to write a good, clean, and impactful proposal or submission for a CFP to a technical event. | |
| Generate only the following as part of the CFP: | |
| - Title |
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
| CFP Writer (to CFP Reviewer): | |
| Following is a rough idea for which I would like a talk proposal that I can submit: | |
| ## Title: Multi-Agent Systems with Agentic Framework and Gemini Models | |
| ## Abstract: | |
| This talk explores the power of multi-agent systems powered by the Agentic framework and Gemini models. We will delve into the architecture and functionalities of the Agentic framework, showcasing its ability to orchestrate and manage complex interactions between multiple agents. We will then demonstrate how Gemini models, with their advanced language and reasoning capabilities, can be effectively integrated into these agents, enabling them to perform sophisticated tasks and achieve desired outcomes. The talk will highlight practical applications and real-world scenarios where this powerful combination can be leveraged for innovative solutions. | |
| ## Key Takeaways: |
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
| from autogen import ConversableAgent | |
| import autogen | |
| # Configure Gemini models | |
| config_list_gemini = autogen.config_list_from_json("model_config.json") | |
| SYSTEM_MESSAGE_INITIAL_CFP_WRITER = """ | |
| Your task is to write a good, clean, and impactful proposal or submission for a CFP to a technical event. | |
| Generate only the following as part of the CFP: | |
| - Title |
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
| package com.geminidemo; | |
| import com.google.cloud.vertexai.VertexAI; | |
| import com.google.cloud.vertexai.api.Content; | |
| import com.google.cloud.vertexai.api.FunctionCall; | |
| import com.google.cloud.vertexai.api.FunctionDeclaration; | |
| import com.google.cloud.vertexai.api.GenerateContentResponse; | |
| import com.google.cloud.vertexai.api.GenerationConfig; | |
| import com.google.cloud.vertexai.api.HarmCategory; | |
| import com.google.cloud.vertexai.api.SafetySetting; |
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
| package gcfv2; | |
| import java.io.BufferedWriter; | |
| import com.google.gson.Gson; | |
| import com.google.gson.JsonObject; | |
| import java.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| import java.util.stream.Collectors; |
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
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>gcfv2</groupId> | |
| <artifactId>http</artifactId> | |
| <version>0.0.1</version> | |
| <name>HTTP Function for Cloud Functions 2nd gen</name> | |
| <properties> | |
| <maven.compiler.target>11</maven.compiler.target> |