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: 2 additions & 0 deletions docs/AiDecompilationRating.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

* `NEUTRAL` (value: `'NEUTRAL'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/AiDecompilationTaskStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

* `SUCCESS` (value: `'success'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/AnalysisScope.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

* `PUBLIC` (value: `'PUBLIC'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/AppApiRestV2AnalysesEnumsOrderBy.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

* `SIZE` (value: `'size'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/AppApiRestV2CollectionsEnumsOrderBy.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

* `UPDATED` (value: `'updated'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/BinariesTaskStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

* `FAILED` (value: `'FAILED'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/BinaryTaskStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

* `FAILED` (value: `'FAILED'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/CollectionScope.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

* `TEAM` (value: `'TEAM'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/DynamicExecutionStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Custom enum for the dynamic execution status

* `ALL` (value: `'ALL'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/FileFormat.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

* `BLOB` (value: `'blob'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/Filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

* `HIDE_EMPTY` (value: `'hide_empty'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/FunctionSourceType.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

* `AI_UNSTRIP` (value: `'AI_UNSTRIP'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/FunctionTaskStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

* `FAILED` (value: `'FAILED'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[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: 4 additions & 2 deletions docs/FunctionsAIDecompilationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Method | HTTP request | Description


# **create_ai_decompilation**
> CreateAIDecompOutputBody create_ai_decompilation(function_id, context_aware=context_aware)
> CreateAIDecompOutputBody create_ai_decompilation(function_id, context_aware=context_aware, temperature=temperature)

Start AI decompilation

Expand Down Expand Up @@ -71,10 +71,11 @@ with revengai.ApiClient(configuration) as api_client:
api_instance = revengai.FunctionsAIDecompilationApi(api_client)
function_id = 56 # int | Function ID
context_aware = False # bool | Use context-aware decompilation (optional) (default to False)
temperature = -1 # float | LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default. (optional) (default to -1)

try:
# Start AI decompilation
api_response = api_instance.create_ai_decompilation(function_id, context_aware=context_aware)
api_response = api_instance.create_ai_decompilation(function_id, context_aware=context_aware, temperature=temperature)
print("The response of FunctionsAIDecompilationApi->create_ai_decompilation:\n")
pprint(api_response)
except Exception as e:
Expand All @@ -90,6 +91,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**function_id** | **int**| Function ID |
**context_aware** | **bool**| Use context-aware decompilation | [optional] [default to False]
**temperature** | **float**| LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default. | [optional] [default to -1]

### Return type

Expand Down
2 changes: 2 additions & 0 deletions docs/ISA.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

* `ARM` (value: `'arm'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/ModelName.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Custom enum for the model name

* `BINNET_MINUS_0_DOT_7_MINUS_ARM_MINUS_64_MINUS_ANDROID` (value: `'binnet-0.7-arm-64-android'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/Order.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

* `DESC` (value: `'DESC'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/Platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

* `ANDROID` (value: `'android'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/RegenerateTarget.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

* `COMMENTS` (value: `'comments'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/SandboxStartMethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

* `ADMINISTRATOR_PROCESS` (value: `'administrator_process'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/SandboxTimeout.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

* `NUMBER_600` (value: `600`)

* `NUMBER_11184809` (value: `11184809`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/StatusInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Custom enum for the analysis status

* `ALL` (value: `'All'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/StringSource.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

* `AI_AGENT` (value: `'AI_AGENT'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/TaskStatus.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

* `FAILED` (value: `'FAILED'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/UploadFileType.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

* `FIRMWARE` (value: `'FIRMWARE'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 2 additions & 0 deletions docs/Workspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

* `PUBLIC` (value: `'public'`)

* `UNKNOWN_DEFAULT_OPEN_API` (value: `'unknown_default_open_api'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


19 changes: 18 additions & 1 deletion revengai/api/functions_ai_decompilation_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from typing_extensions import Annotated

from pydantic import Field, StrictBool, StrictInt
from typing import List, Optional
from typing import List, Optional, Union
from typing_extensions import Annotated
from revengai.models.base_response import BaseResponse
from revengai.models.base_response_bool import BaseResponseBool
Expand Down Expand Up @@ -62,6 +62,7 @@ def create_ai_decompilation(
self,
function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")],
context_aware: Annotated[Optional[StrictBool], Field(description="Use context-aware decompilation")] = None,
temperature: Annotated[Optional[Union[Annotated[float, Field(le=1, strict=True, ge=-1)], Annotated[int, Field(le=1, strict=True, ge=-1)]]], Field(description="LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default.")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -83,6 +84,8 @@ def create_ai_decompilation(
:type function_id: int
:param context_aware: Use context-aware decompilation
:type context_aware: bool
:param temperature: LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default.
:type temperature: float
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -108,6 +111,7 @@ def create_ai_decompilation(
_param = self._create_ai_decompilation_serialize(
function_id=function_id,
context_aware=context_aware,
temperature=temperature,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -138,6 +142,7 @@ def create_ai_decompilation_with_http_info(
self,
function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")],
context_aware: Annotated[Optional[StrictBool], Field(description="Use context-aware decompilation")] = None,
temperature: Annotated[Optional[Union[Annotated[float, Field(le=1, strict=True, ge=-1)], Annotated[int, Field(le=1, strict=True, ge=-1)]]], Field(description="LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default.")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -159,6 +164,8 @@ def create_ai_decompilation_with_http_info(
:type function_id: int
:param context_aware: Use context-aware decompilation
:type context_aware: bool
:param temperature: LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default.
:type temperature: float
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -184,6 +191,7 @@ def create_ai_decompilation_with_http_info(
_param = self._create_ai_decompilation_serialize(
function_id=function_id,
context_aware=context_aware,
temperature=temperature,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand Down Expand Up @@ -214,6 +222,7 @@ def create_ai_decompilation_without_preload_content(
self,
function_id: Annotated[int, Field(strict=True, ge=1, description="Function ID")],
context_aware: Annotated[Optional[StrictBool], Field(description="Use context-aware decompilation")] = None,
temperature: Annotated[Optional[Union[Annotated[float, Field(le=1, strict=True, ge=-1)], Annotated[int, Field(le=1, strict=True, ge=-1)]]], Field(description="LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default.")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -235,6 +244,8 @@ def create_ai_decompilation_without_preload_content(
:type function_id: int
:param context_aware: Use context-aware decompilation
:type context_aware: bool
:param temperature: LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default.
:type temperature: float
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -260,6 +271,7 @@ def create_ai_decompilation_without_preload_content(
_param = self._create_ai_decompilation_serialize(
function_id=function_id,
context_aware=context_aware,
temperature=temperature,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -285,6 +297,7 @@ def _create_ai_decompilation_serialize(
self,
function_id,
context_aware,
temperature,
_request_auth,
_content_type,
_headers,
Expand Down Expand Up @@ -313,6 +326,10 @@ def _create_ai_decompilation_serialize(

_query_params.append(('context_aware', context_aware))

if temperature is not None:

_query_params.append(('temperature', temperature))

# process the header parameters
# process the form parameters
# process the body parameter
Expand Down
4 changes: 2 additions & 2 deletions revengai/models/analysis_update_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def analysis_scope_validate_enum(cls, value):
if value is None:
return value

if value not in set(['PUBLIC', 'PRIVATE']):
raise ValueError("must be one of enum values ('PUBLIC', 'PRIVATE')")
if value not in set(['PUBLIC', 'PRIVATE', 'unknown_default_open_api']):
raise ValueError("must be one of enum values ('PUBLIC', 'PRIVATE', 'unknown_default_open_api')")
return value

model_config = ConfigDict(
Expand Down
4 changes: 2 additions & 2 deletions revengai/models/app_api_rest_v2_agent_schema_capability.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class AppApiRestV2AgentSchemaCapability(BaseModel):
@field_validator('type')
def type_validate_enum(cls, value):
"""Validates the enum"""
if value not in set(['Execute', 'Crypto', 'Network', 'Files', 'Memory', 'String', 'Environment', 'File Header', 'Other']):
raise ValueError("must be one of enum values ('Execute', 'Crypto', 'Network', 'Files', 'Memory', 'String', 'Environment', 'File Header', 'Other')")
if value not in set(['Execute', 'Crypto', 'Network', 'Files', 'Memory', 'String', 'Environment', 'File Header', 'Other', 'unknown_default_open_api']):
raise ValueError("must be one of enum values ('Execute', 'Crypto', 'Network', 'Files', 'Memory', 'String', 'Environment', 'File Header', 'Other', 'unknown_default_open_api')")
return value

model_config = ConfigDict(
Expand Down
4 changes: 2 additions & 2 deletions revengai/models/comments_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class CommentsData(BaseModel):
@field_validator('task_status')
def task_status_validate_enum(cls, value):
"""Validates the enum"""
if value not in set(['UNINITIALISED', 'PENDING', 'COMPLETED']):
raise ValueError("must be one of enum values ('UNINITIALISED', 'PENDING', 'COMPLETED')")
if value not in set(['UNINITIALISED', 'PENDING', 'COMPLETED', 'unknown_default_open_api']):
raise ValueError("must be one of enum values ('UNINITIALISED', 'PENDING', 'COMPLETED', 'unknown_default_open_api')")
return value

model_config = ConfigDict(
Expand Down
Loading