package
Version:
v0.1.8
Opens a new window with list of versions in this module.
Published: May 11, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
Name = "scratchpad"
EnvScratchpadURI = "AGENTLY_SCRATCHPAD_URI"
DefaultRootURITemplate = "mem://localhost/scratchpad/${userID}"
)
type AppendInput struct {
Key string `json:"key" description:"Exact scratchpad key to append to."`
Body string `json:"body" description:"Scratchpad note body to append."`
Description string ``
}
type AppendOutput struct {
Key string `json:"key,omitempty"`
Description string `json:"description,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
Created bool `json:"created,omitempty"`
Status string `json:"status,omitempty"`
Error string `json:"error,omitempty"`
}
type Entry struct {
Key string `json:"key"`
Description string `json:"description"`
UpdatedAt string `json:"updatedAt,omitempty"`
}
type FetchInput struct {
Key string `json:"key" description:"Exact scratchpad key to fetch."`
}
type FetchOutput struct {
Key string `json:"key,omitempty"`
Description string `json:"description,omitempty"`
Body string `json:"body,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
Status string `json:"status,omitempty"`
Error string `json:"error,omitempty"`
}
type ListOutput struct {
Entries []Entry `json:"entries"`
Status string `json:"status,omitempty"`
Error string `json:"error,omitempty"`
}
type MemorizeInput struct {
Key string `json:"key" description:"Exact scratchpad key to create or replace."`
Description string `json:"description" description:"Short description shown by list."`
Body string `json:"body" description:"Scratchpad note body."`
}
type MemorizeOutput struct {
Key string `json:"key,omitempty"`
Description string `json:"description,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
Status string `json:"status,omitempty"`
Error string `json:"error,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.