feat: require LLMConfig and EmbeddingConfig to be specified for agent creation + allow multiple simultaneous provider configs for server (#1814)
Co-authored-by: Shubham Naik <shubham.naik10@gmail.com> Co-authored-by: Matthew Zhou <mattzh1314@gmail.com> Co-authored-by: Matt Zhou <mattzhou@Matts-MacBook-Pro.local> Co-authored-by: Shubham Naik <shub@memgpt.ai>
This commit is contained in:
@@ -587,8 +587,8 @@ class Message(BaseMessage):
|
||||
if self.tool_calls is not None:
|
||||
# NOTE: implied support for multiple calls
|
||||
for tool_call in self.tool_calls:
|
||||
function_name = tool_call.function["name"]
|
||||
function_args = tool_call.function["arguments"]
|
||||
function_name = tool_call.function.name
|
||||
function_args = tool_call.function.arguments
|
||||
try:
|
||||
# NOTE: Google AI wants actual JSON objects, not strings
|
||||
function_args = json.loads(function_args)
|
||||
|
||||
Reference in New Issue
Block a user