tools

package
v0.0.0-...-5e8caa2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEdit

func NewEdit(identityToken, targetURL string) (
	*mcp.Tool,
	mcp.ToolHandlerFor[*EditInput, *EditOutput],
)

func NewQuasarClient

func NewQuasarClient(ctx context.Context, identityToken, targetURL string) (*client.Client, error)

func NewShare

func NewShare(identityToken, targetURL string) (
	*mcp.Tool,
	mcp.ToolHandlerFor[*ShareInput, *ShareOutput],
)

func NewSimulate

func NewSimulate(identityToken, targetURL string) (
	*mcp.Tool,
	mcp.ToolHandlerFor[*SimulateInput, *SimulateOutput],
)

func NewValidate

func NewValidate(identityToken, targetURL string) (
	*mcp.Tool,
	mcp.ToolHandlerFor[*ValidateInput, *ValidateOutput],
)

Types

type EditInput

type EditInput struct {
	ID string `json:"id" jsonschema:"unique identifier for the shared circuit"`
}

type EditOutput

type EditOutput struct {
	ID        string    `json:"id" jsonschema:"unique identifier for the shared circuit"`
	Code      string    `json:"code" jsonschema:"quantum circuit in OpenQASM format"`
	CreatedAt time.Time `json:"created_at" jsonschema:"timestamp when the circuit was shared"`
}

type ShareInput

type ShareInput struct {
	Code string `json:"code" jsonschema:"quantum circuit in OpenQASM format"`
}

type ShareOutput

type ShareOutput struct {
	ID        string    `json:"id" jsonschema:"unique identifier for the shared circuit"`
	Code      string    `json:"code" jsonschema:"quantum circuit in OpenQASM format"`
	CreatedAt time.Time `json:"created_at" jsonschema:"timestamp when the circuit was shared"`
}

type SimulateInput

type SimulateInput struct {
	Code string `json:"code" jsonschema:"quantum circuit in OpenQASM format"`
}

type SimulateOutput

type SimulateOutput client.States

type ValidateInput

type ValidateInput struct {
	Code string `json:"code" jsonschema:"quantum circuit in OpenQASM format"`
}

type ValidateOutput

type ValidateOutput struct {
	Valid   bool    `json:"valid" jsonschema:"whether the OpenQASM code is valid"`
	Line    *int32  `json:"line,omitempty" jsonschema:"line number of the error, if any"`
	Column  *int32  `json:"column,omitempty" jsonschema:"column number of the error, if any"`
	Message *string `json:"message,omitempty" jsonschema:"error message if the code is invalid"`
}

Jump to

Keyboard shortcuts

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