inputcontract

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package inputcontract defines the bounded public input adoption contract. Upload tickets and bytes stay on the existing input intake transport.

Index

Constants

View Source
const AttachmentSchema = "pinax.input.attachment.v1"

Variables

This section is empty.

Functions

func AttachmentApplySchema

func AttachmentApplySchema() map[string]any

func AttachmentProposalSchema

func AttachmentProposalSchema() map[string]any

func AttachmentRequestSchema

func AttachmentRequestSchema() map[string]any

AttachmentRequestSchema is the canonical closed MCP/SDK request schema.

Types

type AttachmentApply

type AttachmentApply struct {
	Proposal AttachmentProposal `json:"proposal"`
	Confirm  bool               `json:"confirm"`
}

type AttachmentProposal

type AttachmentProposal struct {
	SchemaVersion string            `json:"schema_version"`
	Request       AttachmentRequest `json:"request"`
	PreviewDigest string            `json:"preview_digest"`
	Reference     string            `json:"reference"`
	MIME          string            `json:"mime"`
	Size          int64             `json:"size"`
	SHA256        string            `json:"sha256"`
}

type AttachmentRequest

type AttachmentRequest struct {
	InputRequestID string `json:"input_request_id"`
	OperationID    string `json:"operation_id"`
	ObjectID       string `json:"object_id"`
	Revision       string `json:"revision"`
	Placement      string `json:"placement"`
	// Empty appends a reference. Otherwise this is the exact existing Markdown
	// reference to replace, not a filesystem path or permission to overwrite bytes.
	ReplaceReference string `json:"replace_reference,omitempty"`
}

Jump to

Keyboard shortcuts

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