Skip to content

Commit a7d2742

Browse files
committed
.
Signed-off-by: He-Pin <hepin1989@gmail.com>
1 parent 0000c29 commit a7d2742

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mcp-core/src/main/java/io/modelcontextprotocol/spec/McpSchema.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,6 +1672,14 @@ private static JsonSchema parseSchema(McpJsonMapper jsonMapper, String schema) {
16721672
public record TaskMetaData(@JsonProperty("ttl") Long ttl) {
16731673
}
16741674

1675+
/**
1676+
* Related task metadata.
1677+
*/
1678+
@JsonInclude(JsonInclude.Include.NON_ABSENT)
1679+
@JsonIgnoreProperties(ignoreUnknown = true)
1680+
public record RelatedTaskMetaData(@JsonProperty("taskId") String taskId) {
1681+
}
1682+
16751683
/**
16761684
* The server's response to a tools/call request from the client when invoked as a
16771685
* task.

0 commit comments

Comments
 (0)