agenthealthref

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package agenthealthref provides a reference application contract, not an SDK.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(snapshot func() Document, probe func(context.Context, Task) (Outcome, error)) http.Handler

Handler serves HEAD/GET and an optional explicitly authorized POST probe. Protect this resource with your application's authentication middleware. Probe must honor cancellation and perform only bounded, non-destructive work.

Types

type Document

type Document struct {
	Version      string   `json:"version"`
	Name         string   `json:"name"`
	Live         bool     `json:"live"`
	Ready        bool     `json:"ready"`
	Capabilities []string `json:"capabilities"`
	Dependencies []string `json:"dependencies"`
}

type Outcome

type Outcome struct {
	Completed  bool   `json:"completed"`
	Success    bool   `json:"success"`
	Downstream string `json:"downstream,omitempty"`
}

type Task

type Task struct {
	Safe       bool   `json:"safe"`
	Text       string `json:"text"`
	Downstream string `json:"downstream,omitempty"`
}

Jump to

Keyboard shortcuts

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