@@ -280,7 +280,7 @@ async def get_messages(self) -> List[ApiBaseMessage]:
280280 'id' : message ['message_id' ],
281281 'timestamp' : message ['timestamp' ],
282282 'text' : agent_json ['text' ],
283- 'options' :indexed_task_options
283+ 'options' : indexed_task_options
284284 })
285285 )
286286 elif is_api_context_json (message_type = agent_json_type , agent_json_text = agent_json ['text' ]):
@@ -289,8 +289,7 @@ async def get_messages(self) -> List[ApiBaseMessage]:
289289 'id' : message ['message_id' ],
290290 'timestamp' : message ['timestamp' ],
291291 'text' : agent_json ['text' ],
292- 'model' : agent_json ['context_json' ]['digest' ],
293- 'payload' : agent_json ['context_json' ]['args' ],
292+ 'payload' : agent_json ['context_json' ],
294293 })
295294 )
296295 elif is_data_request_message (message_type = agent_json_type ):
@@ -352,7 +351,7 @@ async def delete(self):
352351 endpoint = f"/v1beta1/engine/chat/sessions/{ self .session_id } "
353352 )
354353
355- async def execute_function (self , function_ids : list [str ], objective : str , context : str | None = None ):
354+ async def execute_function (self , function_ids : list [str ], objective : str , context : str | None = None ):
356355 await self ._submit_message (
357356 payload = ApiUserMessageExecuteFunctions .model_validate ({
358357 "functions" : function_ids ,
@@ -367,7 +366,6 @@ def __init__(self, api_key: str, options: Optional[dict] = None):
367366 self ._api_base_url = options .get ('api_base_url' ) if options and 'api_base_url' in options else default_api_base_url
368367 self ._api_key = api_key
369368
370-
371369 ####
372370 # Function groups
373371 ####
@@ -579,4 +577,4 @@ async def share_function_group(
579577 payload = payload
580578 )
581579 logger .debug (f"FG successfully shared: { function_group_id } with { target_user_email } " )
582- return raw_response
580+ return raw_response
0 commit comments