ABVM commited on
Commit
a7fbbfc
·
verified ·
1 Parent(s): 28edc7c

Update multi_agent.py

Browse files
Files changed (1) hide show
  1. multi_agent.py +5 -1
multi_agent.py CHANGED
@@ -44,6 +44,10 @@ def image_process(image_file: str) -> Dict[str, str]:
44
  }
45
 
46
  # ---- GROQ MODEL WRAPPER ----
 
 
 
 
47
  class GroqModel:
48
  def __init__(self, model_name=""):
49
  self.model_name = model_name
@@ -60,7 +64,7 @@ class GroqModel:
60
  stream=False,
61
  max_tokens=max_tokens,
62
  )
63
- return response.choices[0].message.content
64
 
65
  def generate(self, prompt, max_tokens=8096, **kwargs):
66
  # For compatibility with agent frameworks
 
44
  }
45
 
46
  # ---- GROQ MODEL WRAPPER ----
47
+ class LLMResponse:
48
+ def __init__(self, content):
49
+ self.content = content
50
+
51
  class GroqModel:
52
  def __init__(self, model_name=""):
53
  self.model_name = model_name
 
64
  stream=False,
65
  max_tokens=max_tokens,
66
  )
67
+ return LLMResponse(response.choices[0].message.content)
68
 
69
  def generate(self, prompt, max_tokens=8096, **kwargs):
70
  # For compatibility with agent frameworks