feat: tools agent refactor for custom fields and unique actions

This commit is contained in:
Siddhant Rai
2024-12-19 20:34:20 +05:30
parent f67b79f007
commit 4c3f990d4b
3 changed files with 104 additions and 81 deletions

View File

@@ -19,7 +19,7 @@ class GroqLLM(BaseLLM):
response = self.client.chat.completions.create(
model=model, messages=messages, stream=stream, **kwargs
)
return response.choices[0].message.content
return response.choices[0].message.content
def _raw_gen_stream(
self, baseself, model, messages, stream=True, tools=None, **kwargs