Documentation
¶
Index ¶
- func NewEdit(identityToken, targetURL string) (*mcp.Tool, mcp.ToolHandlerFor[*EditInput, *EditOutput])
- func NewQuasarClient(ctx context.Context, identityToken, targetURL string) (*client.Client, error)
- func NewShare(identityToken, targetURL string) (*mcp.Tool, mcp.ToolHandlerFor[*ShareInput, *ShareOutput])
- func NewSimulate(identityToken, targetURL string) (*mcp.Tool, mcp.ToolHandlerFor[*SimulateInput, *SimulateOutput])
- func NewValidate(identityToken, targetURL string) (*mcp.Tool, mcp.ToolHandlerFor[*ValidateInput, *ValidateOutput])
- type EditInput
- type EditOutput
- type ShareInput
- type ShareOutput
- type SimulateInput
- type SimulateOutput
- type ValidateInput
- type ValidateOutput
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 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 ShareInput ¶
type ShareInput struct {
}
type ShareOutput ¶
type ShareOutput struct {
}
type SimulateInput ¶
type SimulateInput struct {
Code string `json:"code" jsonschema:"quantum circuit in OpenQASM format"`
}
type SimulateOutput ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.