Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OperationSpec ¶
type OperationSpec struct {
ToolDescriptor
Mutating, Idempotent, PromptSafe bool
TrustClass []string
AuditKind string
}
func DefaultSpec ¶
func DefaultSpec(name, desc string, schema json.RawMessage) OperationSpec
func MemoryToolOperationSpec ¶
func MemoryToolOperationSpec(name string) (OperationSpec, bool)
type Spec ¶
type Spec interface {
Spec() OperationSpec
}
type Tool ¶
type Tool interface {
Name() string
Description() string
Schema() json.RawMessage
Timeout() time.Duration
Execute(ctx context.Context, args json.RawMessage) (json.RawMessage, error)
}
type ToolDescriptor ¶
type ToolDescriptor struct {
Name, Description string
Schema json.RawMessage
}
Click to show internal directories.
Click to hide internal directories.