You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
added examples, refactored the servers so they are consistent and more clear
Breaking Changes
the code for generating contexts has changed:
this version (currently compatible with the develop version of CAI):
defcreate_parameter_dict(my_dict: Dict) ->Optional[Dict[str, context_pb2.Context.Parameter]]:
assertisinstance(my_dict, dict) ormy_dictisNone, "parameter must be a dict or None"ifmy_dictisnotNone:
return {
key: context_pb2.Context.Parameter(
display_name=key,
value=my_dict[key]
)
forkeyinmy_dict
}
returnNone
old version (compatible with the current production CAI):
fromgoogle.protobuf.struct_pb2importStructdefget_protobuf_struct_from_dict(my_dict: Dict) ->Struct:
assertisinstance(my_dict, dict) ormy_dictisNone, "parameter must be a dict or None"result: Struct=Struct()
ifmy_dictisnotNone:
forkey, valueinmy_dict.items():
result[key] =valuereturnresult
Known issues not covered in this release
sip-client-python not open source, therefore it needs to be added seperately for external customers to use it