AgentPackageInfo

public class AgentPackageInfo : Codable

Represents information about the agent’s package, such as Swift package format or Cocoapods.

Attributes.

  • The agent package name

    Declaration

    Swift

    public var name: String
  • The agent package version

    Declaration

    Swift

    public var version: String
  • Any other package-specific properties accessible by indexer

    Declaration

    Swift

    public var extra: [String : Any]

Initializers.

  • Create a new instance of AgentPackageInfo.

    Declaration

    Swift

    public init(name: String, version: String, extra: [String : Any]? = nil)

Codable methods.

  • Declaration

    Swift

    public required init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws