Junaidb commited on
Commit
7ce36d6
·
verified ·
1 Parent(s): 9de5a60

Create agentsetup.py

Browse files
Files changed (1) hide show
  1. agentsetup.py +33 -0
agentsetup.py ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from groq import Groq
2
+
3
+
4
+ def Agent(wallet,user):
5
+
6
+
7
+
8
+ client = Groq("")
9
+ completion = client.chat.completions.create(
10
+
11
+ model="llama-3.1-8b-instant",
12
+
13
+ messages=[
14
+
15
+
16
+ {
17
+ "role": "system",
18
+ "content": ""
19
+ },
20
+
21
+ {
22
+ "role": "user",
23
+ "content": user
24
+ }
25
+ ],
26
+ temperature=1,
27
+ max_completion_tokens=8192,
28
+ top_p=1,
29
+ reasoning_effort="medium",
30
+ stream=False,
31
+ stop=None
32
+ )
33
+