Record Class McpPromptMessage
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.McpPromptMessage
@Generated("copilot-sdk-codegen")
public record McpPromptMessage(McpPromptRole role, Object content, Map<String,Object> meta, Map<String,Object> additionalProperties)
extends Record
An MCP prompt message with opaque JSON content preserved without flattening or content-type filtering.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionMcpPromptMessage(McpPromptRole role, Object content, Map<String, Object> meta, Map<String, Object> additionalProperties) Creates an instance of aMcpPromptMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalPropertiesrecord component.content()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.meta()Returns the value of themetarecord component.role()Returns the value of therolerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpPromptMessage
public McpPromptMessage(McpPromptRole role, Object content, Map<String, Object> meta, Map<String, Object> additionalProperties) Creates an instance of aMcpPromptMessagerecord class.- Parameters:
role- the value for therolerecord componentcontent- the value for thecontentrecord componentmeta- the value for themetarecord componentadditionalProperties- the value for theadditionalPropertiesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
meta
-
additionalProperties
-