Skip to content
Open
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 @@
v3.113.0
v3.114.2
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ Class | Method | HTTP request | Description
- [EventTITLEUPDATED](docs/EventTITLEUPDATED.md)
- [EventTOOLCALLARGSDELTA](docs/EventTOOLCALLARGSDELTA.md)
- [EventTOOLCALLEND](docs/EventTOOLCALLEND.md)
- [EventTOOLCALLPROGRESS](docs/EventTOOLCALLPROGRESS.md)
- [EventTOOLCALLRESULT](docs/EventTOOLCALLRESULT.md)
- [EventTOOLCALLSTART](docs/EventTOOLCALLSTART.md)
- [EventTOOLCONFIRMATIONREQUIRED](docs/EventTOOLCONFIRMATIONREQUIRED.md)
Expand Down Expand Up @@ -647,6 +648,7 @@ Class | Method | HTTP request | Description
- [SseEventTitleUpdatedData](docs/SseEventTitleUpdatedData.md)
- [SseEventToolCallArgsDeltaData](docs/SseEventToolCallArgsDeltaData.md)
- [SseEventToolCallEndData](docs/SseEventToolCallEndData.md)
- [SseEventToolCallProgressData](docs/SseEventToolCallProgressData.md)
- [SseEventToolCallResultData](docs/SseEventToolCallResultData.md)
- [SseEventToolCallStartData](docs/SseEventToolCallStartData.md)
- [SseEventToolConfirmationRequiredData](docs/SseEventToolConfirmationRequiredData.md)
Expand Down
32 changes: 32 additions & 0 deletions docs/EventTOOLCALLPROGRESS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# EventTOOLCALLPROGRESS


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**SseEventToolCallProgressData**](SseEventToolCallProgressData.md) | |
**event** | **str** | The event name. |
**id** | **int** | The event ID. | [optional]
**retry** | **int** | The retry time in milliseconds. | [optional]

## Example

```python
from revengai.models.event_toolcallprogress import EventTOOLCALLPROGRESS

# TODO update the JSON string below
json = "{}"
# create an instance of EventTOOLCALLPROGRESS from a JSON string
event_toolcallprogress_instance = EventTOOLCALLPROGRESS.from_json(json)
# print the JSON string representation of the object
print(EventTOOLCALLPROGRESS.to_json())

# convert the object into a dict
event_toolcallprogress_dict = event_toolcallprogress_instance.to_dict()
# create an instance of EventTOOLCALLPROGRESS from a dict
event_toolcallprogress_from_dict = EventTOOLCALLPROGRESS.from_dict(event_toolcallprogress_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


32 changes: 32 additions & 0 deletions docs/SseEventToolCallProgressData.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# SseEventToolCallProgressData


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | **object** | |
**event_id** | **int** | |
**source_run_id** | **str** | | [optional]
**type** | **str** | |

## Example

```python
from revengai.models.sse_event_tool_call_progress_data import SseEventToolCallProgressData

# TODO update the JSON string below
json = "{}"
# create an instance of SseEventToolCallProgressData from a JSON string
sse_event_tool_call_progress_data_instance = SseEventToolCallProgressData.from_json(json)
# print the JSON string representation of the object
print(SseEventToolCallProgressData.to_json())

# convert the object into a dict
sse_event_tool_call_progress_data_dict = sse_event_tool_call_progress_data_instance.to_dict()
# create an instance of SseEventToolCallProgressData from a dict
sse_event_tool_call_progress_data_from_dict = SseEventToolCallProgressData.from_dict(sse_event_tool_call_progress_data_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


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


__version__ = "v3.113.0"
__version__ = "v3.114.2"

# Define package exports
__all__ = [
Expand Down Expand Up @@ -294,6 +294,7 @@
"EventTITLEUPDATED",
"EventTOOLCALLARGSDELTA",
"EventTOOLCALLEND",
"EventTOOLCALLPROGRESS",
"EventTOOLCALLRESULT",
"EventTOOLCALLSTART",
"EventTOOLCONFIRMATIONREQUIRED",
Expand Down Expand Up @@ -486,6 +487,7 @@
"SseEventTitleUpdatedData",
"SseEventToolCallArgsDeltaData",
"SseEventToolCallEndData",
"SseEventToolCallProgressData",
"SseEventToolCallResultData",
"SseEventToolCallStartData",
"SseEventToolConfirmationRequiredData",
Expand Down Expand Up @@ -846,6 +848,7 @@
from revengai.models.event_titleupdated import EventTITLEUPDATED as EventTITLEUPDATED
from revengai.models.event_toolcallargsdelta import EventTOOLCALLARGSDELTA as EventTOOLCALLARGSDELTA
from revengai.models.event_toolcallend import EventTOOLCALLEND as EventTOOLCALLEND
from revengai.models.event_toolcallprogress import EventTOOLCALLPROGRESS as EventTOOLCALLPROGRESS
from revengai.models.event_toolcallresult import EventTOOLCALLRESULT as EventTOOLCALLRESULT
from revengai.models.event_toolcallstart import EventTOOLCALLSTART as EventTOOLCALLSTART
from revengai.models.event_toolconfirmationrequired import EventTOOLCONFIRMATIONREQUIRED as EventTOOLCONFIRMATIONREQUIRED
Expand Down Expand Up @@ -1038,6 +1041,7 @@
from revengai.models.sse_event_title_updated_data import SseEventTitleUpdatedData as SseEventTitleUpdatedData
from revengai.models.sse_event_tool_call_args_delta_data import SseEventToolCallArgsDeltaData as SseEventToolCallArgsDeltaData
from revengai.models.sse_event_tool_call_end_data import SseEventToolCallEndData as SseEventToolCallEndData
from revengai.models.sse_event_tool_call_progress_data import SseEventToolCallProgressData as SseEventToolCallProgressData
from revengai.models.sse_event_tool_call_result_data import SseEventToolCallResultData as SseEventToolCallResultData
from revengai.models.sse_event_tool_call_start_data import SseEventToolCallStartData as SseEventToolCallStartData
from revengai.models.sse_event_tool_confirmation_required_data import SseEventToolConfirmationRequiredData as SseEventToolConfirmationRequiredData
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/v3.113.0/python'
self.user_agent = 'OpenAPI-Generator/v3.114.2/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 @@ -541,8 +541,8 @@ def to_debug_report(self) -> str:
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v3.113.0\n"\
"SDK Package Version: v3.113.0".\
"Version of the API: v3.114.2\n"\
"SDK Package Version: v3.114.2".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
2 changes: 2 additions & 0 deletions revengai/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
from revengai.models.event_titleupdated import EventTITLEUPDATED
from revengai.models.event_toolcallargsdelta import EventTOOLCALLARGSDELTA
from revengai.models.event_toolcallend import EventTOOLCALLEND
from revengai.models.event_toolcallprogress import EventTOOLCALLPROGRESS
from revengai.models.event_toolcallresult import EventTOOLCALLRESULT
from revengai.models.event_toolcallstart import EventTOOLCALLSTART
from revengai.models.event_toolconfirmationrequired import EventTOOLCONFIRMATIONREQUIRED
Expand Down Expand Up @@ -451,6 +452,7 @@
from revengai.models.sse_event_title_updated_data import SseEventTitleUpdatedData
from revengai.models.sse_event_tool_call_args_delta_data import SseEventToolCallArgsDeltaData
from revengai.models.sse_event_tool_call_end_data import SseEventToolCallEndData
from revengai.models.sse_event_tool_call_progress_data import SseEventToolCallProgressData
from revengai.models.sse_event_tool_call_result_data import SseEventToolCallResultData
from revengai.models.sse_event_tool_call_start_data import SseEventToolCallStartData
from revengai.models.sse_event_tool_confirmation_required_data import SseEventToolConfirmationRequiredData
Expand Down
103 changes: 103 additions & 0 deletions revengai/models/event_toolcallprogress.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# coding: utf-8

"""
RevEng.AI API

RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal.

Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


from __future__ import annotations
import pprint
import re # noqa: F401
import json

from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from revengai.models.sse_event_tool_call_progress_data import SseEventToolCallProgressData
from typing import Optional, Set
from typing_extensions import Self

class EventTOOLCALLPROGRESS(BaseModel):
"""
EventTOOLCALLPROGRESS
""" # noqa: E501
data: SseEventToolCallProgressData
event: StrictStr = Field(description="The event name.")
id: Optional[StrictInt] = Field(default=None, description="The event ID.")
retry: Optional[StrictInt] = Field(default=None, description="The retry time in milliseconds.")
__properties: ClassVar[List[str]] = ["data", "event", "id", "retry"]

@field_validator('event')
def event_validate_enum(cls, value):
"""Validates the enum"""
if value not in set(['TOOL_CALL_PROGRESS', 'unknown_default_open_api']):
raise ValueError("must be one of enum values ('TOOL_CALL_PROGRESS', 'unknown_default_open_api')")
return value

model_config = ConfigDict(
populate_by_name=True,
validate_assignment=True,
protected_namespaces=(),
)


def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
return pprint.pformat(self.model_dump(by_alias=True))

def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
return json.dumps(self.to_dict())

@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
"""Create an instance of EventTOOLCALLPROGRESS from a JSON string"""
return cls.from_dict(json.loads(json_str))

def to_dict(self) -> Dict[str, Any]:
"""Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic's
`self.model_dump(by_alias=True)`:

* `None` is only added to the output dict for nullable fields that
were set at model initialization. Other fields with value `None`
are ignored.
"""
excluded_fields: Set[str] = set([
])

_dict = self.model_dump(
by_alias=True,
exclude=excluded_fields,
exclude_none=True,
)
# override the default output from pydantic by calling `to_dict()` of data
if self.data:
_dict['data'] = self.data.to_dict()
return _dict

@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"""Create an instance of EventTOOLCALLPROGRESS from a dict"""
if obj is None:
return None

if not isinstance(obj, dict):
return cls.model_validate(obj)

_obj = cls.model_validate({
"data": SseEventToolCallProgressData.from_dict(obj["data"]) if obj.get("data") is not None else None,
"event": obj.get("event"),
"id": obj.get("id"),
"retry": obj.get("retry")
})
return _obj


110 changes: 110 additions & 0 deletions revengai/models/sse_event_tool_call_progress_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
# coding: utf-8

"""
RevEng.AI API

RevEng.AI is an AI-powered binary analysis platform for reverse engineering and malware analysis. It provides similarity search across executable binaries and functions, AI-driven decompilation, dynamic execution analysis, firmware unpacking, and integration with external threat intelligence sources like VirusTotal.

Generated by OpenAPI Generator (https://openapi-generator.tech)

Do not edit the class manually.
""" # noqa: E501


from __future__ import annotations
import pprint
import re # noqa: F401
import json

from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self

class SseEventToolCallProgressData(BaseModel):
"""
SseEventToolCallProgressData
""" # noqa: E501
data: Optional[Any]
event_id: StrictInt
source_run_id: Optional[StrictStr] = None
type: StrictStr
additional_properties: Dict[str, Any] = {}
__properties: ClassVar[List[str]] = ["data", "event_id", "source_run_id", "type"]

model_config = ConfigDict(
populate_by_name=True,
validate_assignment=True,
protected_namespaces=(),
)


def to_str(self) -> str:
"""Returns the string representation of the model using alias"""
return pprint.pformat(self.model_dump(by_alias=True))

def to_json(self) -> str:
"""Returns the JSON representation of the model using alias"""
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
return json.dumps(self.to_dict())

@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
"""Create an instance of SseEventToolCallProgressData from a JSON string"""
return cls.from_dict(json.loads(json_str))

def to_dict(self) -> Dict[str, Any]:
"""Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic's
`self.model_dump(by_alias=True)`:

* `None` is only added to the output dict for nullable fields that
were set at model initialization. Other fields with value `None`
are ignored.
* Fields in `self.additional_properties` are added to the output dict.
"""
excluded_fields: Set[str] = set([
"additional_properties",
])

_dict = self.model_dump(
by_alias=True,
exclude=excluded_fields,
exclude_none=True,
)
# puts key-value pairs in additional_properties in the top level
if self.additional_properties is not None:
for _key, _value in self.additional_properties.items():
_dict[_key] = _value

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

return _dict

@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"""Create an instance of SseEventToolCallProgressData from a dict"""
if obj is None:
return None

if not isinstance(obj, dict):
return cls.model_validate(obj)

_obj = cls.model_validate({
"data": obj.get("data"),
"event_id": obj.get("event_id"),
"source_run_id": obj.get("source_run_id"),
"type": obj.get("type")
})
# store additional fields in additional_properties
for _key in obj.keys():
if _key not in cls.__properties:
_obj.additional_properties[_key] = obj.get(_key)

return _obj


Loading