Spaces:
Runtime error

tanbushi commited on
Commit
90bc528
·
1 Parent(s): 38da498
Files changed (2) hide show
  1. ollama/__init__.py +1 -0
  2. ollama/agent.py +15 -0
ollama/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ from ollama import agent
ollama/agent.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## 调用 ollama 模型
2
+ from google.adk.agents import LlmAgent
3
+ from google.adk.models.lite_llm import LiteLlm
4
+
5
+ root_agent = LlmAgent(
6
+ model=LiteLlm(model="ollama/qwen3:0.6b"),
7
+ name="helpfull_agent",
8
+ description=(
9
+ "a helpful agent."
10
+ ),
11
+ instruction=(
12
+ "You are a helpful assistant."
13
+ )
14
+
15
+ )