Package org.a2aproject.sdk.compat03.grpc
Class AgentSkill
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
org.a2aproject.sdk.compat03.grpc.AgentSkill
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable,AgentSkillOrBuilder
@Generated
public final class AgentSkill
extends com.google.protobuf.GeneratedMessage
implements AgentSkillOrBuilder
AgentSkill represents a unit of action/solution that the agent can perform. One can think of this as a type of highly reliable solution that an agent can be tasked to provide. Agents have the autonomy to choose how and when to use specific skills, but clients should have confidence that if the skill is defined that unit of action can be reliably performed.Protobuf type
a2a.v1.AgentSkill- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAgentSkill represents a unit of action/solution that the agent can perform.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic AgentSkillA human (or llm) readable description of the skill details and behaviors.com.google.protobuf.ByteStringA human (or llm) readable description of the skill details and behaviors.static final com.google.protobuf.Descriptors.DescriptorgetExamples(int index) A set of example queries that this skill is designed to address.com.google.protobuf.ByteStringgetExamplesBytes(int index) A set of example queries that this skill is designed to address.intA set of example queries that this skill is designed to address.com.google.protobuf.ProtocolStringListA set of example queries that this skill is designed to address.getId()Unique id of the skill within this agent.com.google.protobuf.ByteStringUnique id of the skill within this agent.getInputModes(int index) Possible input modalities supported.com.google.protobuf.ByteStringgetInputModesBytes(int index) Possible input modalities supported.intPossible input modalities supported.com.google.protobuf.ProtocolStringListPossible input modalities supported.getName()A human readable name for the skill.com.google.protobuf.ByteStringA human readable name for the skill.getOutputModes(int index) Possible output modalities producedcom.google.protobuf.ByteStringgetOutputModesBytes(int index) Possible output modalities producedintPossible output modalities producedcom.google.protobuf.ProtocolStringListPossible output modalities producedcom.google.protobuf.Parser<AgentSkill>getSecurity(int index) protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill.intprotolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill.protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill.getSecurityOrBuilder(int index) protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill.List<? extends SecurityOrBuilder>protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill.intgetTags(int index) A set of tags for the skill to enhance categorization/utilization.com.google.protobuf.ByteStringgetTagsBytes(int index) A set of tags for the skill to enhance categorization/utilization.intA set of tags for the skill to enhance categorization/utilization.com.google.protobuf.ProtocolStringListA set of tags for the skill to enhance categorization/utilization.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic AgentSkill.Builderstatic AgentSkill.BuildernewBuilder(AgentSkill prototype) protected AgentSkill.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AgentSkillparseDelimitedFrom(InputStream input) static AgentSkillparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AgentSkillparseFrom(byte[] data) static AgentSkillparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AgentSkillparseFrom(com.google.protobuf.ByteString data) static AgentSkillparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AgentSkillparseFrom(com.google.protobuf.CodedInputStream input) static AgentSkillparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AgentSkillparseFrom(InputStream input) static AgentSkillparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AgentSkillparseFrom(ByteBuffer data) static AgentSkillparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AgentSkill>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
EXAMPLES_FIELD_NUMBER
public static final int EXAMPLES_FIELD_NUMBER- See Also:
-
INPUT_MODES_FIELD_NUMBER
public static final int INPUT_MODES_FIELD_NUMBER- See Also:
-
OUTPUT_MODES_FIELD_NUMBER
public static final int OUTPUT_MODES_FIELD_NUMBER- See Also:
-
SECURITY_FIELD_NUMBER
public static final int SECURITY_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getId
Unique id of the skill within this agent.
string id = 1;- Specified by:
getIdin interfaceAgentSkillOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Unique id of the skill within this agent.
string id = 1;- Specified by:
getIdBytesin interfaceAgentSkillOrBuilder- Returns:
- The bytes for id.
-
getName
A human readable name for the skill.
string name = 2;- Specified by:
getNamein interfaceAgentSkillOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()A human readable name for the skill.
string name = 2;- Specified by:
getNameBytesin interfaceAgentSkillOrBuilder- Returns:
- The bytes for name.
-
getDescription
A human (or llm) readable description of the skill details and behaviors.
string description = 3;- Specified by:
getDescriptionin interfaceAgentSkillOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()A human (or llm) readable description of the skill details and behaviors.
string description = 3;- Specified by:
getDescriptionBytesin interfaceAgentSkillOrBuilder- Returns:
- The bytes for description.
-
getTagsList
public com.google.protobuf.ProtocolStringList getTagsList()A set of tags for the skill to enhance categorization/utilization. Example: ["cooking", "customer support", "billing"]
repeated string tags = 4;- Specified by:
getTagsListin interfaceAgentSkillOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
public int getTagsCount()A set of tags for the skill to enhance categorization/utilization. Example: ["cooking", "customer support", "billing"]
repeated string tags = 4;- Specified by:
getTagsCountin interfaceAgentSkillOrBuilder- Returns:
- The count of tags.
-
getTags
A set of tags for the skill to enhance categorization/utilization. Example: ["cooking", "customer support", "billing"]
repeated string tags = 4;- Specified by:
getTagsin interfaceAgentSkillOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.ByteString getTagsBytes(int index) A set of tags for the skill to enhance categorization/utilization. Example: ["cooking", "customer support", "billing"]
repeated string tags = 4;- Specified by:
getTagsBytesin interfaceAgentSkillOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
getExamplesList
public com.google.protobuf.ProtocolStringList getExamplesList()A set of example queries that this skill is designed to address. These examples should help the caller to understand how to craft requests to the agent to achieve specific goals. Example: ["I need a recipe for bread"]
repeated string examples = 5;- Specified by:
getExamplesListin interfaceAgentSkillOrBuilder- Returns:
- A list containing the examples.
-
getExamplesCount
public int getExamplesCount()A set of example queries that this skill is designed to address. These examples should help the caller to understand how to craft requests to the agent to achieve specific goals. Example: ["I need a recipe for bread"]
repeated string examples = 5;- Specified by:
getExamplesCountin interfaceAgentSkillOrBuilder- Returns:
- The count of examples.
-
getExamples
A set of example queries that this skill is designed to address. These examples should help the caller to understand how to craft requests to the agent to achieve specific goals. Example: ["I need a recipe for bread"]
repeated string examples = 5;- Specified by:
getExamplesin interfaceAgentSkillOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The examples at the given index.
-
getExamplesBytes
public com.google.protobuf.ByteString getExamplesBytes(int index) A set of example queries that this skill is designed to address. These examples should help the caller to understand how to craft requests to the agent to achieve specific goals. Example: ["I need a recipe for bread"]
repeated string examples = 5;- Specified by:
getExamplesBytesin interfaceAgentSkillOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the examples at the given index.
-
getInputModesList
public com.google.protobuf.ProtocolStringList getInputModesList()Possible input modalities supported.
repeated string input_modes = 6;- Specified by:
getInputModesListin interfaceAgentSkillOrBuilder- Returns:
- A list containing the inputModes.
-
getInputModesCount
public int getInputModesCount()Possible input modalities supported.
repeated string input_modes = 6;- Specified by:
getInputModesCountin interfaceAgentSkillOrBuilder- Returns:
- The count of inputModes.
-
getInputModes
Possible input modalities supported.
repeated string input_modes = 6;- Specified by:
getInputModesin interfaceAgentSkillOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The inputModes at the given index.
-
getInputModesBytes
public com.google.protobuf.ByteString getInputModesBytes(int index) Possible input modalities supported.
repeated string input_modes = 6;- Specified by:
getInputModesBytesin interfaceAgentSkillOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the inputModes at the given index.
-
getOutputModesList
public com.google.protobuf.ProtocolStringList getOutputModesList()Possible output modalities produced
repeated string output_modes = 7;- Specified by:
getOutputModesListin interfaceAgentSkillOrBuilder- Returns:
- A list containing the outputModes.
-
getOutputModesCount
public int getOutputModesCount()Possible output modalities produced
repeated string output_modes = 7;- Specified by:
getOutputModesCountin interfaceAgentSkillOrBuilder- Returns:
- The count of outputModes.
-
getOutputModes
Possible output modalities produced
repeated string output_modes = 7;- Specified by:
getOutputModesin interfaceAgentSkillOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The outputModes at the given index.
-
getOutputModesBytes
public com.google.protobuf.ByteString getOutputModesBytes(int index) Possible output modalities produced
repeated string output_modes = 7;- Specified by:
getOutputModesBytesin interfaceAgentSkillOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the outputModes at the given index.
-
getSecurityList
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill. As in the overall AgentCard.security, this list represents a logical OR of security requirement objects. Each object is a set of security schemes that must be used together (a logical AND).
repeated .a2a.v1.Security security = 8;- Specified by:
getSecurityListin interfaceAgentSkillOrBuilder
-
getSecurityOrBuilderList
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill. As in the overall AgentCard.security, this list represents a logical OR of security requirement objects. Each object is a set of security schemes that must be used together (a logical AND).
repeated .a2a.v1.Security security = 8;- Specified by:
getSecurityOrBuilderListin interfaceAgentSkillOrBuilder
-
getSecurityCount
public int getSecurityCount()protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill. As in the overall AgentCard.security, this list represents a logical OR of security requirement objects. Each object is a set of security schemes that must be used together (a logical AND).
repeated .a2a.v1.Security security = 8;- Specified by:
getSecurityCountin interfaceAgentSkillOrBuilder
-
getSecurity
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill. As in the overall AgentCard.security, this list represents a logical OR of security requirement objects. Each object is a set of security schemes that must be used together (a logical AND).
repeated .a2a.v1.Security security = 8;- Specified by:
getSecurityin interfaceAgentSkillOrBuilder
-
getSecurityOrBuilder
protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes necessary for the agent to leverage this skill. As in the overall AgentCard.security, this list represents a logical OR of security requirement objects. Each object is a set of security schemes that must be used together (a logical AND).
repeated .a2a.v1.Security security = 8;- Specified by:
getSecurityOrBuilderin interfaceAgentSkillOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AgentSkill parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AgentSkill parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AgentSkill parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AgentSkill parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AgentSkill parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AgentSkill parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AgentSkill parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AgentSkill parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AgentSkill parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AgentSkill.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-