Package com.github.copilot.sdk.generated
Record Class AssistantMessageEvent.AssistantMessageEventData.AssistantMessageEventDataToolRequestsItem
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.AssistantMessageEvent.AssistantMessageEventData.AssistantMessageEventDataToolRequestsItem
- Enclosing class:
- AssistantMessageEvent.AssistantMessageEventData
public static record AssistantMessageEvent.AssistantMessageEventData.AssistantMessageEventDataToolRequestsItem(String toolCallId, String name, Object arguments, AssistantMessageEvent.AssistantMessageEventData.AssistantMessageEventDataToolRequestsItem.AssistantMessageEventDataToolRequestsItemType type, String toolTitle, String mcpServerName, String intentionSummary)
extends Record
A tool invocation request from the assistant
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTool call type: "function" for standard tool calls, "custom" for grammar-based tool calls. -
Constructor Summary
ConstructorsConstructorDescriptionAssistantMessageEventDataToolRequestsItem(String toolCallId, String name, Object arguments, AssistantMessageEvent.AssistantMessageEventData.AssistantMessageEventDataToolRequestsItem.AssistantMessageEventDataToolRequestsItemType type, String toolTitle, String mcpServerName, String intentionSummary) Creates an instance of aAssistantMessageEventDataToolRequestsItemrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theintentionSummaryrecord component.Returns the value of themcpServerNamerecord component.name()Returns the value of thenamerecord component.Returns the value of thetoolCallIdrecord component.Returns the value of thetoolTitlerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
AssistantMessageEventDataToolRequestsItem
public AssistantMessageEventDataToolRequestsItem(String toolCallId, String name, Object arguments, AssistantMessageEvent.AssistantMessageEventData.AssistantMessageEventDataToolRequestsItem.AssistantMessageEventDataToolRequestsItemType type, String toolTitle, String mcpServerName, String intentionSummary) Creates an instance of aAssistantMessageEventDataToolRequestsItemrecord class.- Parameters:
toolCallId- the value for thetoolCallIdrecord componentname- the value for thenamerecord componentarguments- the value for theargumentsrecord componenttype- the value for thetyperecord componenttoolTitle- the value for thetoolTitlerecord componentmcpServerName- the value for themcpServerNamerecord componentintentionSummary- the value for theintentionSummaryrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
toolCallId
Returns the value of thetoolCallIdrecord component.- Returns:
- the value of the
toolCallIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
toolTitle
Returns the value of thetoolTitlerecord component.- Returns:
- the value of the
toolTitlerecord component
-
mcpServerName
Returns the value of themcpServerNamerecord component.- Returns:
- the value of the
mcpServerNamerecord component
-
intentionSummary
Returns the value of theintentionSummaryrecord component.- Returns:
- the value of the
intentionSummaryrecord component
-