All URIs are relative to https://api.reveng.ai
| Method | HTTP request | Description |
|---|---|---|
| CreateAiDecompilation | Post /v3/functions/{function_id}/ai-decompilation | Start AI decompilation |
| DeleteAiDecompilationInlineComment | Delete /v3/functions/{function_id}/ai-decompilation/inline-comments/{line} | Delete a single inline comment |
| GetAiDecompilation | Get /v3/functions/{function_id}/ai-decompilation | Get AI decompilation result |
| GetAiDecompilationInlineComments | Get /v3/functions/{function_id}/ai-decompilation/inline-comments | Get AI decompilation inline comments |
| GetAiDecompilationInlineCommentsStatus | Get /v3/functions/{function_id}/ai-decompilation/inline-comments/status | Get inline comments generation workflow status |
| GetAiDecompilationRating | Get /v2/functions/{function_id}/ai-decompilation/rating | Get rating for AI decompilation |
| GetAiDecompilationStatus | Get /v3/functions/{function_id}/ai-decompilation/status | Get AI decompilation workflow status |
| GetAiDecompilationSummary | Get /v3/functions/{function_id}/ai-decompilation/summary | Get AI decompilation summary |
| GetAiDecompilationSummaryStatus | Get /v3/functions/{function_id}/ai-decompilation/summary/status | Get summary generation workflow status |
| GetAiDecompilationTokenised | Get /v3/functions/{function_id}/ai-decompilation/tokenised | Get tokenised AI decompilation with function mapping |
| PatchAiDecompilationInlineComment | Patch /v3/functions/{function_id}/ai-decompilation/inline-comments | Update a single inline comment |
| RegenerateAiDecompilationInlineComments | Post /v3/functions/{function_id}/ai-decompilation/inline-comments | Regenerate AI decompilation inline comments |
| RegenerateAiDecompilationSummary | Post /v3/functions/{function_id}/ai-decompilation/summary | Regenerate AI decompilation summary |
| StreamAiDecompilation | Get /v3/functions/{function_id}/ai-decompilation/events | Stream live AI decompilation output (SSE) |
| UpsertAiDecompilationOverrides | Patch /v3/functions/{function_id}/ai-decompilation/overrides | Upsert variable/function name overrides |
| UpsertAiDecompilationRating | Patch /v2/functions/{function_id}/ai-decompilation/rating | Upsert rating for AI decompilation |
CreateAIDecompOutputBody CreateAiDecompilation(ctx, functionId).ContextAware(contextAware).Temperature(temperature).Execute()
Start AI decompilation
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
contextAware := true // bool | Use context-aware decompilation (optional) (default to false)
temperature := float64(1.2) // float64 | 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)
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.CreateAiDecompilation(context.Background(), functionId).ContextAware(contextAware).Temperature(temperature).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.CreateAiDecompilation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateAiDecompilation`: CreateAIDecompOutputBody
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.CreateAiDecompilation`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID |
Other parameters are passed through a pointer to a apiCreateAiDecompilationRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
contextAware | bool | Use context-aware decompilation | [default to false] temperature | float64 | LLM temperature (0.0-1.0). Overrides the server default when set. Omit or set to -1 to use the server default. | [default to -1]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CommentsData DeleteAiDecompilationInlineComment(ctx, functionId, line).Execute()
Delete a single inline comment
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
line := int64(789) // int64 | Line number of the comment to delete
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.DeleteAiDecompilationInlineComment(context.Background(), functionId, line).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.DeleteAiDecompilationInlineComment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteAiDecompilationInlineComment`: CommentsData
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.DeleteAiDecompilationInlineComment`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID | |
| line | int64 | Line number of the comment to delete |
Other parameters are passed through a pointer to a apiDeleteAiDecompilationInlineCommentRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DecompilationData GetAiDecompilation(ctx, functionId).Execute()
Get AI decompilation result
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.GetAiDecompilation(context.Background(), functionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.GetAiDecompilation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAiDecompilation`: DecompilationData
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.GetAiDecompilation`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID |
Other parameters are passed through a pointer to a apiGetAiDecompilationRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CommentsData GetAiDecompilationInlineComments(ctx, functionId).Execute()
Get AI decompilation inline comments
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.GetAiDecompilationInlineComments(context.Background(), functionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.GetAiDecompilationInlineComments``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAiDecompilationInlineComments`: CommentsData
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.GetAiDecompilationInlineComments`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID |
Other parameters are passed through a pointer to a apiGetAiDecompilationInlineCommentsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkflowProgress GetAiDecompilationInlineCommentsStatus(ctx, functionId).Execute()
Get inline comments generation workflow status
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.GetAiDecompilationInlineCommentsStatus(context.Background(), functionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.GetAiDecompilationInlineCommentsStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAiDecompilationInlineCommentsStatus`: WorkflowProgress
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.GetAiDecompilationInlineCommentsStatus`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID |
Other parameters are passed through a pointer to a apiGetAiDecompilationInlineCommentsStatusRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponseUnionGetAiDecompilationRatingResponseNoneType GetAiDecompilationRating(ctx, functionId).Execute()
Get rating for AI decompilation
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | The ID of the function for which to get the rating
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.GetAiDecompilationRating(context.Background(), functionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.GetAiDecompilationRating``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAiDecompilationRating`: BaseResponseUnionGetAiDecompilationRatingResponseNoneType
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.GetAiDecompilationRating`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | The ID of the function for which to get the rating |
Other parameters are passed through a pointer to a apiGetAiDecompilationRatingRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
BaseResponseUnionGetAiDecompilationRatingResponseNoneType
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkflowProgress GetAiDecompilationStatus(ctx, functionId).Execute()
Get AI decompilation workflow status
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.GetAiDecompilationStatus(context.Background(), functionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.GetAiDecompilationStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAiDecompilationStatus`: WorkflowProgress
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.GetAiDecompilationStatus`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID |
Other parameters are passed through a pointer to a apiGetAiDecompilationStatusRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SummaryData GetAiDecompilationSummary(ctx, functionId).Execute()
Get AI decompilation summary
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.GetAiDecompilationSummary(context.Background(), functionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.GetAiDecompilationSummary``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAiDecompilationSummary`: SummaryData
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.GetAiDecompilationSummary`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID |
Other parameters are passed through a pointer to a apiGetAiDecompilationSummaryRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WorkflowProgress GetAiDecompilationSummaryStatus(ctx, functionId).Execute()
Get summary generation workflow status
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.GetAiDecompilationSummaryStatus(context.Background(), functionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.GetAiDecompilationSummaryStatus``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAiDecompilationSummaryStatus`: WorkflowProgress
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.GetAiDecompilationSummaryStatus`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID |
Other parameters are passed through a pointer to a apiGetAiDecompilationSummaryStatusRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TokenisedData GetAiDecompilationTokenised(ctx, functionId).Execute()
Get tokenised AI decompilation with function mapping
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.GetAiDecompilationTokenised(context.Background(), functionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.GetAiDecompilationTokenised``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetAiDecompilationTokenised`: TokenisedData
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.GetAiDecompilationTokenised`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID |
Other parameters are passed through a pointer to a apiGetAiDecompilationTokenisedRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CommentsData PatchAiDecompilationInlineComment(ctx, functionId).PatchCommentBody(patchCommentBody).Execute()
Update a single inline comment
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
patchCommentBody := *revengai.NewPatchCommentBody("Comment_example", int64(123)) // PatchCommentBody |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.PatchAiDecompilationInlineComment(context.Background(), functionId).PatchCommentBody(patchCommentBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.PatchAiDecompilationInlineComment``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PatchAiDecompilationInlineComment`: CommentsData
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.PatchAiDecompilationInlineComment`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID |
Other parameters are passed through a pointer to a apiPatchAiDecompilationInlineCommentRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
patchCommentBody | PatchCommentBody | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RegenerateOutputBody RegenerateAiDecompilationInlineComments(ctx, functionId).Execute()
Regenerate AI decompilation inline comments
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.RegenerateAiDecompilationInlineComments(context.Background(), functionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.RegenerateAiDecompilationInlineComments``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RegenerateAiDecompilationInlineComments`: RegenerateOutputBody
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.RegenerateAiDecompilationInlineComments`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID |
Other parameters are passed through a pointer to a apiRegenerateAiDecompilationInlineCommentsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RegenerateOutputBody RegenerateAiDecompilationSummary(ctx, functionId).Execute()
Regenerate AI decompilation summary
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.RegenerateAiDecompilationSummary(context.Background(), functionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.RegenerateAiDecompilationSummary``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `RegenerateAiDecompilationSummary`: RegenerateOutputBody
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.RegenerateAiDecompilationSummary`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID |
Other parameters are passed through a pointer to a apiRegenerateAiDecompilationSummaryRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ServerSentEventsInner1 StreamAiDecompilation(ctx, functionId).Execute()
Stream live AI decompilation output (SSE)
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.StreamAiDecompilation(context.Background(), functionId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.StreamAiDecompilation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `StreamAiDecompilation`: []ServerSentEventsInner1
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.StreamAiDecompilation`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID |
Other parameters are passed through a pointer to a apiStreamAiDecompilationRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: text/event-stream, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpsertOverridesData UpsertAiDecompilationOverrides(ctx, functionId).UpsertOverridesInputBody(upsertOverridesInputBody).Execute()
Upsert variable/function name overrides
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | Function ID
upsertOverridesInputBody := *revengai.NewUpsertOverridesInputBody(map[string]string{"key": "Inner_example"}) // UpsertOverridesInputBody |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.UpsertAiDecompilationOverrides(context.Background(), functionId).UpsertOverridesInputBody(upsertOverridesInputBody).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.UpsertAiDecompilationOverrides``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpsertAiDecompilationOverrides`: UpsertOverridesData
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.UpsertAiDecompilationOverrides`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | Function ID |
Other parameters are passed through a pointer to a apiUpsertAiDecompilationOverridesRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
upsertOverridesInputBody | UpsertOverridesInputBody | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
BaseResponse UpsertAiDecompilationRating(ctx, functionId).UpsertAiDecomplationRatingRequest(upsertAiDecomplationRatingRequest).Execute()
Upsert rating for AI decompilation
package main
import (
"context"
"fmt"
"os"
revengai "github.com/RevEngAI/sdk-go/v3"
)
func main() {
functionId := int64(789) // int64 | The ID of the function being rated
upsertAiDecomplationRatingRequest := *revengai.NewUpsertAiDecomplationRatingRequest(revengai.AiDecompilationRating("POSITIVE"), "Reason_example") // UpsertAiDecomplationRatingRequest |
configuration := revengai.NewConfiguration()
apiClient := revengai.NewAPIClient(configuration)
resp, r, err := apiClient.FunctionsAIDecompilationAPI.UpsertAiDecompilationRating(context.Background(), functionId).UpsertAiDecomplationRatingRequest(upsertAiDecomplationRatingRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `FunctionsAIDecompilationAPI.UpsertAiDecompilationRating``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpsertAiDecompilationRating`: BaseResponse
fmt.Fprintf(os.Stdout, "Response from `FunctionsAIDecompilationAPI.UpsertAiDecompilationRating`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| functionId | int64 | The ID of the function being rated |
Other parameters are passed through a pointer to a apiUpsertAiDecompilationRatingRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
upsertAiDecomplationRatingRequest | UpsertAiDecomplationRatingRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]