AgentCardBuilder

Builder class for creating AgentCard instances.

This builder provides a fluent API for creating AgentCard objects, making it easier to configure agent cards.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var name: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var url: String?
Link copied to clipboard

Functions

Link copied to clipboard

Adds a signature to the agent card.

Link copied to clipboard

Adds a skill to the agent.

Link copied to clipboard
fun build(validate: Boolean = false): AgentCard

Builds an AgentCard instance with the configured parameters.

Link copied to clipboard

Sets the capabilities of the agent.

Configures the capabilities using the provided Java-friendly Consumer.

Configures the capabilities using the provided configuration block.

Link copied to clipboard
fun defaultInputModes(defaultInputModes: List<String>): AgentCardBuilder

Sets the default input modes of the agent.

Link copied to clipboard
fun defaultOutputModes(defaultOutputModes: List<String>): AgentCardBuilder

Sets the default output modes of the agent.

Link copied to clipboard

Sets the description of the agent.

Link copied to clipboard
fun documentationUrl(documentationUrl: String): AgentCardBuilder

Sets the documentation URL of the agent.

Link copied to clipboard

Sets the name of the agent.

Link copied to clipboard

Sets the provider of the agent.

Configures the provider using the provided Java-friendly Consumer.

Configures the provider using the provided configuration block.

Link copied to clipboard

Sets the signatures for the agent card.

Link copied to clipboard

Creates a skill using the provided Java-friendly Consumer.

Creates a skill using the provided configuration block.

Link copied to clipboard
fun supportsAuthenticatedExtendedCard(supportsAuthenticatedExtendedCard: Boolean): AgentCardBuilder

Sets whether the agent supports authenticated extended card.

Link copied to clipboard

Sets the URL of the agent.

Link copied to clipboard

Sets the version of the agent.