You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// val getCountriesTool = LongRunningFunctionTool.create(ClimateTraceTool::class.java, "getCountries")
40
+
// val getEmissionsTool = LongRunningFunctionTool.create(ClimateTraceTool::class.java, "getEmissions")
41
+
// val climateTools = listOf(getCountriesTool, getEmissionsTool, GoogleSearchTool())
35
42
36
-
val getCountriesTool =LongRunningFunctionTool.create(ClimateTraceTool::class.java, "getCountries")
37
-
val getEmissionsTool =LongRunningFunctionTool.create(ClimateTraceTool::class.java, "getEmissions")
38
-
val mcpTools =listOf(getCountriesTool, getEmissionsTool)
39
43
40
44
val model =Gemini(
41
-
"gemini-1.5-pro",
45
+
"gemini-2.0-flash",
42
46
Client.builder()
43
47
.apiKey(apiKeyGoogle)
44
48
.build()
45
49
)
46
50
47
-
returnLlmAgent.builder()
48
-
.name(NAME)
51
+
52
+
val searchAgent =LlmAgent.builder()
53
+
.name("SearchAgent")
54
+
.model(model)
55
+
.description("Google Search agent")
56
+
.instruction("You're a specialist in Google Search")
57
+
.tools(GoogleSearchTool())
58
+
.build()
59
+
60
+
val climateAgent =LlmAgent.builder()
61
+
.name("ClimateAgent")
49
62
.model(model)
50
63
.description("Agent to answer climate emissions related questions.")
51
64
.instruction("You are an agent that provides climate emissions related information. Use 3 letter country codes.")
52
-
.tools(mcpTools)
65
+
.tools(climateTools)
66
+
.build()
67
+
68
+
returnLlmAgent.builder()
69
+
.name(NAME)
70
+
.description("Agent to answer climate emissions related questions.")
71
+
//.instruction("You are an agent that provides climate emissions related information. Use 3 letter country codes. Use SearchAgent for population data.")
72
+
.instruction("""
73
+
You are an agent that provides climate emissions related information.
0 commit comments