Documentation
¶
Overview ¶
Package server implements the agentruntime service HTTP API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ServiceName string `env:"SERVICE_NAME" env-default:"agentruntime"`
Port string `env:"PORT" env-default:"8096"`
LogLevel string `env:"LOG_LEVEL" env-default:"info"`
}
Config is the agentruntime service environment configuration.
type Run ¶
type Run struct {
ID string `json:"id"`
Status RunStatus `json:"status"`
Goal string `json:"goal"`
Output string `json:"output,omitempty"`
Error string `json:"error,omitempty"`
CreatedAt time.Time `json:"created_at"`
}
Run is a persisted agent execution record.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server wraps the agentruntime HTTP API.
func NewWithClient ¶
NewWithClient constructs the server with a custom llm.Client (tests).
Click to show internal directories.
Click to hide internal directories.