create_asset

package
v0.0.30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTool

func NewTool(collibraClient *http.Client) *chip.Tool[Input, Output]

NewTool creates a new create_asset tool instance.

Types

type Input

type Input struct {
	Name        string            `json:"name" jsonschema:"The name of the asset to create"`
	AssetTypeID string            `json:"assetTypeId" jsonschema:"The UUID of the asset type (from prepare_create_asset resolved.assetTypeId)"`
	DomainID    string            `json:"domainId" jsonschema:"The UUID of the domain to create the asset in (from prepare_create_asset resolved.domainId)"`
	DisplayName string            `json:"displayName,omitempty" jsonschema:"Optional. The display name of the asset"`
	Attributes  map[string]string `json:"attributes,omitempty" jsonschema:"Optional. Map of attribute type UUID to attribute value"`
}

Input defines the parameters for the create_asset tool.

type Output

type Output struct {
	AssetID string `json:"assetId" jsonschema:"The UUID of the newly created asset"`
}

Output defines the result of the create_asset tool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL