Skip to content

Commit 6003c75

Browse files
kabirehsavoie
authored andcommitted
Minor fixes
1 parent 48aa033 commit 6003c75

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

spec/src/main/java/io/a2a/spec/A2AErrorCodes.java

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@
88
* All the error codes for A2A errors.
99
*/
1010
public interface A2AErrorCodes {
11-
final int CONTENT_TYPE_NOT_SUPPORTED_ERROR_CODE = -32005;
12-
final int INTERNAL_ERROR_CODE = -32603;
13-
final int INVALID_AGENT_RESPONSE_ERROR_CODE = -32006;
14-
final int INVALID_PARAMS_ERROR_CODE = -32602;
15-
final int JSON_PARSE_ERROR_CODE = -32700;
16-
final int INVALID_REQUEST_ERROR_CODE = -32600;
17-
final int METHOD_NOT_FOUND_ERROR_CODE = -32601;
18-
final int PUSH_NOTIFICATION_NOT_SUPPORTED_ERROR_CODE = -32003;
19-
final int UNSUPPORTED_OPERATION_ERROR_CODE = -32004;
20-
final int TASK_NOT_CANCELABLE_ERROR_CODE = -32002;
21-
final int TASK_NOT_FOUND_ERROR_CODE = -32001;
22-
final int AUTHENTICATED_EXTENDED_CARD_NOT_CONFIGURED_ERROR_CODE = -32007;
11+
12+
int TASK_NOT_FOUND_ERROR_CODE = -32001;
13+
int TASK_NOT_CANCELABLE_ERROR_CODE = -32002;
14+
int PUSH_NOTIFICATION_NOT_SUPPORTED_ERROR_CODE = -32003;
15+
int UNSUPPORTED_OPERATION_ERROR_CODE = -32004;
16+
int CONTENT_TYPE_NOT_SUPPORTED_ERROR_CODE = -32005;
17+
int INVALID_AGENT_RESPONSE_ERROR_CODE = -32006;
18+
int AUTHENTICATED_EXTENDED_CARD_NOT_CONFIGURED_ERROR_CODE = -32007;
19+
20+
int INVALID_REQUEST_ERROR_CODE = -32600;
21+
int METHOD_NOT_FOUND_ERROR_CODE = -32601;
22+
int INVALID_PARAMS_ERROR_CODE = -32602;
23+
int INTERNAL_ERROR_CODE = -32603;
24+
25+
int JSON_PARSE_ERROR_CODE = -32700;
2326
}

spec/src/main/java/io/a2a/spec/GetTaskRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public GetTaskRequest(Object id, TaskQueryParams params) {
5757
public static class Builder {
5858
private String jsonrpc;
5959
private Object id;
60-
private String method = "GetTask";
60+
private String method = METHOD;
6161
private TaskQueryParams params;
6262

6363
public GetTaskRequest.Builder jsonrpc(String jsonrpc) {

0 commit comments

Comments
 (0)