Documentation
¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Package api holds Peen's generated Echo HTTP server contract.
Index ¶
- func GetSpec() (swagger *openapi3.T, err error)
- func GetSpecJSON() ([]byte, error)
- func GetSwagger() (*openapi3.T, error)deprecated
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- func RegisterHandlersWithOptions(router EchoRouter, si ServerInterface, options RegisterHandlersOptions)
- type AgentRun
- type AgentRunCancelResponse
- type AgentRunCancelResponseState
- type AgentRunDefinition
- type AgentRunEvent
- type AgentRunEventPage
- type AgentRunEventPageState
- type AgentRunID
- type AgentRunPage
- type AgentRunState
- type CancelResponse
- type CancelSession202JSONResponse
- type CancelSession202ResponseHeaders
- type CancelSession400JSONResponse
- type CancelSession401JSONResponse
- type CancelSession404JSONResponse
- type CancelSession500JSONResponse
- type CancelSessionAgentRun202JSONResponse
- type CancelSessionAgentRun202ResponseHeaders
- type CancelSessionAgentRun400JSONResponse
- type CancelSessionAgentRun401JSONResponse
- type CancelSessionAgentRun404JSONResponse
- type CancelSessionAgentRun500JSONResponse
- type CancelSessionAgentRunParams
- type CancelSessionAgentRunRequestObject
- type CancelSessionAgentRunResponseObject
- type CancelSessionParams
- type CancelSessionRequestObject
- type CancelSessionResponseObject
- type EchoRouter
- type Error
- type ErrorBadRequest
- type ErrorBadRequestJSONResponse
- type ErrorConflict
- type ErrorConflictJSONResponse
- type ErrorInternal
- type ErrorInternalJSONResponse
- type ErrorNotAcceptable
- type ErrorNotAcceptableJSONResponse
- type ErrorNotFound
- type ErrorNotFoundJSONResponse
- type ErrorUnauthorized
- type ErrorUnauthorizedJSONResponse
- type GetSession200JSONResponse
- type GetSession200ResponseHeaders
- type GetSession400JSONResponse
- type GetSession401JSONResponse
- type GetSession404JSONResponse
- type GetSession500JSONResponse
- type GetSessionParams
- type GetSessionRequestObject
- type GetSessionResponseObject
- type Job
- type JobID
- type JobOutput
- type JobOutputState
- type JobPage
- type JobSignalRequest
- type JobSignalRequestSignal
- type JobSignalResponse
- type JobSignalResponseState
- type JobState
- type Limit
- type ListMessages200JSONResponse
- type ListMessages200ResponseHeaders
- type ListMessages400JSONResponse
- type ListMessages401JSONResponse
- type ListMessages404JSONResponse
- type ListMessages500JSONResponse
- type ListMessagesParams
- type ListMessagesParamsOrder
- type ListMessagesRequestObject
- type ListMessagesResponseObject
- type ListSessionAgentRunEvents200JSONResponse
- type ListSessionAgentRunEvents200ResponseHeaders
- type ListSessionAgentRunEvents400JSONResponse
- type ListSessionAgentRunEvents401JSONResponse
- type ListSessionAgentRunEvents404JSONResponse
- type ListSessionAgentRunEvents500JSONResponse
- type ListSessionAgentRunEventsParams
- type ListSessionAgentRunEventsRequestObject
- type ListSessionAgentRunEventsResponseObject
- type ListSessionAgentRuns200JSONResponse
- type ListSessionAgentRuns200ResponseHeaders
- type ListSessionAgentRuns400JSONResponse
- type ListSessionAgentRuns401JSONResponse
- type ListSessionAgentRuns404JSONResponse
- type ListSessionAgentRuns500JSONResponse
- type ListSessionAgentRunsParams
- type ListSessionAgentRunsParamsState
- type ListSessionAgentRunsRequestObject
- type ListSessionAgentRunsResponseObject
- type ListSessionEvents200JSONResponse
- type ListSessionEvents200ResponseHeaders
- type ListSessionEvents400JSONResponse
- type ListSessionEvents401JSONResponse
- type ListSessionEvents404JSONResponse
- type ListSessionEvents500JSONResponse
- type ListSessionEventsParams
- type ListSessionEventsRequestObject
- type ListSessionEventsResponseObject
- type ListSessionJobs200JSONResponse
- type ListSessionJobs200ResponseHeaders
- type ListSessionJobs400JSONResponse
- type ListSessionJobs401JSONResponse
- type ListSessionJobs404JSONResponse
- type ListSessionJobs500JSONResponse
- type ListSessionJobsParams
- type ListSessionJobsParamsState
- type ListSessionJobsRequestObject
- type ListSessionJobsResponseObject
- type Message
- type MessagePage
- type MessageQueuedResponse
- type MessageRequest
- type MessageResponse
- type MessageRole
- type MessageToolCall
- type Offset
- type Order
- type PublishSessionEvent202JSONResponse
- type PublishSessionEvent202ResponseHeaders
- type PublishSessionEvent400JSONResponse
- type PublishSessionEvent401JSONResponse
- type PublishSessionEvent404JSONResponse
- type PublishSessionEvent500JSONResponse
- type PublishSessionEventJSONRequestBody
- type PublishSessionEventParams
- type PublishSessionEventRequestObject
- type PublishSessionEventResponseObject
- type ReadSessionJobOutput200JSONResponse
- type ReadSessionJobOutput200ResponseHeaders
- type ReadSessionJobOutput400JSONResponse
- type ReadSessionJobOutput401JSONResponse
- type ReadSessionJobOutput404JSONResponse
- type ReadSessionJobOutput500JSONResponse
- type ReadSessionJobOutputParams
- type ReadSessionJobOutputParamsStream
- type ReadSessionJobOutputRequestObject
- type ReadSessionJobOutputResponseObject
- type RegisterHandlersOptions
- type SendMessage200JSONResponse
- type SendMessage200ResponseHeaders
- type SendMessage200TexteventStreamResponse
- type SendMessage202JSONResponse
- type SendMessage202ResponseHeaders
- type SendMessage400JSONResponse
- type SendMessage401JSONResponse
- type SendMessage404JSONResponse
- type SendMessage406JSONResponse
- type SendMessage409JSONResponse
- type SendMessage500JSONResponse
- type SendMessageJSONRequestBody
- type SendMessageParams
- type SendMessageRequestObject
- type SendMessageResponseObject
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) CancelSession(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CancelSessionAgentRun(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetSession(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListMessages(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListSessionAgentRunEvents(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListSessionAgentRuns(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListSessionEvents(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListSessionJobs(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PublishSessionEvent(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ReadSessionJobOutput(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) SendMessage(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) SignalSessionJob(ctx echo.Context) error
- type Session
- type SessionEvent
- type SessionEventDelivery
- type SessionEventPage
- type SessionEventRequest
- type SessionEventRequestDelivery
- type SessionIDOptional
- type SessionIDRequired
- type SignalSessionJob202JSONResponse
- type SignalSessionJob202ResponseHeaders
- type SignalSessionJob400JSONResponse
- type SignalSessionJob401JSONResponse
- type SignalSessionJob404JSONResponse
- type SignalSessionJob500JSONResponse
- type SignalSessionJobJSONRequestBody
- type SignalSessionJobParams
- type SignalSessionJobRequestObject
- type SignalSessionJobResponseObject
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type SystemPrompt
- type SystemPromptMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSpec ¶
GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.
func GetSpecJSON ¶
GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.
func GetSwagger
deprecated
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
RegisterHandlersWithBaseURL registers handlers and prepends BaseURL to the paths so the API can be served under a prefix.
func RegisterHandlersWithOptions ¶
func RegisterHandlersWithOptions(router EchoRouter, si ServerInterface, options RegisterHandlersOptions)
RegisterHandlersWithOptions registers handlers using the supplied options, including any per-operation middleware.
Types ¶
type AgentRun ¶
type AgentRun struct {
AgentRunId openapi_types.UUID `json:"agentRunId"`
// Definition Whether the agent came from a file or was defined inline.
Definition AgentRunDefinition `json:"definition"`
// Depth Nesting level. The root turn is 0.
Depth int32 `json:"depth"`
EndedAt *time.Time `json:"endedAt,omitempty"`
EventBufferedCount int32 `json:"eventBufferedCount"`
// EventDroppedCount Events evicted because the bounded buffer filled.
EventDroppedCount int32 `json:"eventDroppedCount"`
// Name The agent's name. Identification only for an ad-hoc run.
Name string `json:"name"`
ParentToolCallId *string `json:"parentToolCallId,omitempty"`
StartedAt time.Time `json:"startedAt"`
State AgentRunState `json:"state"`
}
AgentRun defines model for AgentRun.
type AgentRunCancelResponse ¶
type AgentRunCancelResponse struct {
AgentRunId openapi_types.UUID `json:"agentRunId"`
// CancelRequested True when this request found a running agent and signalled it. Cancelling an unknown, completed, or already cancelled run is not an error and reports false with the current state.
CancelRequested bool `json:"cancelRequested"`
State AgentRunCancelResponseState `json:"state"`
}
AgentRunCancelResponse defines model for AgentRunCancelResponse.
type AgentRunCancelResponseState ¶
type AgentRunCancelResponseState string
AgentRunCancelResponseState defines model for AgentRunCancelResponse.State.
const ( AgentRunCancelResponseStateCancelled AgentRunCancelResponseState = "cancelled" AgentRunCancelResponseStateCompleted AgentRunCancelResponseState = "completed" AgentRunCancelResponseStateFailed AgentRunCancelResponseState = "failed" AgentRunCancelResponseStateRunning AgentRunCancelResponseState = "running" )
Defines values for AgentRunCancelResponseState.
func (AgentRunCancelResponseState) Valid ¶
func (e AgentRunCancelResponseState) Valid() bool
Valid indicates whether the value is a known member of the AgentRunCancelResponseState enum.
type AgentRunDefinition ¶
type AgentRunDefinition string
AgentRunDefinition Whether the agent came from a file or was defined inline.
const ( AgentRunDefinitionAdhoc AgentRunDefinition = "adhoc" AgentRunDefinitionStored AgentRunDefinition = "stored" )
Defines values for AgentRunDefinition.
func (AgentRunDefinition) Valid ¶
func (e AgentRunDefinition) Valid() bool
Valid indicates whether the value is a known member of the AgentRunDefinition enum.
type AgentRunEvent ¶
type AgentRunEvent struct {
CreatedAt time.Time `json:"createdAt"`
Payload *map[string]interface{} `json:"payload,omitempty"`
Sequence int32 `json:"sequence"`
Type string `json:"type"`
}
AgentRunEvent defines model for AgentRunEvent.
type AgentRunEventPage ¶
type AgentRunEventPage struct {
AgentRunId openapi_types.UUID `json:"agentRunId"`
// Dropped Events dropped before this window.
Dropped int32 `json:"dropped"`
Events []AgentRunEvent `json:"events"`
// NextCursor Pass back as cursor to continue from here.
NextCursor int32 `json:"nextCursor"`
State AgentRunEventPageState `json:"state"`
}
AgentRunEventPage defines model for AgentRunEventPage.
type AgentRunEventPageState ¶
type AgentRunEventPageState string
AgentRunEventPageState defines model for AgentRunEventPage.State.
const ( AgentRunEventPageStateCancelled AgentRunEventPageState = "cancelled" AgentRunEventPageStateCompleted AgentRunEventPageState = "completed" AgentRunEventPageStateFailed AgentRunEventPageState = "failed" AgentRunEventPageStateRunning AgentRunEventPageState = "running" )
Defines values for AgentRunEventPageState.
func (AgentRunEventPageState) Valid ¶
func (e AgentRunEventPageState) Valid() bool
Valid indicates whether the value is a known member of the AgentRunEventPageState enum.
type AgentRunPage ¶
AgentRunPage defines model for AgentRunPage.
type AgentRunState ¶
type AgentRunState string
AgentRunState defines model for AgentRun.State.
const ( AgentRunStateCancelled AgentRunState = "cancelled" AgentRunStateCompleted AgentRunState = "completed" AgentRunStateFailed AgentRunState = "failed" AgentRunStateRunning AgentRunState = "running" )
Defines values for AgentRunState.
func (AgentRunState) Valid ¶
func (e AgentRunState) Valid() bool
Valid indicates whether the value is a known member of the AgentRunState enum.
type CancelResponse ¶
type CancelResponse struct {
CancelRequested bool `json:"cancelRequested"`
}
CancelResponse defines model for CancelResponse.
type CancelSession202JSONResponse ¶
type CancelSession202JSONResponse struct {
Body CancelResponse
Headers CancelSession202ResponseHeaders
}
func (CancelSession202JSONResponse) VisitCancelSessionResponse ¶
func (response CancelSession202JSONResponse) VisitCancelSessionResponse(w http.ResponseWriter) error
type CancelSession202ResponseHeaders ¶
type CancelSession202ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type CancelSession400JSONResponse ¶
type CancelSession400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (CancelSession400JSONResponse) VisitCancelSessionResponse ¶
func (response CancelSession400JSONResponse) VisitCancelSessionResponse(w http.ResponseWriter) error
type CancelSession401JSONResponse ¶
func (CancelSession401JSONResponse) VisitCancelSessionResponse ¶
func (response CancelSession401JSONResponse) VisitCancelSessionResponse(w http.ResponseWriter) error
type CancelSession404JSONResponse ¶
type CancelSession404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (CancelSession404JSONResponse) VisitCancelSessionResponse ¶
func (response CancelSession404JSONResponse) VisitCancelSessionResponse(w http.ResponseWriter) error
type CancelSession500JSONResponse ¶
type CancelSession500JSONResponse struct{ ErrorInternalJSONResponse }
func (CancelSession500JSONResponse) VisitCancelSessionResponse ¶
func (response CancelSession500JSONResponse) VisitCancelSessionResponse(w http.ResponseWriter) error
type CancelSessionAgentRun202JSONResponse ¶
type CancelSessionAgentRun202JSONResponse struct {
Body AgentRunCancelResponse
Headers CancelSessionAgentRun202ResponseHeaders
}
func (CancelSessionAgentRun202JSONResponse) VisitCancelSessionAgentRunResponse ¶
func (response CancelSessionAgentRun202JSONResponse) VisitCancelSessionAgentRunResponse(w http.ResponseWriter) error
type CancelSessionAgentRun202ResponseHeaders ¶
type CancelSessionAgentRun202ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type CancelSessionAgentRun400JSONResponse ¶
type CancelSessionAgentRun400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (CancelSessionAgentRun400JSONResponse) VisitCancelSessionAgentRunResponse ¶
func (response CancelSessionAgentRun400JSONResponse) VisitCancelSessionAgentRunResponse(w http.ResponseWriter) error
type CancelSessionAgentRun401JSONResponse ¶
func (CancelSessionAgentRun401JSONResponse) VisitCancelSessionAgentRunResponse ¶
func (response CancelSessionAgentRun401JSONResponse) VisitCancelSessionAgentRunResponse(w http.ResponseWriter) error
type CancelSessionAgentRun404JSONResponse ¶
type CancelSessionAgentRun404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (CancelSessionAgentRun404JSONResponse) VisitCancelSessionAgentRunResponse ¶
func (response CancelSessionAgentRun404JSONResponse) VisitCancelSessionAgentRunResponse(w http.ResponseWriter) error
type CancelSessionAgentRun500JSONResponse ¶
type CancelSessionAgentRun500JSONResponse struct{ ErrorInternalJSONResponse }
func (CancelSessionAgentRun500JSONResponse) VisitCancelSessionAgentRunResponse ¶
func (response CancelSessionAgentRun500JSONResponse) VisitCancelSessionAgentRunResponse(w http.ResponseWriter) error
type CancelSessionAgentRunParams ¶
type CancelSessionAgentRunParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
CancelSessionAgentRunParams defines parameters for CancelSessionAgentRun.
type CancelSessionAgentRunRequestObject ¶
type CancelSessionAgentRunRequestObject struct {
AgentRunId AgentRunID `json:"agentRunId"`
Params CancelSessionAgentRunParams
}
type CancelSessionAgentRunResponseObject ¶
type CancelSessionAgentRunResponseObject interface {
VisitCancelSessionAgentRunResponse(w http.ResponseWriter) error
}
type CancelSessionParams ¶
type CancelSessionParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
CancelSessionParams defines parameters for CancelSession.
type CancelSessionRequestObject ¶
type CancelSessionRequestObject struct {
Params CancelSessionParams
}
type CancelSessionResponseObject ¶
type CancelSessionResponseObject interface {
VisitCancelSessionResponse(w http.ResponseWriter) error
}
type EchoRouter ¶
type EchoRouter interface {
CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type Error ¶
type Error struct {
Code string `json:"code"`
Details *map[string]interface{} `json:"details,omitempty"`
Message string `json:"message"`
}
Error defines model for Error.
type ErrorBadRequest ¶
type ErrorBadRequest = Error
ErrorBadRequest defines model for ErrorBadRequest.
type ErrorBadRequestJSONResponse ¶
type ErrorBadRequestJSONResponse Error
type ErrorConflictJSONResponse ¶
type ErrorConflictJSONResponse Error
type ErrorInternalJSONResponse ¶
type ErrorInternalJSONResponse Error
type ErrorNotAcceptable ¶
type ErrorNotAcceptable = Error
ErrorNotAcceptable defines model for ErrorNotAcceptable.
type ErrorNotAcceptableJSONResponse ¶
type ErrorNotAcceptableJSONResponse Error
type ErrorNotFoundJSONResponse ¶
type ErrorNotFoundJSONResponse Error
type ErrorUnauthorized ¶
type ErrorUnauthorized = Error
ErrorUnauthorized defines model for ErrorUnauthorized.
type ErrorUnauthorizedJSONResponse ¶
type ErrorUnauthorizedJSONResponse Error
type GetSession200JSONResponse ¶
type GetSession200JSONResponse struct {
Body Session
Headers GetSession200ResponseHeaders
}
func (GetSession200JSONResponse) VisitGetSessionResponse ¶
func (response GetSession200JSONResponse) VisitGetSessionResponse(w http.ResponseWriter) error
type GetSession200ResponseHeaders ¶
type GetSession200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type GetSession400JSONResponse ¶
type GetSession400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (GetSession400JSONResponse) VisitGetSessionResponse ¶
func (response GetSession400JSONResponse) VisitGetSessionResponse(w http.ResponseWriter) error
type GetSession401JSONResponse ¶
func (GetSession401JSONResponse) VisitGetSessionResponse ¶
func (response GetSession401JSONResponse) VisitGetSessionResponse(w http.ResponseWriter) error
type GetSession404JSONResponse ¶
type GetSession404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (GetSession404JSONResponse) VisitGetSessionResponse ¶
func (response GetSession404JSONResponse) VisitGetSessionResponse(w http.ResponseWriter) error
type GetSession500JSONResponse ¶
type GetSession500JSONResponse struct{ ErrorInternalJSONResponse }
func (GetSession500JSONResponse) VisitGetSessionResponse ¶
func (response GetSession500JSONResponse) VisitGetSessionResponse(w http.ResponseWriter) error
type GetSessionParams ¶
type GetSessionParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
GetSessionParams defines parameters for GetSession.
type GetSessionRequestObject ¶
type GetSessionRequestObject struct {
Params GetSessionParams
}
type GetSessionResponseObject ¶
type GetSessionResponseObject interface {
VisitGetSessionResponse(w http.ResponseWriter) error
}
type Job ¶
type Job struct {
Command string `json:"command"`
Directory string `json:"directory"`
EndedAt *time.Time `json:"endedAt,omitempty"`
// ExitCode Exit status once known, or -1 while it is not.
ExitCode int32 `json:"exitCode"`
JobId openapi_types.UUID `json:"jobId"`
// Pid Operating-system process ID of the job's shell.
Pid int32 `json:"pid"`
// Purpose Why the agent said it was running this command.
Purpose string `json:"purpose"`
StartedAt time.Time `json:"startedAt"`
State JobState `json:"state"`
StderrBufferedLines int32 `json:"stderrBufferedLines"`
StderrDroppedLines int32 `json:"stderrDroppedLines"`
StdoutBufferedLines int32 `json:"stdoutBufferedLines"`
// StdoutDroppedLines Lines evicted because the bounded buffer filled.
StdoutDroppedLines int32 `json:"stdoutDroppedLines"`
// ToolCallId The tool call that started this job.
ToolCallId *string `json:"toolCallId,omitempty"`
}
Job defines model for Job.
type JobOutput ¶
type JobOutput struct {
JobId openapi_types.UUID `json:"jobId"`
NextStderrCursor int32 `json:"nextStderrCursor"`
// NextStdoutCursor Pass back as stdoutCursor to continue from here.
NextStdoutCursor int32 `json:"nextStdoutCursor"`
State JobOutputState `json:"state"`
Stderr string `json:"stderr"`
StderrDroppedLines int32 `json:"stderrDroppedLines"`
Stdout string `json:"stdout"`
StdoutDroppedLines int32 `json:"stdoutDroppedLines"`
}
JobOutput defines model for JobOutput.
type JobOutputState ¶
type JobOutputState string
JobOutputState defines model for JobOutput.State.
const ( JobOutputStateExited JobOutputState = "exited" JobOutputStateFailed JobOutputState = "failed" JobOutputStateRunning JobOutputState = "running" JobOutputStateSignalled JobOutputState = "signalled" )
Defines values for JobOutputState.
func (JobOutputState) Valid ¶
func (e JobOutputState) Valid() bool
Valid indicates whether the value is a known member of the JobOutputState enum.
type JobSignalRequest ¶
type JobSignalRequest struct {
// Signal stop sends SIGTERM to the process group then escalates to SIGKILL. kill goes straight to SIGKILL.
Signal JobSignalRequestSignal `json:"signal"`
}
JobSignalRequest defines model for JobSignalRequest.
type JobSignalRequestSignal ¶
type JobSignalRequestSignal string
JobSignalRequestSignal stop sends SIGTERM to the process group then escalates to SIGKILL. kill goes straight to SIGKILL.
const ( JobSignalRequestSignalKill JobSignalRequestSignal = "kill" JobSignalRequestSignalStop JobSignalRequestSignal = "stop" )
Defines values for JobSignalRequestSignal.
func (JobSignalRequestSignal) Valid ¶
func (e JobSignalRequestSignal) Valid() bool
Valid indicates whether the value is a known member of the JobSignalRequestSignal enum.
type JobSignalResponse ¶
type JobSignalResponse struct {
JobId openapi_types.UUID `json:"jobId"`
// Signalled True when this request found a running job and signalled it. Signalling an unknown, exited, or already signalled job is not an error and reports false with the current state.
Signalled bool `json:"signalled"`
State JobSignalResponseState `json:"state"`
}
JobSignalResponse defines model for JobSignalResponse.
type JobSignalResponseState ¶
type JobSignalResponseState string
JobSignalResponseState defines model for JobSignalResponse.State.
const ( JobSignalResponseStateExited JobSignalResponseState = "exited" JobSignalResponseStateFailed JobSignalResponseState = "failed" JobSignalResponseStateRunning JobSignalResponseState = "running" JobSignalResponseStateSignalled JobSignalResponseState = "signalled" )
Defines values for JobSignalResponseState.
func (JobSignalResponseState) Valid ¶
func (e JobSignalResponseState) Valid() bool
Valid indicates whether the value is a known member of the JobSignalResponseState enum.
type JobState ¶
type JobState string
JobState defines model for Job.State.
type ListMessages200JSONResponse ¶
type ListMessages200JSONResponse struct {
Body MessagePage
Headers ListMessages200ResponseHeaders
}
func (ListMessages200JSONResponse) VisitListMessagesResponse ¶
func (response ListMessages200JSONResponse) VisitListMessagesResponse(w http.ResponseWriter) error
type ListMessages200ResponseHeaders ¶
type ListMessages200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListMessages400JSONResponse ¶
type ListMessages400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListMessages400JSONResponse) VisitListMessagesResponse ¶
func (response ListMessages400JSONResponse) VisitListMessagesResponse(w http.ResponseWriter) error
type ListMessages401JSONResponse ¶
func (ListMessages401JSONResponse) VisitListMessagesResponse ¶
func (response ListMessages401JSONResponse) VisitListMessagesResponse(w http.ResponseWriter) error
type ListMessages404JSONResponse ¶
type ListMessages404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListMessages404JSONResponse) VisitListMessagesResponse ¶
func (response ListMessages404JSONResponse) VisitListMessagesResponse(w http.ResponseWriter) error
type ListMessages500JSONResponse ¶
type ListMessages500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListMessages500JSONResponse) VisitListMessagesResponse ¶
func (response ListMessages500JSONResponse) VisitListMessagesResponse(w http.ResponseWriter) error
type ListMessagesParams ¶
type ListMessagesParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
Order *ListMessagesParamsOrder `form:"order,omitempty" json:"order,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListMessagesParams defines parameters for ListMessages.
type ListMessagesParamsOrder ¶
type ListMessagesParamsOrder string
ListMessagesParamsOrder defines parameters for ListMessages.
const ( ListMessagesParamsOrderAsc ListMessagesParamsOrder = "asc" ListMessagesParamsOrderDesc ListMessagesParamsOrder = "desc" )
Defines values for ListMessagesParamsOrder.
func (ListMessagesParamsOrder) Valid ¶
func (e ListMessagesParamsOrder) Valid() bool
Valid indicates whether the value is a known member of the ListMessagesParamsOrder enum.
type ListMessagesRequestObject ¶
type ListMessagesRequestObject struct {
Params ListMessagesParams
}
type ListMessagesResponseObject ¶
type ListMessagesResponseObject interface {
VisitListMessagesResponse(w http.ResponseWriter) error
}
type ListSessionAgentRunEvents200JSONResponse ¶
type ListSessionAgentRunEvents200JSONResponse struct {
Body AgentRunEventPage
Headers ListSessionAgentRunEvents200ResponseHeaders
}
func (ListSessionAgentRunEvents200JSONResponse) VisitListSessionAgentRunEventsResponse ¶
func (response ListSessionAgentRunEvents200JSONResponse) VisitListSessionAgentRunEventsResponse(w http.ResponseWriter) error
type ListSessionAgentRunEvents200ResponseHeaders ¶
type ListSessionAgentRunEvents200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListSessionAgentRunEvents400JSONResponse ¶
type ListSessionAgentRunEvents400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessionAgentRunEvents400JSONResponse) VisitListSessionAgentRunEventsResponse ¶
func (response ListSessionAgentRunEvents400JSONResponse) VisitListSessionAgentRunEventsResponse(w http.ResponseWriter) error
type ListSessionAgentRunEvents401JSONResponse ¶
func (ListSessionAgentRunEvents401JSONResponse) VisitListSessionAgentRunEventsResponse ¶
func (response ListSessionAgentRunEvents401JSONResponse) VisitListSessionAgentRunEventsResponse(w http.ResponseWriter) error
type ListSessionAgentRunEvents404JSONResponse ¶
type ListSessionAgentRunEvents404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListSessionAgentRunEvents404JSONResponse) VisitListSessionAgentRunEventsResponse ¶
func (response ListSessionAgentRunEvents404JSONResponse) VisitListSessionAgentRunEventsResponse(w http.ResponseWriter) error
type ListSessionAgentRunEvents500JSONResponse ¶
type ListSessionAgentRunEvents500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessionAgentRunEvents500JSONResponse) VisitListSessionAgentRunEventsResponse ¶
func (response ListSessionAgentRunEvents500JSONResponse) VisitListSessionAgentRunEventsResponse(w http.ResponseWriter) error
type ListSessionAgentRunEventsParams ¶
type ListSessionAgentRunEventsParams struct {
Cursor *int32 `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionAgentRunEventsParams defines parameters for ListSessionAgentRunEvents.
type ListSessionAgentRunEventsRequestObject ¶
type ListSessionAgentRunEventsRequestObject struct {
AgentRunId AgentRunID `json:"agentRunId"`
Params ListSessionAgentRunEventsParams
}
type ListSessionAgentRunEventsResponseObject ¶
type ListSessionAgentRunEventsResponseObject interface {
VisitListSessionAgentRunEventsResponse(w http.ResponseWriter) error
}
type ListSessionAgentRuns200JSONResponse ¶
type ListSessionAgentRuns200JSONResponse struct {
Body AgentRunPage
Headers ListSessionAgentRuns200ResponseHeaders
}
func (ListSessionAgentRuns200JSONResponse) VisitListSessionAgentRunsResponse ¶
func (response ListSessionAgentRuns200JSONResponse) VisitListSessionAgentRunsResponse(w http.ResponseWriter) error
type ListSessionAgentRuns200ResponseHeaders ¶
type ListSessionAgentRuns200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListSessionAgentRuns400JSONResponse ¶
type ListSessionAgentRuns400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessionAgentRuns400JSONResponse) VisitListSessionAgentRunsResponse ¶
func (response ListSessionAgentRuns400JSONResponse) VisitListSessionAgentRunsResponse(w http.ResponseWriter) error
type ListSessionAgentRuns401JSONResponse ¶
func (ListSessionAgentRuns401JSONResponse) VisitListSessionAgentRunsResponse ¶
func (response ListSessionAgentRuns401JSONResponse) VisitListSessionAgentRunsResponse(w http.ResponseWriter) error
type ListSessionAgentRuns404JSONResponse ¶
type ListSessionAgentRuns404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListSessionAgentRuns404JSONResponse) VisitListSessionAgentRunsResponse ¶
func (response ListSessionAgentRuns404JSONResponse) VisitListSessionAgentRunsResponse(w http.ResponseWriter) error
type ListSessionAgentRuns500JSONResponse ¶
type ListSessionAgentRuns500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessionAgentRuns500JSONResponse) VisitListSessionAgentRunsResponse ¶
func (response ListSessionAgentRuns500JSONResponse) VisitListSessionAgentRunsResponse(w http.ResponseWriter) error
type ListSessionAgentRunsParams ¶
type ListSessionAgentRunsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
State *ListSessionAgentRunsParamsState `form:"state,omitempty" json:"state,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionAgentRunsParams defines parameters for ListSessionAgentRuns.
type ListSessionAgentRunsParamsState ¶
type ListSessionAgentRunsParamsState string
ListSessionAgentRunsParamsState defines parameters for ListSessionAgentRuns.
const ( ListSessionAgentRunsParamsStateCancelled ListSessionAgentRunsParamsState = "cancelled" ListSessionAgentRunsParamsStateCompleted ListSessionAgentRunsParamsState = "completed" ListSessionAgentRunsParamsStateFailed ListSessionAgentRunsParamsState = "failed" ListSessionAgentRunsParamsStateRunning ListSessionAgentRunsParamsState = "running" )
Defines values for ListSessionAgentRunsParamsState.
func (ListSessionAgentRunsParamsState) Valid ¶
func (e ListSessionAgentRunsParamsState) Valid() bool
Valid indicates whether the value is a known member of the ListSessionAgentRunsParamsState enum.
type ListSessionAgentRunsRequestObject ¶
type ListSessionAgentRunsRequestObject struct {
Params ListSessionAgentRunsParams
}
type ListSessionAgentRunsResponseObject ¶
type ListSessionAgentRunsResponseObject interface {
VisitListSessionAgentRunsResponse(w http.ResponseWriter) error
}
type ListSessionEvents200JSONResponse ¶
type ListSessionEvents200JSONResponse struct {
Body SessionEventPage
Headers ListSessionEvents200ResponseHeaders
}
func (ListSessionEvents200JSONResponse) VisitListSessionEventsResponse ¶
func (response ListSessionEvents200JSONResponse) VisitListSessionEventsResponse(w http.ResponseWriter) error
type ListSessionEvents200ResponseHeaders ¶
type ListSessionEvents200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListSessionEvents400JSONResponse ¶
type ListSessionEvents400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessionEvents400JSONResponse) VisitListSessionEventsResponse ¶
func (response ListSessionEvents400JSONResponse) VisitListSessionEventsResponse(w http.ResponseWriter) error
type ListSessionEvents401JSONResponse ¶
func (ListSessionEvents401JSONResponse) VisitListSessionEventsResponse ¶
func (response ListSessionEvents401JSONResponse) VisitListSessionEventsResponse(w http.ResponseWriter) error
type ListSessionEvents404JSONResponse ¶
type ListSessionEvents404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListSessionEvents404JSONResponse) VisitListSessionEventsResponse ¶
func (response ListSessionEvents404JSONResponse) VisitListSessionEventsResponse(w http.ResponseWriter) error
type ListSessionEvents500JSONResponse ¶
type ListSessionEvents500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessionEvents500JSONResponse) VisitListSessionEventsResponse ¶
func (response ListSessionEvents500JSONResponse) VisitListSessionEventsResponse(w http.ResponseWriter) error
type ListSessionEventsParams ¶
type ListSessionEventsParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionEventsParams defines parameters for ListSessionEvents.
type ListSessionEventsRequestObject ¶
type ListSessionEventsRequestObject struct {
Params ListSessionEventsParams
}
type ListSessionEventsResponseObject ¶
type ListSessionEventsResponseObject interface {
VisitListSessionEventsResponse(w http.ResponseWriter) error
}
type ListSessionJobs200JSONResponse ¶
type ListSessionJobs200JSONResponse struct {
Body JobPage
Headers ListSessionJobs200ResponseHeaders
}
func (ListSessionJobs200JSONResponse) VisitListSessionJobsResponse ¶
func (response ListSessionJobs200JSONResponse) VisitListSessionJobsResponse(w http.ResponseWriter) error
type ListSessionJobs200ResponseHeaders ¶
type ListSessionJobs200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListSessionJobs400JSONResponse ¶
type ListSessionJobs400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessionJobs400JSONResponse) VisitListSessionJobsResponse ¶
func (response ListSessionJobs400JSONResponse) VisitListSessionJobsResponse(w http.ResponseWriter) error
type ListSessionJobs401JSONResponse ¶
func (ListSessionJobs401JSONResponse) VisitListSessionJobsResponse ¶
func (response ListSessionJobs401JSONResponse) VisitListSessionJobsResponse(w http.ResponseWriter) error
type ListSessionJobs404JSONResponse ¶
type ListSessionJobs404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListSessionJobs404JSONResponse) VisitListSessionJobsResponse ¶
func (response ListSessionJobs404JSONResponse) VisitListSessionJobsResponse(w http.ResponseWriter) error
type ListSessionJobs500JSONResponse ¶
type ListSessionJobs500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessionJobs500JSONResponse) VisitListSessionJobsResponse ¶
func (response ListSessionJobs500JSONResponse) VisitListSessionJobsResponse(w http.ResponseWriter) error
type ListSessionJobsParams ¶
type ListSessionJobsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
State *ListSessionJobsParamsState `form:"state,omitempty" json:"state,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionJobsParams defines parameters for ListSessionJobs.
type ListSessionJobsParamsState ¶
type ListSessionJobsParamsState string
ListSessionJobsParamsState defines parameters for ListSessionJobs.
const ( ListSessionJobsParamsStateExited ListSessionJobsParamsState = "exited" ListSessionJobsParamsStateFailed ListSessionJobsParamsState = "failed" ListSessionJobsParamsStateRunning ListSessionJobsParamsState = "running" ListSessionJobsParamsStateSignalled ListSessionJobsParamsState = "signalled" )
Defines values for ListSessionJobsParamsState.
func (ListSessionJobsParamsState) Valid ¶
func (e ListSessionJobsParamsState) Valid() bool
Valid indicates whether the value is a known member of the ListSessionJobsParamsState enum.
type ListSessionJobsRequestObject ¶
type ListSessionJobsRequestObject struct {
Params ListSessionJobsParams
}
type ListSessionJobsResponseObject ¶
type ListSessionJobsResponseObject interface {
VisitListSessionJobsResponse(w http.ResponseWriter) error
}
type Message ¶
type Message struct {
Content string `json:"content"`
CreatedAt time.Time `json:"createdAt"`
Id openapi_types.UUID `json:"id"`
Incomplete *bool `json:"incomplete,omitempty"`
IsError *bool `json:"isError,omitempty"`
Model *string `json:"model,omitempty"`
Role MessageRole `json:"role"`
Sequence int64 `json:"sequence"`
Thinking *string `json:"thinking,omitempty"`
ToolCallId *string `json:"toolCallId,omitempty"`
ToolCalls *[]MessageToolCall `json:"toolCalls,omitempty"`
Workspace string `json:"workspace"`
}
Message defines model for Message.
type MessagePage ¶
type MessagePage struct {
HasMore bool `json:"hasMore"`
Items []Message `json:"items"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
MessagePage defines model for MessagePage.
type MessageQueuedResponse ¶
type MessageQueuedResponse struct {
Queued bool `json:"queued"`
}
MessageQueuedResponse defines model for MessageQueuedResponse.
type MessageRequest ¶
type MessageRequest struct {
Message string `json:"message"`
Model *string `json:"model,omitempty"`
SystemPrompt *SystemPrompt `json:"systemPrompt,omitempty"`
Workspace *string `json:"workspace,omitempty"`
}
MessageRequest defines model for MessageRequest.
type MessageResponse ¶
type MessageResponse struct {
Message string `json:"message"`
}
MessageResponse defines model for MessageResponse.
type MessageRole ¶
type MessageRole string
MessageRole defines model for Message.Role.
const ( MessageRoleAssistant MessageRole = "assistant" MessageRoleTool MessageRole = "tool" MessageRoleUser MessageRole = "user" )
Defines values for MessageRole.
func (MessageRole) Valid ¶
func (e MessageRole) Valid() bool
Valid indicates whether the value is a known member of the MessageRole enum.
type MessageToolCall ¶
type MessageToolCall struct {
Arguments map[string]interface{} `json:"arguments"`
Id string `json:"id"`
Name string `json:"name"`
}
MessageToolCall defines model for MessageToolCall.
type PublishSessionEvent202JSONResponse ¶
type PublishSessionEvent202JSONResponse struct {
Body SessionEvent
Headers PublishSessionEvent202ResponseHeaders
}
func (PublishSessionEvent202JSONResponse) VisitPublishSessionEventResponse ¶
func (response PublishSessionEvent202JSONResponse) VisitPublishSessionEventResponse(w http.ResponseWriter) error
type PublishSessionEvent202ResponseHeaders ¶
type PublishSessionEvent202ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type PublishSessionEvent400JSONResponse ¶
type PublishSessionEvent400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (PublishSessionEvent400JSONResponse) VisitPublishSessionEventResponse ¶
func (response PublishSessionEvent400JSONResponse) VisitPublishSessionEventResponse(w http.ResponseWriter) error
type PublishSessionEvent401JSONResponse ¶
func (PublishSessionEvent401JSONResponse) VisitPublishSessionEventResponse ¶
func (response PublishSessionEvent401JSONResponse) VisitPublishSessionEventResponse(w http.ResponseWriter) error
type PublishSessionEvent404JSONResponse ¶
type PublishSessionEvent404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (PublishSessionEvent404JSONResponse) VisitPublishSessionEventResponse ¶
func (response PublishSessionEvent404JSONResponse) VisitPublishSessionEventResponse(w http.ResponseWriter) error
type PublishSessionEvent500JSONResponse ¶
type PublishSessionEvent500JSONResponse struct{ ErrorInternalJSONResponse }
func (PublishSessionEvent500JSONResponse) VisitPublishSessionEventResponse ¶
func (response PublishSessionEvent500JSONResponse) VisitPublishSessionEventResponse(w http.ResponseWriter) error
type PublishSessionEventJSONRequestBody ¶
type PublishSessionEventJSONRequestBody = SessionEventRequest
PublishSessionEventJSONRequestBody defines body for PublishSessionEvent for application/json ContentType.
type PublishSessionEventParams ¶
type PublishSessionEventParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
PublishSessionEventParams defines parameters for PublishSessionEvent.
type PublishSessionEventRequestObject ¶
type PublishSessionEventRequestObject struct {
Params PublishSessionEventParams
Body *PublishSessionEventJSONRequestBody
}
type PublishSessionEventResponseObject ¶
type PublishSessionEventResponseObject interface {
VisitPublishSessionEventResponse(w http.ResponseWriter) error
}
type ReadSessionJobOutput200JSONResponse ¶
type ReadSessionJobOutput200JSONResponse struct {
Body JobOutput
Headers ReadSessionJobOutput200ResponseHeaders
}
func (ReadSessionJobOutput200JSONResponse) VisitReadSessionJobOutputResponse ¶
func (response ReadSessionJobOutput200JSONResponse) VisitReadSessionJobOutputResponse(w http.ResponseWriter) error
type ReadSessionJobOutput200ResponseHeaders ¶
type ReadSessionJobOutput200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ReadSessionJobOutput400JSONResponse ¶
type ReadSessionJobOutput400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ReadSessionJobOutput400JSONResponse) VisitReadSessionJobOutputResponse ¶
func (response ReadSessionJobOutput400JSONResponse) VisitReadSessionJobOutputResponse(w http.ResponseWriter) error
type ReadSessionJobOutput401JSONResponse ¶
func (ReadSessionJobOutput401JSONResponse) VisitReadSessionJobOutputResponse ¶
func (response ReadSessionJobOutput401JSONResponse) VisitReadSessionJobOutputResponse(w http.ResponseWriter) error
type ReadSessionJobOutput404JSONResponse ¶
type ReadSessionJobOutput404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ReadSessionJobOutput404JSONResponse) VisitReadSessionJobOutputResponse ¶
func (response ReadSessionJobOutput404JSONResponse) VisitReadSessionJobOutputResponse(w http.ResponseWriter) error
type ReadSessionJobOutput500JSONResponse ¶
type ReadSessionJobOutput500JSONResponse struct{ ErrorInternalJSONResponse }
func (ReadSessionJobOutput500JSONResponse) VisitReadSessionJobOutputResponse ¶
func (response ReadSessionJobOutput500JSONResponse) VisitReadSessionJobOutputResponse(w http.ResponseWriter) error
type ReadSessionJobOutputParams ¶
type ReadSessionJobOutputParams struct {
Stream *ReadSessionJobOutputParamsStream `form:"stream,omitempty" json:"stream,omitempty"`
StdoutCursor *int32 `form:"stdoutCursor,omitempty" json:"stdoutCursor,omitempty"`
StderrCursor *int32 `form:"stderrCursor,omitempty" json:"stderrCursor,omitempty"`
MaxLines *int32 `form:"maxLines,omitempty" json:"maxLines,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ReadSessionJobOutputParams defines parameters for ReadSessionJobOutput.
type ReadSessionJobOutputParamsStream ¶
type ReadSessionJobOutputParamsStream string
ReadSessionJobOutputParamsStream defines parameters for ReadSessionJobOutput.
const ( ReadSessionJobOutputParamsStreamBoth ReadSessionJobOutputParamsStream = "both" ReadSessionJobOutputParamsStreamStderr ReadSessionJobOutputParamsStream = "stderr" ReadSessionJobOutputParamsStreamStdout ReadSessionJobOutputParamsStream = "stdout" )
Defines values for ReadSessionJobOutputParamsStream.
func (ReadSessionJobOutputParamsStream) Valid ¶
func (e ReadSessionJobOutputParamsStream) Valid() bool
Valid indicates whether the value is a known member of the ReadSessionJobOutputParamsStream enum.
type ReadSessionJobOutputRequestObject ¶
type ReadSessionJobOutputRequestObject struct {
JobId JobID `json:"jobId"`
Params ReadSessionJobOutputParams
}
type ReadSessionJobOutputResponseObject ¶
type ReadSessionJobOutputResponseObject interface {
VisitReadSessionJobOutputResponse(w http.ResponseWriter) error
}
type RegisterHandlersOptions ¶
type RegisterHandlersOptions struct {
// BaseURL is prepended to every registered path so the API can be served
// under a prefix.
BaseURL string
// OperationMiddlewares lets the caller attach per-operation middleware at
// registration time. The map key is the OpenAPI `operationId` value as it
// appears in the spec (the raw, un-normalized form). Operations that have
// no entry are registered with no extra middleware. A nil map disables
// per-operation middleware entirely.
OperationMiddlewares map[string][]echo.MiddlewareFunc
}
RegisterHandlersOptions configures RegisterHandlersWithOptions.
type SendMessage200JSONResponse ¶
type SendMessage200JSONResponse struct {
Body MessageResponse
Headers SendMessage200ResponseHeaders
}
func (SendMessage200JSONResponse) VisitSendMessageResponse ¶
func (response SendMessage200JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error
type SendMessage200ResponseHeaders ¶
type SendMessage200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type SendMessage200TexteventStreamResponse ¶
type SendMessage200TexteventStreamResponse struct {
Body io.Reader
Headers SendMessage200ResponseHeaders
ContentLength int64
}
func (SendMessage200TexteventStreamResponse) VisitSendMessageResponse ¶
func (response SendMessage200TexteventStreamResponse) VisitSendMessageResponse(w http.ResponseWriter) error
type SendMessage202JSONResponse ¶
type SendMessage202JSONResponse struct {
Body MessageQueuedResponse
Headers SendMessage202ResponseHeaders
}
func (SendMessage202JSONResponse) VisitSendMessageResponse ¶
func (response SendMessage202JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error
type SendMessage202ResponseHeaders ¶
type SendMessage202ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type SendMessage400JSONResponse ¶
type SendMessage400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (SendMessage400JSONResponse) VisitSendMessageResponse ¶
func (response SendMessage400JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error
type SendMessage401JSONResponse ¶
func (SendMessage401JSONResponse) VisitSendMessageResponse ¶
func (response SendMessage401JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error
type SendMessage404JSONResponse ¶
type SendMessage404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (SendMessage404JSONResponse) VisitSendMessageResponse ¶
func (response SendMessage404JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error
type SendMessage406JSONResponse ¶
type SendMessage406JSONResponse struct{ ErrorNotAcceptableJSONResponse }
func (SendMessage406JSONResponse) VisitSendMessageResponse ¶
func (response SendMessage406JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error
type SendMessage409JSONResponse ¶
type SendMessage409JSONResponse struct{ ErrorConflictJSONResponse }
func (SendMessage409JSONResponse) VisitSendMessageResponse ¶
func (response SendMessage409JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error
type SendMessage500JSONResponse ¶
type SendMessage500JSONResponse struct{ ErrorInternalJSONResponse }
func (SendMessage500JSONResponse) VisitSendMessageResponse ¶
func (response SendMessage500JSONResponse) VisitSendMessageResponse(w http.ResponseWriter) error
type SendMessageJSONRequestBody ¶
type SendMessageJSONRequestBody = MessageRequest
SendMessageJSONRequestBody defines body for SendMessage for application/json ContentType.
type SendMessageParams ¶
type SendMessageParams struct {
XSessionID *SessionIDOptional `json:"X-Session-ID,omitempty"`
}
SendMessageParams defines parameters for SendMessage.
type SendMessageRequestObject ¶
type SendMessageRequestObject struct {
Params SendMessageParams
Body *SendMessageJSONRequestBody
}
type SendMessageResponseObject ¶
type SendMessageResponseObject interface {
VisitSendMessageResponse(w http.ResponseWriter) error
}
type ServerInterface ¶
type ServerInterface interface {
// ListMessages List stored conversation messages
// (GET /messages)
ListMessages(ctx echo.Context, params ListMessagesParams) error
// SendMessage Run one agent turn or queue an active session message
// (POST /messages)
SendMessage(ctx echo.Context, params SendMessageParams) error
// GetSession Read session details
// (GET /session)
GetSession(ctx echo.Context, params GetSessionParams) error
// ListSessionAgentRuns List the child agent runs this session has started
// (GET /session/agents)
ListSessionAgentRuns(ctx echo.Context, params ListSessionAgentRunsParams) error
// CancelSessionAgentRun Cancel one child agent run without ending its parent turn
// (POST /session/agents/{agentRunId}/cancel)
CancelSessionAgentRun(ctx echo.Context, agentRunId AgentRunID, params CancelSessionAgentRunParams) error
// ListSessionAgentRunEvents Follow what one child agent run is doing
// (GET /session/agents/{agentRunId}/messages)
ListSessionAgentRunEvents(ctx echo.Context, agentRunId AgentRunID, params ListSessionAgentRunEventsParams) error
// CancelSession Request cancellation for the active turn
// (POST /session/cancel)
CancelSession(ctx echo.Context, params CancelSessionParams) error
// ListSessionEvents List the session's pending events
// (GET /session/events)
ListSessionEvents(ctx echo.Context, params ListSessionEventsParams) error
// PublishSessionEvent Report an event to the session from outside
// (POST /session/events)
PublishSessionEvent(ctx echo.Context, params PublishSessionEventParams) error
// ListSessionJobs List the commands this session has started
// (GET /session/jobs)
ListSessionJobs(ctx echo.Context, params ListSessionJobsParams) error
// ReadSessionJobOutput Read a bounded window of one job's output
// (GET /session/jobs/{jobId}/output)
ReadSessionJobOutput(ctx echo.Context, jobId JobID, params ReadSessionJobOutputParams) error
// SignalSessionJob Stop one running job
// (POST /session/jobs/{jobId}/signal)
SignalSessionJob(ctx echo.Context, jobId JobID, params SignalSessionJobParams) error
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) CancelSession ¶
func (w *ServerInterfaceWrapper) CancelSession(ctx echo.Context) error
CancelSession converts echo context to params.
func (*ServerInterfaceWrapper) CancelSessionAgentRun ¶
func (w *ServerInterfaceWrapper) CancelSessionAgentRun(ctx echo.Context) error
CancelSessionAgentRun converts echo context to params.
func (*ServerInterfaceWrapper) GetSession ¶
func (w *ServerInterfaceWrapper) GetSession(ctx echo.Context) error
GetSession converts echo context to params.
func (*ServerInterfaceWrapper) ListMessages ¶
func (w *ServerInterfaceWrapper) ListMessages(ctx echo.Context) error
ListMessages converts echo context to params.
func (*ServerInterfaceWrapper) ListSessionAgentRunEvents ¶
func (w *ServerInterfaceWrapper) ListSessionAgentRunEvents(ctx echo.Context) error
ListSessionAgentRunEvents converts echo context to params.
func (*ServerInterfaceWrapper) ListSessionAgentRuns ¶
func (w *ServerInterfaceWrapper) ListSessionAgentRuns(ctx echo.Context) error
ListSessionAgentRuns converts echo context to params.
func (*ServerInterfaceWrapper) ListSessionEvents ¶
func (w *ServerInterfaceWrapper) ListSessionEvents(ctx echo.Context) error
ListSessionEvents converts echo context to params.
func (*ServerInterfaceWrapper) ListSessionJobs ¶
func (w *ServerInterfaceWrapper) ListSessionJobs(ctx echo.Context) error
ListSessionJobs converts echo context to params.
func (*ServerInterfaceWrapper) PublishSessionEvent ¶
func (w *ServerInterfaceWrapper) PublishSessionEvent(ctx echo.Context) error
PublishSessionEvent converts echo context to params.
func (*ServerInterfaceWrapper) ReadSessionJobOutput ¶
func (w *ServerInterfaceWrapper) ReadSessionJobOutput(ctx echo.Context) error
ReadSessionJobOutput converts echo context to params.
func (*ServerInterfaceWrapper) SendMessage ¶
func (w *ServerInterfaceWrapper) SendMessage(ctx echo.Context) error
SendMessage converts echo context to params.
func (*ServerInterfaceWrapper) SignalSessionJob ¶
func (w *ServerInterfaceWrapper) SignalSessionJob(ctx echo.Context) error
SignalSessionJob converts echo context to params.
type Session ¶
type Session struct {
ActiveTurn bool `json:"activeTurn"`
Agent string `json:"agent"`
CompletedTurnCount int64 `json:"completedTurnCount"`
CreatedAt time.Time `json:"createdAt"`
Id openapi_types.UUID `json:"id"`
LastMessageAt *time.Time `json:"lastMessageAt,omitempty"`
MessageCount int64 `json:"messageCount"`
Model string `json:"model"`
UpdatedAt time.Time `json:"updatedAt"`
}
Session defines model for Session.
type SessionEvent ¶
type SessionEvent struct {
CreatedAt time.Time `json:"createdAt"`
Data *map[string]interface{} `json:"data,omitempty"`
Delivery SessionEventDelivery `json:"delivery"`
Id openapi_types.UUID `json:"id"`
Source string `json:"source"`
Summary string `json:"summary"`
Type string `json:"type"`
}
SessionEvent defines model for SessionEvent.
type SessionEventDelivery ¶
type SessionEventDelivery string
SessionEventDelivery defines model for SessionEvent.Delivery.
const ( SessionEventDeliveryQueue SessionEventDelivery = "queue" SessionEventDeliveryWake SessionEventDelivery = "wake" )
Defines values for SessionEventDelivery.
func (SessionEventDelivery) Valid ¶
func (e SessionEventDelivery) Valid() bool
Valid indicates whether the value is a known member of the SessionEventDelivery enum.
type SessionEventPage ¶
type SessionEventPage struct {
// Dropped Events dropped before these because the queue was full.
Dropped int32 `json:"dropped"`
Events []SessionEvent `json:"events"`
}
SessionEventPage defines model for SessionEventPage.
type SessionEventRequest ¶
type SessionEventRequest struct {
// Data Structured payload for programmatic consumers.
Data *map[string]interface{} `json:"data,omitempty"`
// Delivery queue waits for the next turn. wake starts a turn when the session is idle and .agents/events declares a handler for this type.
Delivery *SessionEventRequestDelivery `json:"delivery,omitempty"`
// Summary The one line describing what happened.
Summary string `json:"summary"`
// Type Dotted lowercase namespaced type. The job. and agent. prefixes are reserved for Peen's own producers and are rejected here.
Type string `json:"type"`
}
SessionEventRequest defines model for SessionEventRequest.
type SessionEventRequestDelivery ¶
type SessionEventRequestDelivery string
SessionEventRequestDelivery queue waits for the next turn. wake starts a turn when the session is idle and .agents/events declares a handler for this type.
const ( SessionEventRequestDeliveryQueue SessionEventRequestDelivery = "queue" SessionEventRequestDeliveryWake SessionEventRequestDelivery = "wake" )
Defines values for SessionEventRequestDelivery.
func (SessionEventRequestDelivery) Valid ¶
func (e SessionEventRequestDelivery) Valid() bool
Valid indicates whether the value is a known member of the SessionEventRequestDelivery enum.
type SessionIDOptional ¶
type SessionIDOptional = openapi_types.UUID
SessionIDOptional defines model for SessionIDOptional.
type SessionIDRequired ¶
type SessionIDRequired = openapi_types.UUID
SessionIDRequired defines model for SessionIDRequired.
type SignalSessionJob202JSONResponse ¶
type SignalSessionJob202JSONResponse struct {
Body JobSignalResponse
Headers SignalSessionJob202ResponseHeaders
}
func (SignalSessionJob202JSONResponse) VisitSignalSessionJobResponse ¶
func (response SignalSessionJob202JSONResponse) VisitSignalSessionJobResponse(w http.ResponseWriter) error
type SignalSessionJob202ResponseHeaders ¶
type SignalSessionJob202ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type SignalSessionJob400JSONResponse ¶
type SignalSessionJob400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (SignalSessionJob400JSONResponse) VisitSignalSessionJobResponse ¶
func (response SignalSessionJob400JSONResponse) VisitSignalSessionJobResponse(w http.ResponseWriter) error
type SignalSessionJob401JSONResponse ¶
func (SignalSessionJob401JSONResponse) VisitSignalSessionJobResponse ¶
func (response SignalSessionJob401JSONResponse) VisitSignalSessionJobResponse(w http.ResponseWriter) error
type SignalSessionJob404JSONResponse ¶
type SignalSessionJob404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (SignalSessionJob404JSONResponse) VisitSignalSessionJobResponse ¶
func (response SignalSessionJob404JSONResponse) VisitSignalSessionJobResponse(w http.ResponseWriter) error
type SignalSessionJob500JSONResponse ¶
type SignalSessionJob500JSONResponse struct{ ErrorInternalJSONResponse }
func (SignalSessionJob500JSONResponse) VisitSignalSessionJobResponse ¶
func (response SignalSessionJob500JSONResponse) VisitSignalSessionJobResponse(w http.ResponseWriter) error
type SignalSessionJobJSONRequestBody ¶
type SignalSessionJobJSONRequestBody = JobSignalRequest
SignalSessionJobJSONRequestBody defines body for SignalSessionJob for application/json ContentType.
type SignalSessionJobParams ¶
type SignalSessionJobParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
SignalSessionJobParams defines parameters for SignalSessionJob.
type SignalSessionJobRequestObject ¶
type SignalSessionJobRequestObject struct {
JobId JobID `json:"jobId"`
Params SignalSessionJobParams
Body *SignalSessionJobJSONRequestBody
}
type SignalSessionJobResponseObject ¶
type SignalSessionJobResponseObject interface {
VisitSignalSessionJobResponse(w http.ResponseWriter) error
}
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// ListMessages List stored conversation messages
// (GET /messages)
ListMessages(ctx context.Context, request ListMessagesRequestObject) (ListMessagesResponseObject, error)
// SendMessage Run one agent turn or queue an active session message
// (POST /messages)
SendMessage(ctx context.Context, request SendMessageRequestObject) (SendMessageResponseObject, error)
// GetSession Read session details
// (GET /session)
GetSession(ctx context.Context, request GetSessionRequestObject) (GetSessionResponseObject, error)
// ListSessionAgentRuns List the child agent runs this session has started
// (GET /session/agents)
ListSessionAgentRuns(ctx context.Context, request ListSessionAgentRunsRequestObject) (ListSessionAgentRunsResponseObject, error)
// CancelSessionAgentRun Cancel one child agent run without ending its parent turn
// (POST /session/agents/{agentRunId}/cancel)
CancelSessionAgentRun(ctx context.Context, request CancelSessionAgentRunRequestObject) (CancelSessionAgentRunResponseObject, error)
// ListSessionAgentRunEvents Follow what one child agent run is doing
// (GET /session/agents/{agentRunId}/messages)
ListSessionAgentRunEvents(ctx context.Context, request ListSessionAgentRunEventsRequestObject) (ListSessionAgentRunEventsResponseObject, error)
// CancelSession Request cancellation for the active turn
// (POST /session/cancel)
CancelSession(ctx context.Context, request CancelSessionRequestObject) (CancelSessionResponseObject, error)
// ListSessionEvents List the session's pending events
// (GET /session/events)
ListSessionEvents(ctx context.Context, request ListSessionEventsRequestObject) (ListSessionEventsResponseObject, error)
// PublishSessionEvent Report an event to the session from outside
// (POST /session/events)
PublishSessionEvent(ctx context.Context, request PublishSessionEventRequestObject) (PublishSessionEventResponseObject, error)
// ListSessionJobs List the commands this session has started
// (GET /session/jobs)
ListSessionJobs(ctx context.Context, request ListSessionJobsRequestObject) (ListSessionJobsResponseObject, error)
// ReadSessionJobOutput Read a bounded window of one job's output
// (GET /session/jobs/{jobId}/output)
ReadSessionJobOutput(ctx context.Context, request ReadSessionJobOutputRequestObject) (ReadSessionJobOutputResponseObject, error)
// SignalSessionJob Stop one running job
// (POST /session/jobs/{jobId}/signal)
SignalSessionJob(ctx context.Context, request SignalSessionJobRequestObject) (SignalSessionJobResponseObject, error)
}
StrictServerInterface represents all server handlers.
type SystemPrompt ¶
type SystemPrompt struct {
Content string `json:"content"`
Mode SystemPromptMode `json:"mode"`
}
SystemPrompt defines model for SystemPrompt.
type SystemPromptMode ¶
type SystemPromptMode string
SystemPromptMode defines model for SystemPrompt.Mode.
const ( SystemPromptModeAppend SystemPromptMode = "append" SystemPromptModeReplace SystemPromptMode = "replace" )
Defines values for SystemPromptMode.
func (SystemPromptMode) Valid ¶
func (e SystemPromptMode) Valid() bool
Valid indicates whether the value is a known member of the SystemPromptMode enum.