forked from github/copilot-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathToolExecutionStartEvent.java
More file actions
103 lines (77 loc) · 2.58 KB
/
ToolExecutionStartEvent.java
File metadata and controls
103 lines (77 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------------------------------------------*/
package com.github.copilot.sdk.events;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Event: tool.execution_start
*
* @since 1.0.0
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public final class ToolExecutionStartEvent extends AbstractSessionEvent {
@JsonProperty("data")
private ToolExecutionStartData data;
@Override
public String getType() {
return "tool.execution_start";
}
public ToolExecutionStartData getData() {
return data;
}
public void setData(ToolExecutionStartData data) {
this.data = data;
}
@JsonIgnoreProperties(ignoreUnknown = true)
public static class ToolExecutionStartData {
@JsonProperty("toolCallId")
private String toolCallId;
@JsonProperty("toolName")
private String toolName;
@JsonProperty("arguments")
private Object arguments;
@JsonProperty("mcpServerName")
private String mcpServerName;
@JsonProperty("mcpToolName")
private String mcpToolName;
@JsonProperty("parentToolCallId")
private String parentToolCallId;
public String getToolCallId() {
return toolCallId;
}
public void setToolCallId(String toolCallId) {
this.toolCallId = toolCallId;
}
public String getToolName() {
return toolName;
}
public void setToolName(String toolName) {
this.toolName = toolName;
}
public Object getArguments() {
return arguments;
}
public void setArguments(Object arguments) {
this.arguments = arguments;
}
public String getMcpServerName() {
return mcpServerName;
}
public void setMcpServerName(String mcpServerName) {
this.mcpServerName = mcpServerName;
}
public String getMcpToolName() {
return mcpToolName;
}
public void setMcpToolName(String mcpToolName) {
this.mcpToolName = mcpToolName;
}
public String getParentToolCallId() {
return parentToolCallId;
}
public void setParentToolCallId(String parentToolCallId) {
this.parentToolCallId = parentToolCallId;
}
}
}