Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.49.0
v2.51.0
1 change: 1 addition & 0 deletions docs/GetAiDecompilationTask.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**summary** | **str** | | [optional]
**ai_summary** | **str** | | [optional]
**raw_ai_summary** | **str** | | [optional]
**predicted_function_name** | **str** | | [optional]

## Example

Expand Down
2 changes: 1 addition & 1 deletion revengai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
""" # noqa: E501


__version__ = "v2.49.0"
__version__ = "v2.51.0"

# Define package exports
__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion revengai/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/v2.49.0/python'
self.user_agent = 'OpenAPI-Generator/v2.51.0/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
4 changes: 2 additions & 2 deletions revengai/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ def to_debug_report(self) -> str:
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v2.49.0\n"\
"SDK Package Version: v2.49.0".\
"Version of the API: v2.51.0\n"\
"SDK Package Version: v2.51.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
11 changes: 9 additions & 2 deletions revengai/models/get_ai_decompilation_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class GetAiDecompilationTask(BaseModel):
summary: Optional[StrictStr] = None
ai_summary: Optional[StrictStr] = None
raw_ai_summary: Optional[StrictStr] = None
__properties: ClassVar[List[str]] = ["status", "decompilation", "raw_decompilation", "function_mapping", "function_mapping_full", "summary", "ai_summary", "raw_ai_summary"]
predicted_function_name: Optional[StrictStr] = None
__properties: ClassVar[List[str]] = ["status", "decompilation", "raw_decompilation", "function_mapping", "function_mapping_full", "summary", "ai_summary", "raw_ai_summary", "predicted_function_name"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -121,6 +122,11 @@ def to_dict(self) -> Dict[str, Any]:
if self.raw_ai_summary is None and "raw_ai_summary" in self.model_fields_set:
_dict['raw_ai_summary'] = None

# set to None if predicted_function_name (nullable) is None
# and model_fields_set contains the field
if self.predicted_function_name is None and "predicted_function_name" in self.model_fields_set:
_dict['predicted_function_name'] = None

return _dict

@classmethod
Expand All @@ -145,7 +151,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"function_mapping_full": FunctionMappingFull.from_dict(obj["function_mapping_full"]) if obj.get("function_mapping_full") is not None else None,
"summary": obj.get("summary"),
"ai_summary": obj.get("ai_summary"),
"raw_ai_summary": obj.get("raw_ai_summary")
"raw_ai_summary": obj.get("raw_ai_summary"),
"predicted_function_name": obj.get("predicted_function_name")
})
return _obj

Expand Down
3 changes: 2 additions & 1 deletion test/test_base_response_get_ai_decompilation_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ def make_instance(self, include_optional) -> BaseResponseGetAiDecompilationTask:
}, ),
summary = '',
ai_summary = '',
raw_ai_summary = '', ),
raw_ai_summary = '',
predicted_function_name = '', ),
message = '',
errors = [
revengai.models.error_model.ErrorModel(
Expand Down
3 changes: 2 additions & 1 deletion test/test_get_ai_decompilation_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def make_instance(self, include_optional) -> GetAiDecompilationTask:
}, ),
summary = '',
ai_summary = '',
raw_ai_summary = ''
raw_ai_summary = '',
predicted_function_name = ''
)
else:
return GetAiDecompilationTask(
Expand Down