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 standard HTTP server contract.
Index ¶
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- type AgentRun
- type AgentRunCancelResponse
- type AgentRunCancelResponseState
- type AgentRunCompaction
- type AgentRunCompactionPage
- type AgentRunDefinition
- type AgentRunEvent
- type AgentRunEventPage
- type AgentRunEventPageState
- type AgentRunID
- type AgentRunMessage
- type AgentRunMessagePage
- type AgentRunMessageRole
- type AgentRunPage
- type AgentRunState
- type AgentSpace
- type AgentSpaceDocker
- type AgentSpaceKind
- type AgentSpaceList
- type AgentSpaceNetwork
- 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 Compaction
- type CompactionID
- type CompactionPage
- type ContextHash
- type ContextManifestEntry
- type ContextSnapshot
- type Error
- type ErrorBadRequest
- type ErrorBadRequestJSONResponse
- type ErrorConflict
- type ErrorConflictJSONResponse
- type ErrorForbidden
- type ErrorForbiddenJSONResponse
- type ErrorInternal
- type ErrorInternalJSONResponse
- type ErrorNotFound
- type ErrorNotFoundJSONResponse
- type ErrorUnauthorized
- type ErrorUnauthorizedJSONResponse
- type GetSession200JSONResponse
- type GetSession200ResponseHeaders
- type GetSession400JSONResponse
- type GetSession401JSONResponse
- type GetSession404JSONResponse
- type GetSession500JSONResponse
- type GetSessionAgentRun200JSONResponse
- type GetSessionAgentRun200ResponseHeaders
- type GetSessionAgentRun400JSONResponse
- type GetSessionAgentRun401JSONResponse
- type GetSessionAgentRun404JSONResponse
- type GetSessionAgentRun500JSONResponse
- type GetSessionAgentRunCompaction200JSONResponse
- type GetSessionAgentRunCompaction200ResponseHeaders
- type GetSessionAgentRunCompaction400JSONResponse
- type GetSessionAgentRunCompaction401JSONResponse
- type GetSessionAgentRunCompaction404JSONResponse
- type GetSessionAgentRunCompaction500JSONResponse
- type GetSessionAgentRunCompactionParams
- type GetSessionAgentRunCompactionRequestObject
- type GetSessionAgentRunCompactionResponseObject
- type GetSessionAgentRunParams
- type GetSessionAgentRunRequestObject
- type GetSessionAgentRunResponseObject
- type GetSessionCompaction200JSONResponse
- type GetSessionCompaction200ResponseHeaders
- type GetSessionCompaction400JSONResponse
- type GetSessionCompaction401JSONResponse
- type GetSessionCompaction404JSONResponse
- type GetSessionCompaction500JSONResponse
- type GetSessionCompactionParams
- type GetSessionCompactionRequestObject
- type GetSessionCompactionResponseObject
- type GetSessionContextSnapshot200JSONResponse
- type GetSessionContextSnapshot200ResponseHeaders
- type GetSessionContextSnapshot400JSONResponse
- type GetSessionContextSnapshot401JSONResponse
- type GetSessionContextSnapshot404JSONResponse
- type GetSessionContextSnapshot500JSONResponse
- type GetSessionContextSnapshotParams
- type GetSessionContextSnapshotRequestObject
- type GetSessionContextSnapshotResponseObject
- type GetSessionParams
- type GetSessionPromptSnapshot200JSONResponse
- type GetSessionPromptSnapshot200ResponseHeaders
- type GetSessionPromptSnapshot400JSONResponse
- type GetSessionPromptSnapshot401JSONResponse
- type GetSessionPromptSnapshot404JSONResponse
- type GetSessionPromptSnapshot500JSONResponse
- type GetSessionPromptSnapshotParams
- type GetSessionPromptSnapshotRequestObject
- type GetSessionPromptSnapshotResponseObject
- type GetSessionRequestObject
- type GetSessionResponseObject
- type InvalidParamFormatError
- type Job
- type JobID
- type JobOutput
- type JobOutputLine
- type JobOutputLineStream
- type JobOutputState
- type JobPage
- type JobSignalRecord
- type JobSignalRecordPage
- type JobSignalRecordSignal
- type JobSignalRecordStateAtRequest
- type JobSignalRequest
- type JobSignalRequestSignal
- type JobSignalResponse
- type JobSignalResponseState
- type JobState
- type Limit
- type ListAgentSpaces200JSONResponse
- type ListAgentSpaces200ResponseHeaders
- type ListAgentSpaces401JSONResponse
- type ListAgentSpaces500JSONResponse
- type ListAgentSpacesRequestObject
- type ListAgentSpacesResponseObject
- type ListMessages200JSONResponse
- type ListMessages200ResponseHeaders
- type ListMessages400JSONResponse
- type ListMessages401JSONResponse
- type ListMessages404JSONResponse
- type ListMessages500JSONResponse
- type ListMessagesParams
- type ListMessagesParamsOrder
- type ListMessagesRequestObject
- type ListMessagesResponseObject
- type ListModels200JSONResponse
- type ListModels200ResponseHeaders
- type ListModels401JSONResponse
- type ListModels500JSONResponse
- type ListModelsRequestObject
- type ListModelsResponseObject
- type ListSessionAgentRunCompactions200JSONResponse
- type ListSessionAgentRunCompactions200ResponseHeaders
- type ListSessionAgentRunCompactions400JSONResponse
- type ListSessionAgentRunCompactions401JSONResponse
- type ListSessionAgentRunCompactions404JSONResponse
- type ListSessionAgentRunCompactions500JSONResponse
- type ListSessionAgentRunCompactionsParams
- type ListSessionAgentRunCompactionsRequestObject
- type ListSessionAgentRunCompactionsResponseObject
- type ListSessionAgentRunEvents200JSONResponse
- type ListSessionAgentRunEvents200ResponseHeaders
- type ListSessionAgentRunEvents400JSONResponse
- type ListSessionAgentRunEvents401JSONResponse
- type ListSessionAgentRunEvents404JSONResponse
- type ListSessionAgentRunEvents500JSONResponse
- type ListSessionAgentRunEventsParams
- type ListSessionAgentRunEventsRequestObject
- type ListSessionAgentRunEventsResponseObject
- type ListSessionAgentRunMessages200JSONResponse
- type ListSessionAgentRunMessages200ResponseHeaders
- type ListSessionAgentRunMessages400JSONResponse
- type ListSessionAgentRunMessages401JSONResponse
- type ListSessionAgentRunMessages404JSONResponse
- type ListSessionAgentRunMessages500JSONResponse
- type ListSessionAgentRunMessagesParams
- type ListSessionAgentRunMessagesRequestObject
- type ListSessionAgentRunMessagesResponseObject
- type ListSessionAgentRuns200JSONResponse
- type ListSessionAgentRuns200ResponseHeaders
- type ListSessionAgentRuns400JSONResponse
- type ListSessionAgentRuns401JSONResponse
- type ListSessionAgentRuns404JSONResponse
- type ListSessionAgentRuns500JSONResponse
- type ListSessionAgentRunsParams
- type ListSessionAgentRunsParamsState
- type ListSessionAgentRunsRequestObject
- type ListSessionAgentRunsResponseObject
- type ListSessionAgentSpaceDecisions200JSONResponse
- type ListSessionAgentSpaceDecisions200ResponseHeaders
- type ListSessionAgentSpaceDecisions400JSONResponse
- type ListSessionAgentSpaceDecisions401JSONResponse
- type ListSessionAgentSpaceDecisions404JSONResponse
- type ListSessionAgentSpaceDecisions500JSONResponse
- type ListSessionAgentSpaceDecisionsParams
- type ListSessionAgentSpaceDecisionsRequestObject
- type ListSessionAgentSpaceDecisionsResponseObject
- type ListSessionCompactions200JSONResponse
- type ListSessionCompactions200ResponseHeaders
- type ListSessionCompactions400JSONResponse
- type ListSessionCompactions401JSONResponse
- type ListSessionCompactions404JSONResponse
- type ListSessionCompactions500JSONResponse
- type ListSessionCompactionsParams
- type ListSessionCompactionsRequestObject
- type ListSessionCompactionsResponseObject
- type ListSessionEvents200JSONResponse
- type ListSessionEvents200ResponseHeaders
- type ListSessionEvents400JSONResponse
- type ListSessionEvents401JSONResponse
- type ListSessionEvents404JSONResponse
- type ListSessionEvents500JSONResponse
- type ListSessionEventsParams
- type ListSessionEventsParamsOrder
- type ListSessionEventsRequestObject
- type ListSessionEventsResponseObject
- type ListSessionJobSignalRequests200JSONResponse
- type ListSessionJobSignalRequests200ResponseHeaders
- type ListSessionJobSignalRequests400JSONResponse
- type ListSessionJobSignalRequests401JSONResponse
- type ListSessionJobSignalRequests404JSONResponse
- type ListSessionJobSignalRequests500JSONResponse
- type ListSessionJobSignalRequestsParams
- type ListSessionJobSignalRequestsRequestObject
- type ListSessionJobSignalRequestsResponseObject
- type ListSessionJobs200JSONResponse
- type ListSessionJobs200ResponseHeaders
- type ListSessionJobs400JSONResponse
- type ListSessionJobs401JSONResponse
- type ListSessionJobs404JSONResponse
- type ListSessionJobs500JSONResponse
- type ListSessionJobsParams
- type ListSessionJobsParamsState
- type ListSessionJobsRequestObject
- type ListSessionJobsResponseObject
- type ListSessionModelRunCalls200JSONResponse
- type ListSessionModelRunCalls200ResponseHeaders
- type ListSessionModelRunCalls400JSONResponse
- type ListSessionModelRunCalls401JSONResponse
- type ListSessionModelRunCalls404JSONResponse
- type ListSessionModelRunCalls500JSONResponse
- type ListSessionModelRunCallsParams
- type ListSessionModelRunCallsRequestObject
- type ListSessionModelRunCallsResponseObject
- type ListSessionModelRuns200JSONResponse
- type ListSessionModelRuns200ResponseHeaders
- type ListSessionModelRuns400JSONResponse
- type ListSessionModelRuns401JSONResponse
- type ListSessionModelRuns404JSONResponse
- type ListSessionModelRuns500JSONResponse
- type ListSessionModelRunsParams
- type ListSessionModelRunsParamsStage
- type ListSessionModelRunsParamsState
- type ListSessionModelRunsRequestObject
- type ListSessionModelRunsResponseObject
- type ListSessionNotices200JSONResponse
- type ListSessionNotices200ResponseHeaders
- type ListSessionNotices400JSONResponse
- type ListSessionNotices401JSONResponse
- type ListSessionNotices404JSONResponse
- type ListSessionNotices500JSONResponse
- type ListSessionNoticesParams
- type ListSessionNoticesRequestObject
- type ListSessionNoticesResponseObject
- type ListSessionTurns200JSONResponse
- type ListSessionTurns200ResponseHeaders
- type ListSessionTurns400JSONResponse
- type ListSessionTurns401JSONResponse
- type ListSessionTurns404JSONResponse
- type ListSessionTurns500JSONResponse
- type ListSessionTurnsParams
- type ListSessionTurnsRequestObject
- type ListSessionTurnsResponseObject
- type ListSessionWorkers200JSONResponse
- type ListSessionWorkers200ResponseHeaders
- type ListSessionWorkers400JSONResponse
- type ListSessionWorkers401JSONResponse
- type ListSessionWorkers404JSONResponse
- type ListSessionWorkers500JSONResponse
- type ListSessionWorkersParams
- type ListSessionWorkersRequestObject
- type ListSessionWorkersResponseObject
- type ListSessions200JSONResponse
- type ListSessions200ResponseHeaders
- type ListSessions400JSONResponse
- type ListSessions401JSONResponse
- type ListSessions500JSONResponse
- type ListSessionsParams
- type ListSessionsRequestObject
- type ListSessionsResponseObject
- type ListWorkspaceRoots200JSONResponse
- type ListWorkspaceRoots200ResponseHeaders
- type ListWorkspaceRoots401JSONResponse
- type ListWorkspaceRoots500JSONResponse
- type ListWorkspaceRootsRequestObject
- type ListWorkspaceRootsResponseObject
- type Message
- type MessageInjectedKind
- type MessagePage
- type MessageRole
- type MessageToolCall
- type MiddlewareFunc
- type Model
- type ModelCall
- type ModelCallPage
- type ModelCallState
- type ModelList
- type ModelRun
- type ModelRunID
- type ModelRunPage
- type ModelRunStage
- type ModelRunState
- type Offset
- type OpenSession200JSONResponse
- type OpenSession200ResponseHeaders
- type OpenSession400JSONResponse
- type OpenSession401JSONResponse
- type OpenSession403JSONResponse
- type OpenSession404JSONResponse
- type OpenSession500JSONResponse
- type OpenSessionJSONRequestBody
- type OpenSessionRequest
- type OpenSessionRequestObject
- type OpenSessionResponseObject
- type OpenedSession
- type Order
- type PromptHash
- type PromptSnapshot
- type PublishSessionNotice202JSONResponse
- type PublishSessionNotice202ResponseHeaders
- type PublishSessionNotice400JSONResponse
- type PublishSessionNotice401JSONResponse
- type PublishSessionNotice404JSONResponse
- type PublishSessionNotice500JSONResponse
- type PublishSessionNoticeJSONRequestBody
- type PublishSessionNoticeParams
- type PublishSessionNoticeRequestObject
- type PublishSessionNoticeResponseObject
- type ReadSessionJobOutput200JSONResponse
- type ReadSessionJobOutput200ResponseHeaders
- type ReadSessionJobOutput400JSONResponse
- type ReadSessionJobOutput401JSONResponse
- type ReadSessionJobOutput404JSONResponse
- type ReadSessionJobOutput500JSONResponse
- type ReadSessionJobOutputParams
- type ReadSessionJobOutputParamsStream
- type ReadSessionJobOutputRequestObject
- type ReadSessionJobOutputResponseObject
- type ReconfigureSession200JSONResponse
- type ReconfigureSession200ResponseHeaders
- type ReconfigureSession400JSONResponse
- type ReconfigureSession401JSONResponse
- type ReconfigureSession403JSONResponse
- type ReconfigureSession404JSONResponse
- type ReconfigureSession409JSONResponse
- type ReconfigureSession500JSONResponse
- type ReconfigureSessionJSONRequestBody
- type ReconfigureSessionParams
- type ReconfigureSessionRequest
- type ReconfigureSessionRequestObject
- type ReconfigureSessionResponseObject
- type RequiredHeaderError
- type RequiredParamError
- type ServeMux
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) CancelSession(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CancelSessionAgentRun(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSession(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSessionAgentRun(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSessionAgentRunCompaction(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSessionCompaction(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSessionContextSnapshot(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSessionPromptSnapshot(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListAgentSpaces(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListMessages(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListModels(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionAgentRunCompactions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionAgentRunEvents(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionAgentRunMessages(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionAgentRuns(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionAgentSpaceDecisions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionCompactions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionEvents(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionJobSignalRequests(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionJobs(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionModelRunCalls(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionModelRuns(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionNotices(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionTurns(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionWorkers(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListWorkspaceRoots(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) OpenSession(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PublishSessionNotice(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReadSessionJobOutput(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReconfigureSession(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SignalSessionJob(w http.ResponseWriter, r *http.Request)
- type Session
- type SessionAgentSpaceDecision
- type SessionAgentSpaceDecisionPage
- type SessionIDRequired
- type SessionNotice
- type SessionNoticeDelivery
- type SessionNoticePage
- type SessionNoticeRequest
- type SessionNoticeRequestDelivery
- type SessionPage
- type SignalSessionJob202JSONResponse
- type SignalSessionJob202ResponseHeaders
- type SignalSessionJob400JSONResponse
- type SignalSessionJob401JSONResponse
- type SignalSessionJob404JSONResponse
- type SignalSessionJob500JSONResponse
- type SignalSessionJobJSONRequestBody
- type SignalSessionJobParams
- type SignalSessionJobRequestObject
- type SignalSessionJobResponseObject
- type StdHTTPServerOptions
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TooManyValuesForParamError
- type TranscriptEvent
- type TranscriptEventPage
- type Turn
- type TurnPage
- type TurnState
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type WorkerGeneration
- type WorkerGenerationKind
- type WorkerGenerationPage
- type WorkerGenerationState
- type WorkspaceRootList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶ added in v0.2.0
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶ added in v0.2.0
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶ added in v0.2.0
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶ added in v0.2.0
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type AgentRun ¶
type AgentRun struct {
AgentRunId openapi_types.UUID `json:"agentRunId"`
AllowedTools []interface{} `json:"allowedTools"`
CancelRequested bool `json:"cancelRequested"`
CompletionTokenCount int64 `json:"completionTokenCount"`
Definition AgentRunDefinition `json:"definition"`
Depth int64 `json:"depth"`
EndedAt *time.Time `json:"endedAt,omitempty"`
EventCount int64 `json:"eventCount"`
FailureClassification string `json:"failureClassification"`
FailureDetail string `json:"failureDetail"`
FinishReason string `json:"finishReason"`
Instructions string `json:"instructions"`
Model string `json:"model"`
ModelReference string `json:"modelReference"`
Name string `json:"name"`
ParentAgentRunId *openapi_types.UUID `json:"parentAgentRunId,omitempty"`
ParentToolCallId *string `json:"parentToolCallId,omitempty"`
ParentTurnId openapi_types.UUID `json:"parentTurnId"`
PromptTokenCount int64 `json:"promptTokenCount"`
RequestId openapi_types.UUID `json:"requestId"`
ResponseMessages []interface{} `json:"responseMessages"`
ResponseText string `json:"responseText"`
ResponseThinking string `json:"responseThinking"`
SessionId openapi_types.UUID `json:"sessionId"`
StartedAt time.Time `json:"startedAt"`
State AgentRunState `json:"state"`
SystemPrompt string `json:"systemPrompt"`
Task string `json:"task"`
// WorkerGenerationId Worker generation that ran this child agent.
WorkerGenerationId *string `json:"workerGenerationId,omitempty"`
Workspace string `json:"workspace"`
}
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" AgentRunCancelResponseStateInterrupted AgentRunCancelResponseState = "interrupted" 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 AgentRunCompaction ¶ added in v0.11.0
type AgentRunCompaction struct {
AgentRunId openapi_types.UUID `json:"agentRunId"`
CreatedAt time.Time `json:"createdAt"`
DirectFromSequence int64 `json:"directFromSequence"`
DirectToSequence int64 `json:"directToSequence"`
FromMessageId openapi_types.UUID `json:"fromMessageId"`
FromSequence int64 `json:"fromSequence"`
Id openapi_types.UUID `json:"id"`
InputTokenCount int64 `json:"inputTokenCount"`
Model string `json:"model"`
// ParentCompactionId The direct predecessor this compaction supersedes, or null for the first compaction in the chain.
ParentCompactionId *openapi_types.UUID `json:"parentCompactionId,omitempty"`
PromptHash string `json:"promptHash"`
SessionId openapi_types.UUID `json:"sessionId"`
SourceMessageCount int64 `json:"sourceMessageCount"`
Summary string `json:"summary"`
SummaryTokenCount int64 `json:"summaryTokenCount"`
ToMessageId openapi_types.UUID `json:"toMessageId"`
ToSequence int64 `json:"toSequence"`
}
AgentRunCompaction One immutable summary covering a completed prefix of one child agent run's transcript. directFromSequence and directToSequence name only the messages this row covered itself; fromSequence and toSequence span the whole superseded lineage.
type AgentRunCompactionPage ¶ added in v0.11.0
type AgentRunCompactionPage struct {
Compactions []AgentRunCompaction `json:"compactions"`
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
AgentRunCompactionPage defines model for AgentRunCompactionPage.
type AgentRunDefinition ¶
type AgentRunDefinition string
AgentRunDefinition defines model for AgentRun.Definition.
const ( AgentRunDefinitionAdHoc AgentRunDefinition = "ad-hoc" 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 int64 `json:"sequence"`
Type string `json:"type"`
}
AgentRunEvent defines model for AgentRunEvent.
type AgentRunEventPage ¶
type AgentRunEventPage struct {
AgentRunId openapi_types.UUID `json:"agentRunId"`
Events []AgentRunEvent `json:"events"`
HasMore bool `json:"hasMore"`
// NextCursor Pass back as cursor to continue from here.
NextCursor int64 `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" AgentRunEventPageStateInterrupted AgentRunEventPageState = "interrupted" 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 AgentRunMessage ¶ added in v0.11.0
type AgentRunMessage struct {
AgentRunId openapi_types.UUID `json:"agentRunId"`
// CompactionId The child compaction that directly covered this message, or null while it is still raw.
CompactionId *openapi_types.UUID `json:"compactionId,omitempty"`
Content string `json:"content"`
CreatedAt time.Time `json:"createdAt"`
Id openapi_types.UUID `json:"id"`
Incomplete bool `json:"incomplete"`
IsError bool `json:"isError"`
Model *string `json:"model,omitempty"`
Role AgentRunMessageRole `json:"role"`
Sequence int64 `json:"sequence"`
SessionId openapi_types.UUID `json:"sessionId"`
Thinking *string `json:"thinking,omitempty"`
ToolCallId *string `json:"toolCallId,omitempty"`
ToolCalls *[]map[string]interface{} `json:"toolCalls,omitempty"`
}
AgentRunMessage One prompt-visible record in a child agent run's own transcript. It carries no turn: a child belongs to its agent run, not to a session turn's message sequence.
type AgentRunMessagePage ¶ added in v0.11.0
type AgentRunMessagePage struct {
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
Messages []AgentRunMessage `json:"messages"`
Offset int32 `json:"offset"`
}
AgentRunMessagePage defines model for AgentRunMessagePage.
type AgentRunMessageRole ¶ added in v0.11.0
type AgentRunMessageRole string
AgentRunMessageRole defines model for AgentRunMessage.Role.
const ( AgentRunMessageRoleAssistant AgentRunMessageRole = "assistant" AgentRunMessageRoleTool AgentRunMessageRole = "tool" AgentRunMessageRoleUser AgentRunMessageRole = "user" )
Defines values for AgentRunMessageRole.
func (AgentRunMessageRole) Valid ¶ added in v0.11.0
func (e AgentRunMessageRole) Valid() bool
Valid indicates whether the value is a known member of the AgentRunMessageRole enum.
type AgentRunPage ¶
type AgentRunPage struct {
Agents []AgentRun `json:"agents"`
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
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" AgentRunStateInterrupted AgentRunState = "interrupted" 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 AgentSpace ¶ added in v0.19.0
type AgentSpace struct {
// CapabilityWarnings One operator-facing sentence for each risky grant this space makes. Empty for a space that grants nothing risky.
CapabilityWarnings []string `json:"capabilityWarnings"`
// Docker How much of the host Docker daemon the space reaches. `full` mounts the controller's Docker socket, which is host root. `readonly` is reserved, and the controller refuses to start with a profile that names it. Set only for kind docker.
Docker *AgentSpaceDocker `json:"docker,omitempty"`
// HostRootEquivalent True when this space grants access that is effectively host root, which is `docker: full`.
HostRootEquivalent bool `json:"hostRootEquivalent"`
Kind AgentSpaceKind `json:"kind"`
// Name What a client names to pick this agent space: `control` or `docker:<profile>`.
Name string `json:"name"`
// Network The network the space gives its worker. Set only for kind docker.
Network *AgentSpaceNetwork `json:"network,omitempty"`
// Profile The Docker profile behind the space. Set only for kind docker.
Profile *string `json:"profile,omitempty"`
Revision int64 `json:"revision"`
// Sudo True when the agent may run commands as root inside the worker container. Set only for kind docker.
Sudo *bool `json:"sudo,omitempty"`
}
AgentSpace defines model for AgentSpace.
type AgentSpaceDocker ¶ added in v0.19.0
type AgentSpaceDocker string
AgentSpaceDocker How much of the host Docker daemon the space reaches. `full` mounts the controller's Docker socket, which is host root. `readonly` is reserved, and the controller refuses to start with a profile that names it. Set only for kind docker.
const ( AgentSpaceDockerFull AgentSpaceDocker = "full" AgentSpaceDockerNone AgentSpaceDocker = "none" AgentSpaceDockerReadonly AgentSpaceDocker = "readonly" )
Defines values for AgentSpaceDocker.
func (AgentSpaceDocker) Valid ¶ added in v0.19.0
func (e AgentSpaceDocker) Valid() bool
Valid indicates whether the value is a known member of the AgentSpaceDocker enum.
type AgentSpaceKind ¶ added in v0.19.0
type AgentSpaceKind string
AgentSpaceKind defines model for AgentSpace.Kind.
const ( AgentSpaceKindControl AgentSpaceKind = "control" AgentSpaceKindDocker AgentSpaceKind = "docker" )
Defines values for AgentSpaceKind.
func (AgentSpaceKind) Valid ¶ added in v0.19.0
func (e AgentSpaceKind) Valid() bool
Valid indicates whether the value is a known member of the AgentSpaceKind enum.
type AgentSpaceList ¶ added in v0.19.0
type AgentSpaceList struct {
// Default The agent space a session opened without naming one uses.
Default string `json:"default"`
Items []AgentSpace `json:"items"`
}
AgentSpaceList defines model for AgentSpaceList.
type AgentSpaceNetwork ¶ added in v0.19.0
type AgentSpaceNetwork string
AgentSpaceNetwork The network the space gives its worker. Set only for kind docker.
const ( AgentSpaceNetworkBridge AgentSpaceNetwork = "bridge" AgentSpaceNetworkHost AgentSpaceNetwork = "host" AgentSpaceNetworkNone AgentSpaceNetwork = "none" )
Defines values for AgentSpaceNetwork.
func (AgentSpaceNetwork) Valid ¶ added in v0.19.0
func (e AgentSpaceNetwork) Valid() bool
Valid indicates whether the value is a known member of the AgentSpaceNetwork 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 Compaction ¶ added in v0.4.0
type Compaction struct {
CreatedAt time.Time `json:"createdAt"`
FromMessageId openapi_types.UUID `json:"fromMessageId"`
FromSequence int64 `json:"fromSequence"`
Id openapi_types.UUID `json:"id"`
InputTokenCount int64 `json:"inputTokenCount"`
Model string `json:"model"`
ParentCompactionId *openapi_types.UUID `json:"parentCompactionId,omitempty"`
PromptHash string `json:"promptHash"`
SessionId openapi_types.UUID `json:"sessionId"`
SourceMessageCount int64 `json:"sourceMessageCount"`
Summary string `json:"summary"`
SummaryTokenCount int64 `json:"summaryTokenCount"`
ToMessageId openapi_types.UUID `json:"toMessageId"`
ToSequence int64 `json:"toSequence"`
}
Compaction defines model for Compaction.
type CompactionID ¶ added in v0.4.0
type CompactionID = openapi_types.UUID
CompactionID defines model for CompactionID.
type CompactionPage ¶ added in v0.4.0
type CompactionPage struct {
Compactions []Compaction `json:"compactions"`
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
CompactionPage defines model for CompactionPage.
type ContextHash ¶ added in v0.4.0
type ContextHash = string
ContextHash defines model for ContextHash.
type ContextManifestEntry ¶ added in v0.8.0
type ContextManifestEntry struct {
Hash string `json:"hash"`
Kind string `json:"kind"`
Name string `json:"name"`
Priority int32 `json:"priority"`
Source string `json:"source"`
}
ContextManifestEntry defines model for ContextManifestEntry.
type ContextSnapshot ¶ added in v0.4.0
type ContextSnapshot struct {
CreatedAt time.Time `json:"createdAt"`
Hash string `json:"hash"`
// Manifest The layered sources this context was assembled from, in resolution order. It is a list because the harness contributes one entry per file from the filesystem root down to the workspace, and the same name may appear at more than one layer.
Manifest []ContextManifestEntry `json:"manifest"`
ResolvedContent string `json:"resolvedContent"`
}
ContextSnapshot defines model for ContextSnapshot.
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 ErrorForbidden ¶ added in v0.8.0
type ErrorForbidden = Error
ErrorForbidden defines model for ErrorForbidden.
type ErrorForbiddenJSONResponse ¶ added in v0.8.0
type ErrorForbiddenJSONResponse Error
type ErrorInternalJSONResponse ¶
type ErrorInternalJSONResponse 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 GetSessionAgentRun200JSONResponse ¶ added in v0.4.0
type GetSessionAgentRun200JSONResponse struct {
Body AgentRun
Headers GetSessionAgentRun200ResponseHeaders
}
func (GetSessionAgentRun200JSONResponse) VisitGetSessionAgentRunResponse ¶ added in v0.4.0
func (response GetSessionAgentRun200JSONResponse) VisitGetSessionAgentRunResponse(w http.ResponseWriter) error
type GetSessionAgentRun200ResponseHeaders ¶ added in v0.4.0
type GetSessionAgentRun200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type GetSessionAgentRun400JSONResponse ¶ added in v0.4.0
type GetSessionAgentRun400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (GetSessionAgentRun400JSONResponse) VisitGetSessionAgentRunResponse ¶ added in v0.4.0
func (response GetSessionAgentRun400JSONResponse) VisitGetSessionAgentRunResponse(w http.ResponseWriter) error
type GetSessionAgentRun401JSONResponse ¶ added in v0.4.0
func (GetSessionAgentRun401JSONResponse) VisitGetSessionAgentRunResponse ¶ added in v0.4.0
func (response GetSessionAgentRun401JSONResponse) VisitGetSessionAgentRunResponse(w http.ResponseWriter) error
type GetSessionAgentRun404JSONResponse ¶ added in v0.4.0
type GetSessionAgentRun404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (GetSessionAgentRun404JSONResponse) VisitGetSessionAgentRunResponse ¶ added in v0.4.0
func (response GetSessionAgentRun404JSONResponse) VisitGetSessionAgentRunResponse(w http.ResponseWriter) error
type GetSessionAgentRun500JSONResponse ¶ added in v0.4.0
type GetSessionAgentRun500JSONResponse struct{ ErrorInternalJSONResponse }
func (GetSessionAgentRun500JSONResponse) VisitGetSessionAgentRunResponse ¶ added in v0.4.0
func (response GetSessionAgentRun500JSONResponse) VisitGetSessionAgentRunResponse(w http.ResponseWriter) error
type GetSessionAgentRunCompaction200JSONResponse ¶ added in v0.11.0
type GetSessionAgentRunCompaction200JSONResponse struct {
Body AgentRunCompaction
Headers GetSessionAgentRunCompaction200ResponseHeaders
}
func (GetSessionAgentRunCompaction200JSONResponse) VisitGetSessionAgentRunCompactionResponse ¶ added in v0.11.0
func (response GetSessionAgentRunCompaction200JSONResponse) VisitGetSessionAgentRunCompactionResponse(w http.ResponseWriter) error
type GetSessionAgentRunCompaction200ResponseHeaders ¶ added in v0.11.0
type GetSessionAgentRunCompaction200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type GetSessionAgentRunCompaction400JSONResponse ¶ added in v0.11.0
type GetSessionAgentRunCompaction400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (GetSessionAgentRunCompaction400JSONResponse) VisitGetSessionAgentRunCompactionResponse ¶ added in v0.11.0
func (response GetSessionAgentRunCompaction400JSONResponse) VisitGetSessionAgentRunCompactionResponse(w http.ResponseWriter) error
type GetSessionAgentRunCompaction401JSONResponse ¶ added in v0.11.0
func (GetSessionAgentRunCompaction401JSONResponse) VisitGetSessionAgentRunCompactionResponse ¶ added in v0.11.0
func (response GetSessionAgentRunCompaction401JSONResponse) VisitGetSessionAgentRunCompactionResponse(w http.ResponseWriter) error
type GetSessionAgentRunCompaction404JSONResponse ¶ added in v0.11.0
type GetSessionAgentRunCompaction404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (GetSessionAgentRunCompaction404JSONResponse) VisitGetSessionAgentRunCompactionResponse ¶ added in v0.11.0
func (response GetSessionAgentRunCompaction404JSONResponse) VisitGetSessionAgentRunCompactionResponse(w http.ResponseWriter) error
type GetSessionAgentRunCompaction500JSONResponse ¶ added in v0.11.0
type GetSessionAgentRunCompaction500JSONResponse struct{ ErrorInternalJSONResponse }
func (GetSessionAgentRunCompaction500JSONResponse) VisitGetSessionAgentRunCompactionResponse ¶ added in v0.11.0
func (response GetSessionAgentRunCompaction500JSONResponse) VisitGetSessionAgentRunCompactionResponse(w http.ResponseWriter) error
type GetSessionAgentRunCompactionParams ¶ added in v0.11.0
type GetSessionAgentRunCompactionParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
GetSessionAgentRunCompactionParams defines parameters for GetSessionAgentRunCompaction.
type GetSessionAgentRunCompactionRequestObject ¶ added in v0.11.0
type GetSessionAgentRunCompactionRequestObject struct {
AgentRunId AgentRunID `json:"agentRunId"`
CompactionId CompactionID `json:"compactionId"`
Params GetSessionAgentRunCompactionParams
}
type GetSessionAgentRunCompactionResponseObject ¶ added in v0.11.0
type GetSessionAgentRunCompactionResponseObject interface {
VisitGetSessionAgentRunCompactionResponse(w http.ResponseWriter) error
}
type GetSessionAgentRunParams ¶ added in v0.4.0
type GetSessionAgentRunParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
GetSessionAgentRunParams defines parameters for GetSessionAgentRun.
type GetSessionAgentRunRequestObject ¶ added in v0.4.0
type GetSessionAgentRunRequestObject struct {
AgentRunId AgentRunID `json:"agentRunId"`
Params GetSessionAgentRunParams
}
type GetSessionAgentRunResponseObject ¶ added in v0.4.0
type GetSessionAgentRunResponseObject interface {
VisitGetSessionAgentRunResponse(w http.ResponseWriter) error
}
type GetSessionCompaction200JSONResponse ¶ added in v0.4.0
type GetSessionCompaction200JSONResponse struct {
Body Compaction
Headers GetSessionCompaction200ResponseHeaders
}
func (GetSessionCompaction200JSONResponse) VisitGetSessionCompactionResponse ¶ added in v0.4.0
func (response GetSessionCompaction200JSONResponse) VisitGetSessionCompactionResponse(w http.ResponseWriter) error
type GetSessionCompaction200ResponseHeaders ¶ added in v0.4.0
type GetSessionCompaction200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type GetSessionCompaction400JSONResponse ¶ added in v0.4.0
type GetSessionCompaction400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (GetSessionCompaction400JSONResponse) VisitGetSessionCompactionResponse ¶ added in v0.4.0
func (response GetSessionCompaction400JSONResponse) VisitGetSessionCompactionResponse(w http.ResponseWriter) error
type GetSessionCompaction401JSONResponse ¶ added in v0.4.0
func (GetSessionCompaction401JSONResponse) VisitGetSessionCompactionResponse ¶ added in v0.4.0
func (response GetSessionCompaction401JSONResponse) VisitGetSessionCompactionResponse(w http.ResponseWriter) error
type GetSessionCompaction404JSONResponse ¶ added in v0.4.0
type GetSessionCompaction404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (GetSessionCompaction404JSONResponse) VisitGetSessionCompactionResponse ¶ added in v0.4.0
func (response GetSessionCompaction404JSONResponse) VisitGetSessionCompactionResponse(w http.ResponseWriter) error
type GetSessionCompaction500JSONResponse ¶ added in v0.4.0
type GetSessionCompaction500JSONResponse struct{ ErrorInternalJSONResponse }
func (GetSessionCompaction500JSONResponse) VisitGetSessionCompactionResponse ¶ added in v0.4.0
func (response GetSessionCompaction500JSONResponse) VisitGetSessionCompactionResponse(w http.ResponseWriter) error
type GetSessionCompactionParams ¶ added in v0.4.0
type GetSessionCompactionParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
GetSessionCompactionParams defines parameters for GetSessionCompaction.
type GetSessionCompactionRequestObject ¶ added in v0.4.0
type GetSessionCompactionRequestObject struct {
CompactionId CompactionID `json:"compactionId"`
Params GetSessionCompactionParams
}
type GetSessionCompactionResponseObject ¶ added in v0.4.0
type GetSessionCompactionResponseObject interface {
VisitGetSessionCompactionResponse(w http.ResponseWriter) error
}
type GetSessionContextSnapshot200JSONResponse ¶ added in v0.4.0
type GetSessionContextSnapshot200JSONResponse struct {
Body ContextSnapshot
Headers GetSessionContextSnapshot200ResponseHeaders
}
func (GetSessionContextSnapshot200JSONResponse) VisitGetSessionContextSnapshotResponse ¶ added in v0.4.0
func (response GetSessionContextSnapshot200JSONResponse) VisitGetSessionContextSnapshotResponse(w http.ResponseWriter) error
type GetSessionContextSnapshot200ResponseHeaders ¶ added in v0.4.0
type GetSessionContextSnapshot200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type GetSessionContextSnapshot400JSONResponse ¶ added in v0.4.0
type GetSessionContextSnapshot400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (GetSessionContextSnapshot400JSONResponse) VisitGetSessionContextSnapshotResponse ¶ added in v0.4.0
func (response GetSessionContextSnapshot400JSONResponse) VisitGetSessionContextSnapshotResponse(w http.ResponseWriter) error
type GetSessionContextSnapshot401JSONResponse ¶ added in v0.4.0
func (GetSessionContextSnapshot401JSONResponse) VisitGetSessionContextSnapshotResponse ¶ added in v0.4.0
func (response GetSessionContextSnapshot401JSONResponse) VisitGetSessionContextSnapshotResponse(w http.ResponseWriter) error
type GetSessionContextSnapshot404JSONResponse ¶ added in v0.4.0
type GetSessionContextSnapshot404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (GetSessionContextSnapshot404JSONResponse) VisitGetSessionContextSnapshotResponse ¶ added in v0.4.0
func (response GetSessionContextSnapshot404JSONResponse) VisitGetSessionContextSnapshotResponse(w http.ResponseWriter) error
type GetSessionContextSnapshot500JSONResponse ¶ added in v0.4.0
type GetSessionContextSnapshot500JSONResponse struct{ ErrorInternalJSONResponse }
func (GetSessionContextSnapshot500JSONResponse) VisitGetSessionContextSnapshotResponse ¶ added in v0.4.0
func (response GetSessionContextSnapshot500JSONResponse) VisitGetSessionContextSnapshotResponse(w http.ResponseWriter) error
type GetSessionContextSnapshotParams ¶ added in v0.4.0
type GetSessionContextSnapshotParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
GetSessionContextSnapshotParams defines parameters for GetSessionContextSnapshot.
type GetSessionContextSnapshotRequestObject ¶ added in v0.4.0
type GetSessionContextSnapshotRequestObject struct {
ContextHash ContextHash `json:"contextHash"`
Params GetSessionContextSnapshotParams
}
type GetSessionContextSnapshotResponseObject ¶ added in v0.4.0
type GetSessionContextSnapshotResponseObject interface {
VisitGetSessionContextSnapshotResponse(w http.ResponseWriter) error
}
type GetSessionParams ¶
type GetSessionParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
GetSessionParams defines parameters for GetSession.
type GetSessionPromptSnapshot200JSONResponse ¶ added in v0.4.0
type GetSessionPromptSnapshot200JSONResponse struct {
Body PromptSnapshot
Headers GetSessionPromptSnapshot200ResponseHeaders
}
func (GetSessionPromptSnapshot200JSONResponse) VisitGetSessionPromptSnapshotResponse ¶ added in v0.4.0
func (response GetSessionPromptSnapshot200JSONResponse) VisitGetSessionPromptSnapshotResponse(w http.ResponseWriter) error
type GetSessionPromptSnapshot200ResponseHeaders ¶ added in v0.4.0
type GetSessionPromptSnapshot200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type GetSessionPromptSnapshot400JSONResponse ¶ added in v0.4.0
type GetSessionPromptSnapshot400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (GetSessionPromptSnapshot400JSONResponse) VisitGetSessionPromptSnapshotResponse ¶ added in v0.4.0
func (response GetSessionPromptSnapshot400JSONResponse) VisitGetSessionPromptSnapshotResponse(w http.ResponseWriter) error
type GetSessionPromptSnapshot401JSONResponse ¶ added in v0.4.0
func (GetSessionPromptSnapshot401JSONResponse) VisitGetSessionPromptSnapshotResponse ¶ added in v0.4.0
func (response GetSessionPromptSnapshot401JSONResponse) VisitGetSessionPromptSnapshotResponse(w http.ResponseWriter) error
type GetSessionPromptSnapshot404JSONResponse ¶ added in v0.4.0
type GetSessionPromptSnapshot404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (GetSessionPromptSnapshot404JSONResponse) VisitGetSessionPromptSnapshotResponse ¶ added in v0.4.0
func (response GetSessionPromptSnapshot404JSONResponse) VisitGetSessionPromptSnapshotResponse(w http.ResponseWriter) error
type GetSessionPromptSnapshot500JSONResponse ¶ added in v0.4.0
type GetSessionPromptSnapshot500JSONResponse struct{ ErrorInternalJSONResponse }
func (GetSessionPromptSnapshot500JSONResponse) VisitGetSessionPromptSnapshotResponse ¶ added in v0.4.0
func (response GetSessionPromptSnapshot500JSONResponse) VisitGetSessionPromptSnapshotResponse(w http.ResponseWriter) error
type GetSessionPromptSnapshotParams ¶ added in v0.4.0
type GetSessionPromptSnapshotParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
GetSessionPromptSnapshotParams defines parameters for GetSessionPromptSnapshot.
type GetSessionPromptSnapshotRequestObject ¶ added in v0.4.0
type GetSessionPromptSnapshotRequestObject struct {
PromptHash PromptHash `json:"promptHash"`
Params GetSessionPromptSnapshotParams
}
type GetSessionPromptSnapshotResponseObject ¶ added in v0.4.0
type GetSessionPromptSnapshotResponseObject interface {
VisitGetSessionPromptSnapshotResponse(w http.ResponseWriter) error
}
type GetSessionRequestObject ¶
type GetSessionRequestObject struct {
Params GetSessionParams
}
type GetSessionResponseObject ¶
type GetSessionResponseObject interface {
VisitGetSessionResponse(w http.ResponseWriter) error
}
type InvalidParamFormatError ¶ added in v0.2.0
func (*InvalidParamFormatError) Error ¶ added in v0.2.0
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶ added in v0.2.0
func (e *InvalidParamFormatError) Unwrap() 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 int64 `json:"exitCode"`
// FailureDetail Empty unless Peen recorded a terminal failure detail.
FailureDetail string `json:"failureDetail"`
JobId openapi_types.UUID `json:"jobId"`
// Pid Operating-system process ID of the job's shell.
Pid int64 `json:"pid"`
// Purpose Why the agent said it was running this command.
Purpose string `json:"purpose"`
SessionId openapi_types.UUID `json:"sessionId"`
StartedAt time.Time `json:"startedAt"`
State JobState `json:"state"`
// ToolCallId The tool call that started this job.
ToolCallId *string `json:"toolCallId,omitempty"`
// TurnId The durable turn that launched this process.
TurnId openapi_types.UUID `json:"turnId"`
// WorkerGenerationId Worker generation that launched this process.
WorkerGenerationId *string `json:"workerGenerationId,omitempty"`
}
Job defines model for Job.
type JobOutput ¶
type JobOutput struct {
HasMore bool `json:"hasMore"`
JobId openapi_types.UUID `json:"jobId"`
// Lines Ordered immutable stdout and stderr records from SQLite.
Lines []JobOutputLine `json:"lines"`
// NextCursor Pass back as cursor to continue from this durable sequence.
NextCursor int64 `json:"nextCursor"`
State JobOutputState `json:"state"`
}
JobOutput defines model for JobOutput.
type JobOutputLine ¶ added in v0.4.0
type JobOutputLine struct {
Content string `json:"content"`
CreatedAt time.Time `json:"createdAt"`
Id openapi_types.UUID `json:"id"`
JobId openapi_types.UUID `json:"jobId"`
Sequence int64 `json:"sequence"`
SessionId openapi_types.UUID `json:"sessionId"`
Stream JobOutputLineStream `json:"stream"`
}
JobOutputLine defines model for JobOutputLine.
type JobOutputLineStream ¶ added in v0.4.0
type JobOutputLineStream string
JobOutputLineStream defines model for JobOutputLine.Stream.
const ( JobOutputLineStreamStderr JobOutputLineStream = "stderr" JobOutputLineStreamStdout JobOutputLineStream = "stdout" )
Defines values for JobOutputLineStream.
func (JobOutputLineStream) Valid ¶ added in v0.4.0
func (e JobOutputLineStream) Valid() bool
Valid indicates whether the value is a known member of the JobOutputLineStream enum.
type JobOutputState ¶
type JobOutputState string
JobOutputState defines model for JobOutput.State.
const ( JobOutputStateExited JobOutputState = "exited" JobOutputStateFailed JobOutputState = "failed" JobOutputStateInterrupted JobOutputState = "interrupted" 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 JobPage ¶
type JobPage struct {
HasMore bool `json:"hasMore"`
Jobs []Job `json:"jobs"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
JobPage defines model for JobPage.
type JobSignalRecord ¶ added in v0.4.0
type JobSignalRecord struct {
Accepted bool `json:"accepted"`
Id openapi_types.UUID `json:"id"`
JobId openapi_types.UUID `json:"jobId"`
RequestedAt time.Time `json:"requestedAt"`
SessionId openapi_types.UUID `json:"sessionId"`
Signal JobSignalRecordSignal `json:"signal"`
StateAtRequest JobSignalRecordStateAtRequest `json:"stateAtRequest"`
}
JobSignalRecord defines model for JobSignalRecord.
type JobSignalRecordPage ¶ added in v0.4.0
type JobSignalRecordPage struct {
HasMore bool `json:"hasMore"`
Job Job `json:"job"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
SignalRequests []JobSignalRecord `json:"signalRequests"`
}
JobSignalRecordPage defines model for JobSignalRecordPage.
type JobSignalRecordSignal ¶ added in v0.4.0
type JobSignalRecordSignal string
JobSignalRecordSignal defines model for JobSignalRecord.Signal.
const ( JobSignalRecordSignalKill JobSignalRecordSignal = "kill" JobSignalRecordSignalStop JobSignalRecordSignal = "stop" )
Defines values for JobSignalRecordSignal.
func (JobSignalRecordSignal) Valid ¶ added in v0.4.0
func (e JobSignalRecordSignal) Valid() bool
Valid indicates whether the value is a known member of the JobSignalRecordSignal enum.
type JobSignalRecordStateAtRequest ¶ added in v0.4.0
type JobSignalRecordStateAtRequest string
JobSignalRecordStateAtRequest defines model for JobSignalRecord.StateAtRequest.
const ( JobSignalRecordStateAtRequestExited JobSignalRecordStateAtRequest = "exited" JobSignalRecordStateAtRequestFailed JobSignalRecordStateAtRequest = "failed" JobSignalRecordStateAtRequestInterrupted JobSignalRecordStateAtRequest = "interrupted" JobSignalRecordStateAtRequestRunning JobSignalRecordStateAtRequest = "running" JobSignalRecordStateAtRequestSignalled JobSignalRecordStateAtRequest = "signalled" )
Defines values for JobSignalRecordStateAtRequest.
func (JobSignalRecordStateAtRequest) Valid ¶ added in v0.4.0
func (e JobSignalRecordStateAtRequest) Valid() bool
Valid indicates whether the value is a known member of the JobSignalRecordStateAtRequest 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" JobSignalResponseStateInterrupted JobSignalResponseState = "interrupted" 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 ListAgentSpaces200JSONResponse ¶ added in v0.19.0
type ListAgentSpaces200JSONResponse struct {
Body AgentSpaceList
Headers ListAgentSpaces200ResponseHeaders
}
func (ListAgentSpaces200JSONResponse) VisitListAgentSpacesResponse ¶ added in v0.19.0
func (response ListAgentSpaces200JSONResponse) VisitListAgentSpacesResponse(w http.ResponseWriter) error
type ListAgentSpaces200ResponseHeaders ¶ added in v0.19.0
type ListAgentSpaces200ResponseHeaders struct {
XRequestID openapi_types.UUID
}
type ListAgentSpaces401JSONResponse ¶ added in v0.19.0
func (ListAgentSpaces401JSONResponse) VisitListAgentSpacesResponse ¶ added in v0.19.0
func (response ListAgentSpaces401JSONResponse) VisitListAgentSpacesResponse(w http.ResponseWriter) error
type ListAgentSpaces500JSONResponse ¶ added in v0.19.0
type ListAgentSpaces500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListAgentSpaces500JSONResponse) VisitListAgentSpacesResponse ¶ added in v0.19.0
func (response ListAgentSpaces500JSONResponse) VisitListAgentSpacesResponse(w http.ResponseWriter) error
type ListAgentSpacesRequestObject ¶ added in v0.19.0
type ListAgentSpacesRequestObject struct {
}
type ListAgentSpacesResponseObject ¶ added in v0.19.0
type ListAgentSpacesResponseObject interface {
VisitListAgentSpacesResponse(w http.ResponseWriter) error
}
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 ListModels200JSONResponse ¶ added in v0.12.0
type ListModels200JSONResponse struct {
Body ModelList
Headers ListModels200ResponseHeaders
}
func (ListModels200JSONResponse) VisitListModelsResponse ¶ added in v0.12.0
func (response ListModels200JSONResponse) VisitListModelsResponse(w http.ResponseWriter) error
type ListModels200ResponseHeaders ¶ added in v0.12.0
type ListModels200ResponseHeaders struct {
XRequestID openapi_types.UUID
}
type ListModels401JSONResponse ¶ added in v0.12.0
func (ListModels401JSONResponse) VisitListModelsResponse ¶ added in v0.12.0
func (response ListModels401JSONResponse) VisitListModelsResponse(w http.ResponseWriter) error
type ListModels500JSONResponse ¶ added in v0.12.0
type ListModels500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListModels500JSONResponse) VisitListModelsResponse ¶ added in v0.12.0
func (response ListModels500JSONResponse) VisitListModelsResponse(w http.ResponseWriter) error
type ListModelsRequestObject ¶ added in v0.12.0
type ListModelsRequestObject struct {
}
type ListModelsResponseObject ¶ added in v0.12.0
type ListModelsResponseObject interface {
VisitListModelsResponse(w http.ResponseWriter) error
}
type ListSessionAgentRunCompactions200JSONResponse ¶ added in v0.11.0
type ListSessionAgentRunCompactions200JSONResponse struct {
Body AgentRunCompactionPage
Headers ListSessionAgentRunCompactions200ResponseHeaders
}
func (ListSessionAgentRunCompactions200JSONResponse) VisitListSessionAgentRunCompactionsResponse ¶ added in v0.11.0
func (response ListSessionAgentRunCompactions200JSONResponse) VisitListSessionAgentRunCompactionsResponse(w http.ResponseWriter) error
type ListSessionAgentRunCompactions200ResponseHeaders ¶ added in v0.11.0
type ListSessionAgentRunCompactions200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListSessionAgentRunCompactions400JSONResponse ¶ added in v0.11.0
type ListSessionAgentRunCompactions400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessionAgentRunCompactions400JSONResponse) VisitListSessionAgentRunCompactionsResponse ¶ added in v0.11.0
func (response ListSessionAgentRunCompactions400JSONResponse) VisitListSessionAgentRunCompactionsResponse(w http.ResponseWriter) error
type ListSessionAgentRunCompactions401JSONResponse ¶ added in v0.11.0
func (ListSessionAgentRunCompactions401JSONResponse) VisitListSessionAgentRunCompactionsResponse ¶ added in v0.11.0
func (response ListSessionAgentRunCompactions401JSONResponse) VisitListSessionAgentRunCompactionsResponse(w http.ResponseWriter) error
type ListSessionAgentRunCompactions404JSONResponse ¶ added in v0.11.0
type ListSessionAgentRunCompactions404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListSessionAgentRunCompactions404JSONResponse) VisitListSessionAgentRunCompactionsResponse ¶ added in v0.11.0
func (response ListSessionAgentRunCompactions404JSONResponse) VisitListSessionAgentRunCompactionsResponse(w http.ResponseWriter) error
type ListSessionAgentRunCompactions500JSONResponse ¶ added in v0.11.0
type ListSessionAgentRunCompactions500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessionAgentRunCompactions500JSONResponse) VisitListSessionAgentRunCompactionsResponse ¶ added in v0.11.0
func (response ListSessionAgentRunCompactions500JSONResponse) VisitListSessionAgentRunCompactionsResponse(w http.ResponseWriter) error
type ListSessionAgentRunCompactionsParams ¶ added in v0.11.0
type ListSessionAgentRunCompactionsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionAgentRunCompactionsParams defines parameters for ListSessionAgentRunCompactions.
type ListSessionAgentRunCompactionsRequestObject ¶ added in v0.11.0
type ListSessionAgentRunCompactionsRequestObject struct {
AgentRunId AgentRunID `json:"agentRunId"`
Params ListSessionAgentRunCompactionsParams
}
type ListSessionAgentRunCompactionsResponseObject ¶ added in v0.11.0
type ListSessionAgentRunCompactionsResponseObject interface {
VisitListSessionAgentRunCompactionsResponse(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 *int64 `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 ListSessionAgentRunMessages200JSONResponse ¶ added in v0.11.0
type ListSessionAgentRunMessages200JSONResponse struct {
Body AgentRunMessagePage
Headers ListSessionAgentRunMessages200ResponseHeaders
}
func (ListSessionAgentRunMessages200JSONResponse) VisitListSessionAgentRunMessagesResponse ¶ added in v0.11.0
func (response ListSessionAgentRunMessages200JSONResponse) VisitListSessionAgentRunMessagesResponse(w http.ResponseWriter) error
type ListSessionAgentRunMessages200ResponseHeaders ¶ added in v0.11.0
type ListSessionAgentRunMessages200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListSessionAgentRunMessages400JSONResponse ¶ added in v0.11.0
type ListSessionAgentRunMessages400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessionAgentRunMessages400JSONResponse) VisitListSessionAgentRunMessagesResponse ¶ added in v0.11.0
func (response ListSessionAgentRunMessages400JSONResponse) VisitListSessionAgentRunMessagesResponse(w http.ResponseWriter) error
type ListSessionAgentRunMessages401JSONResponse ¶ added in v0.11.0
func (ListSessionAgentRunMessages401JSONResponse) VisitListSessionAgentRunMessagesResponse ¶ added in v0.11.0
func (response ListSessionAgentRunMessages401JSONResponse) VisitListSessionAgentRunMessagesResponse(w http.ResponseWriter) error
type ListSessionAgentRunMessages404JSONResponse ¶ added in v0.11.0
type ListSessionAgentRunMessages404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListSessionAgentRunMessages404JSONResponse) VisitListSessionAgentRunMessagesResponse ¶ added in v0.11.0
func (response ListSessionAgentRunMessages404JSONResponse) VisitListSessionAgentRunMessagesResponse(w http.ResponseWriter) error
type ListSessionAgentRunMessages500JSONResponse ¶ added in v0.11.0
type ListSessionAgentRunMessages500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessionAgentRunMessages500JSONResponse) VisitListSessionAgentRunMessagesResponse ¶ added in v0.11.0
func (response ListSessionAgentRunMessages500JSONResponse) VisitListSessionAgentRunMessagesResponse(w http.ResponseWriter) error
type ListSessionAgentRunMessagesParams ¶ added in v0.11.0
type ListSessionAgentRunMessagesParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionAgentRunMessagesParams defines parameters for ListSessionAgentRunMessages.
type ListSessionAgentRunMessagesRequestObject ¶ added in v0.11.0
type ListSessionAgentRunMessagesRequestObject struct {
AgentRunId AgentRunID `json:"agentRunId"`
Params ListSessionAgentRunMessagesParams
}
type ListSessionAgentRunMessagesResponseObject ¶ added in v0.11.0
type ListSessionAgentRunMessagesResponseObject interface {
VisitListSessionAgentRunMessagesResponse(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 ListSessionAgentSpaceDecisions200JSONResponse ¶ added in v0.19.0
type ListSessionAgentSpaceDecisions200JSONResponse struct {
Body SessionAgentSpaceDecisionPage
Headers ListSessionAgentSpaceDecisions200ResponseHeaders
}
func (ListSessionAgentSpaceDecisions200JSONResponse) VisitListSessionAgentSpaceDecisionsResponse ¶ added in v0.19.0
func (response ListSessionAgentSpaceDecisions200JSONResponse) VisitListSessionAgentSpaceDecisionsResponse(w http.ResponseWriter) error
type ListSessionAgentSpaceDecisions200ResponseHeaders ¶ added in v0.19.0
type ListSessionAgentSpaceDecisions200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListSessionAgentSpaceDecisions400JSONResponse ¶ added in v0.19.0
type ListSessionAgentSpaceDecisions400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessionAgentSpaceDecisions400JSONResponse) VisitListSessionAgentSpaceDecisionsResponse ¶ added in v0.19.0
func (response ListSessionAgentSpaceDecisions400JSONResponse) VisitListSessionAgentSpaceDecisionsResponse(w http.ResponseWriter) error
type ListSessionAgentSpaceDecisions401JSONResponse ¶ added in v0.19.0
func (ListSessionAgentSpaceDecisions401JSONResponse) VisitListSessionAgentSpaceDecisionsResponse ¶ added in v0.19.0
func (response ListSessionAgentSpaceDecisions401JSONResponse) VisitListSessionAgentSpaceDecisionsResponse(w http.ResponseWriter) error
type ListSessionAgentSpaceDecisions404JSONResponse ¶ added in v0.19.0
type ListSessionAgentSpaceDecisions404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListSessionAgentSpaceDecisions404JSONResponse) VisitListSessionAgentSpaceDecisionsResponse ¶ added in v0.19.0
func (response ListSessionAgentSpaceDecisions404JSONResponse) VisitListSessionAgentSpaceDecisionsResponse(w http.ResponseWriter) error
type ListSessionAgentSpaceDecisions500JSONResponse ¶ added in v0.19.0
type ListSessionAgentSpaceDecisions500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessionAgentSpaceDecisions500JSONResponse) VisitListSessionAgentSpaceDecisionsResponse ¶ added in v0.19.0
func (response ListSessionAgentSpaceDecisions500JSONResponse) VisitListSessionAgentSpaceDecisionsResponse(w http.ResponseWriter) error
type ListSessionAgentSpaceDecisionsParams ¶ added in v0.19.0
type ListSessionAgentSpaceDecisionsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionAgentSpaceDecisionsParams defines parameters for ListSessionAgentSpaceDecisions.
type ListSessionAgentSpaceDecisionsRequestObject ¶ added in v0.19.0
type ListSessionAgentSpaceDecisionsRequestObject struct {
Params ListSessionAgentSpaceDecisionsParams
}
type ListSessionAgentSpaceDecisionsResponseObject ¶ added in v0.19.0
type ListSessionAgentSpaceDecisionsResponseObject interface {
VisitListSessionAgentSpaceDecisionsResponse(w http.ResponseWriter) error
}
type ListSessionCompactions200JSONResponse ¶ added in v0.4.0
type ListSessionCompactions200JSONResponse struct {
Body CompactionPage
Headers ListSessionCompactions200ResponseHeaders
}
func (ListSessionCompactions200JSONResponse) VisitListSessionCompactionsResponse ¶ added in v0.4.0
func (response ListSessionCompactions200JSONResponse) VisitListSessionCompactionsResponse(w http.ResponseWriter) error
type ListSessionCompactions200ResponseHeaders ¶ added in v0.4.0
type ListSessionCompactions200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListSessionCompactions400JSONResponse ¶ added in v0.4.0
type ListSessionCompactions400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessionCompactions400JSONResponse) VisitListSessionCompactionsResponse ¶ added in v0.4.0
func (response ListSessionCompactions400JSONResponse) VisitListSessionCompactionsResponse(w http.ResponseWriter) error
type ListSessionCompactions401JSONResponse ¶ added in v0.4.0
func (ListSessionCompactions401JSONResponse) VisitListSessionCompactionsResponse ¶ added in v0.4.0
func (response ListSessionCompactions401JSONResponse) VisitListSessionCompactionsResponse(w http.ResponseWriter) error
type ListSessionCompactions404JSONResponse ¶ added in v0.4.0
type ListSessionCompactions404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListSessionCompactions404JSONResponse) VisitListSessionCompactionsResponse ¶ added in v0.4.0
func (response ListSessionCompactions404JSONResponse) VisitListSessionCompactionsResponse(w http.ResponseWriter) error
type ListSessionCompactions500JSONResponse ¶ added in v0.4.0
type ListSessionCompactions500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessionCompactions500JSONResponse) VisitListSessionCompactionsResponse ¶ added in v0.4.0
func (response ListSessionCompactions500JSONResponse) VisitListSessionCompactionsResponse(w http.ResponseWriter) error
type ListSessionCompactionsParams ¶ added in v0.4.0
type ListSessionCompactionsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionCompactionsParams defines parameters for ListSessionCompactions.
type ListSessionCompactionsRequestObject ¶ added in v0.4.0
type ListSessionCompactionsRequestObject struct {
Params ListSessionCompactionsParams
}
type ListSessionCompactionsResponseObject ¶ added in v0.4.0
type ListSessionCompactionsResponseObject interface {
VisitListSessionCompactionsResponse(w http.ResponseWriter) error
}
type ListSessionEvents200JSONResponse ¶
type ListSessionEvents200JSONResponse struct {
Body TranscriptEventPage
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 {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
Order *ListSessionEventsParamsOrder `form:"order,omitempty" json:"order,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionEventsParams defines parameters for ListSessionEvents.
type ListSessionEventsParamsOrder ¶ added in v0.4.0
type ListSessionEventsParamsOrder string
ListSessionEventsParamsOrder defines parameters for ListSessionEvents.
const ( ListSessionEventsParamsOrderAsc ListSessionEventsParamsOrder = "asc" ListSessionEventsParamsOrderDesc ListSessionEventsParamsOrder = "desc" )
Defines values for ListSessionEventsParamsOrder.
func (ListSessionEventsParamsOrder) Valid ¶ added in v0.4.0
func (e ListSessionEventsParamsOrder) Valid() bool
Valid indicates whether the value is a known member of the ListSessionEventsParamsOrder enum.
type ListSessionEventsRequestObject ¶
type ListSessionEventsRequestObject struct {
Params ListSessionEventsParams
}
type ListSessionEventsResponseObject ¶
type ListSessionEventsResponseObject interface {
VisitListSessionEventsResponse(w http.ResponseWriter) error
}
type ListSessionJobSignalRequests200JSONResponse ¶ added in v0.4.0
type ListSessionJobSignalRequests200JSONResponse struct {
Body JobSignalRecordPage
Headers ListSessionJobSignalRequests200ResponseHeaders
}
func (ListSessionJobSignalRequests200JSONResponse) VisitListSessionJobSignalRequestsResponse ¶ added in v0.4.0
func (response ListSessionJobSignalRequests200JSONResponse) VisitListSessionJobSignalRequestsResponse(w http.ResponseWriter) error
type ListSessionJobSignalRequests200ResponseHeaders ¶ added in v0.4.0
type ListSessionJobSignalRequests200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListSessionJobSignalRequests400JSONResponse ¶ added in v0.4.0
type ListSessionJobSignalRequests400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessionJobSignalRequests400JSONResponse) VisitListSessionJobSignalRequestsResponse ¶ added in v0.4.0
func (response ListSessionJobSignalRequests400JSONResponse) VisitListSessionJobSignalRequestsResponse(w http.ResponseWriter) error
type ListSessionJobSignalRequests401JSONResponse ¶ added in v0.4.0
func (ListSessionJobSignalRequests401JSONResponse) VisitListSessionJobSignalRequestsResponse ¶ added in v0.4.0
func (response ListSessionJobSignalRequests401JSONResponse) VisitListSessionJobSignalRequestsResponse(w http.ResponseWriter) error
type ListSessionJobSignalRequests404JSONResponse ¶ added in v0.4.0
type ListSessionJobSignalRequests404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListSessionJobSignalRequests404JSONResponse) VisitListSessionJobSignalRequestsResponse ¶ added in v0.4.0
func (response ListSessionJobSignalRequests404JSONResponse) VisitListSessionJobSignalRequestsResponse(w http.ResponseWriter) error
type ListSessionJobSignalRequests500JSONResponse ¶ added in v0.4.0
type ListSessionJobSignalRequests500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessionJobSignalRequests500JSONResponse) VisitListSessionJobSignalRequestsResponse ¶ added in v0.4.0
func (response ListSessionJobSignalRequests500JSONResponse) VisitListSessionJobSignalRequestsResponse(w http.ResponseWriter) error
type ListSessionJobSignalRequestsParams ¶ added in v0.4.0
type ListSessionJobSignalRequestsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionJobSignalRequestsParams defines parameters for ListSessionJobSignalRequests.
type ListSessionJobSignalRequestsRequestObject ¶ added in v0.4.0
type ListSessionJobSignalRequestsRequestObject struct {
JobId JobID `json:"jobId"`
Params ListSessionJobSignalRequestsParams
}
type ListSessionJobSignalRequestsResponseObject ¶ added in v0.4.0
type ListSessionJobSignalRequestsResponseObject interface {
VisitListSessionJobSignalRequestsResponse(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" ListSessionJobsParamsStateInterrupted ListSessionJobsParamsState = "interrupted" 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 ListSessionModelRunCalls200JSONResponse ¶ added in v0.4.0
type ListSessionModelRunCalls200JSONResponse struct {
Body ModelCallPage
Headers ListSessionModelRunCalls200ResponseHeaders
}
func (ListSessionModelRunCalls200JSONResponse) VisitListSessionModelRunCallsResponse ¶ added in v0.4.0
func (response ListSessionModelRunCalls200JSONResponse) VisitListSessionModelRunCallsResponse(w http.ResponseWriter) error
type ListSessionModelRunCalls200ResponseHeaders ¶ added in v0.4.0
type ListSessionModelRunCalls200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListSessionModelRunCalls400JSONResponse ¶ added in v0.4.0
type ListSessionModelRunCalls400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessionModelRunCalls400JSONResponse) VisitListSessionModelRunCallsResponse ¶ added in v0.4.0
func (response ListSessionModelRunCalls400JSONResponse) VisitListSessionModelRunCallsResponse(w http.ResponseWriter) error
type ListSessionModelRunCalls401JSONResponse ¶ added in v0.4.0
func (ListSessionModelRunCalls401JSONResponse) VisitListSessionModelRunCallsResponse ¶ added in v0.4.0
func (response ListSessionModelRunCalls401JSONResponse) VisitListSessionModelRunCallsResponse(w http.ResponseWriter) error
type ListSessionModelRunCalls404JSONResponse ¶ added in v0.4.0
type ListSessionModelRunCalls404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListSessionModelRunCalls404JSONResponse) VisitListSessionModelRunCallsResponse ¶ added in v0.4.0
func (response ListSessionModelRunCalls404JSONResponse) VisitListSessionModelRunCallsResponse(w http.ResponseWriter) error
type ListSessionModelRunCalls500JSONResponse ¶ added in v0.4.0
type ListSessionModelRunCalls500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessionModelRunCalls500JSONResponse) VisitListSessionModelRunCallsResponse ¶ added in v0.4.0
func (response ListSessionModelRunCalls500JSONResponse) VisitListSessionModelRunCallsResponse(w http.ResponseWriter) error
type ListSessionModelRunCallsParams ¶ added in v0.4.0
type ListSessionModelRunCallsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionModelRunCallsParams defines parameters for ListSessionModelRunCalls.
type ListSessionModelRunCallsRequestObject ¶ added in v0.4.0
type ListSessionModelRunCallsRequestObject struct {
ModelRunId ModelRunID `json:"modelRunId"`
Params ListSessionModelRunCallsParams
}
type ListSessionModelRunCallsResponseObject ¶ added in v0.4.0
type ListSessionModelRunCallsResponseObject interface {
VisitListSessionModelRunCallsResponse(w http.ResponseWriter) error
}
type ListSessionModelRuns200JSONResponse ¶ added in v0.4.0
type ListSessionModelRuns200JSONResponse struct {
Body ModelRunPage
Headers ListSessionModelRuns200ResponseHeaders
}
func (ListSessionModelRuns200JSONResponse) VisitListSessionModelRunsResponse ¶ added in v0.4.0
func (response ListSessionModelRuns200JSONResponse) VisitListSessionModelRunsResponse(w http.ResponseWriter) error
type ListSessionModelRuns200ResponseHeaders ¶ added in v0.4.0
type ListSessionModelRuns200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListSessionModelRuns400JSONResponse ¶ added in v0.4.0
type ListSessionModelRuns400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessionModelRuns400JSONResponse) VisitListSessionModelRunsResponse ¶ added in v0.4.0
func (response ListSessionModelRuns400JSONResponse) VisitListSessionModelRunsResponse(w http.ResponseWriter) error
type ListSessionModelRuns401JSONResponse ¶ added in v0.4.0
func (ListSessionModelRuns401JSONResponse) VisitListSessionModelRunsResponse ¶ added in v0.4.0
func (response ListSessionModelRuns401JSONResponse) VisitListSessionModelRunsResponse(w http.ResponseWriter) error
type ListSessionModelRuns404JSONResponse ¶ added in v0.4.0
type ListSessionModelRuns404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListSessionModelRuns404JSONResponse) VisitListSessionModelRunsResponse ¶ added in v0.4.0
func (response ListSessionModelRuns404JSONResponse) VisitListSessionModelRunsResponse(w http.ResponseWriter) error
type ListSessionModelRuns500JSONResponse ¶ added in v0.4.0
type ListSessionModelRuns500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessionModelRuns500JSONResponse) VisitListSessionModelRunsResponse ¶ added in v0.4.0
func (response ListSessionModelRuns500JSONResponse) VisitListSessionModelRunsResponse(w http.ResponseWriter) error
type ListSessionModelRunsParams ¶ added in v0.4.0
type ListSessionModelRunsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
Stage *ListSessionModelRunsParamsStage `form:"stage,omitempty" json:"stage,omitempty"`
State *ListSessionModelRunsParamsState `form:"state,omitempty" json:"state,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionModelRunsParams defines parameters for ListSessionModelRuns.
type ListSessionModelRunsParamsStage ¶ added in v0.4.0
type ListSessionModelRunsParamsStage string
ListSessionModelRunsParamsStage defines parameters for ListSessionModelRuns.
const ( ListSessionModelRunsParamsStageChild ListSessionModelRunsParamsStage = "child" ListSessionModelRunsParamsStageCompaction ListSessionModelRunsParamsStage = "compaction" ListSessionModelRunsParamsStageTurn ListSessionModelRunsParamsStage = "turn" )
Defines values for ListSessionModelRunsParamsStage.
func (ListSessionModelRunsParamsStage) Valid ¶ added in v0.4.0
func (e ListSessionModelRunsParamsStage) Valid() bool
Valid indicates whether the value is a known member of the ListSessionModelRunsParamsStage enum.
type ListSessionModelRunsParamsState ¶ added in v0.4.0
type ListSessionModelRunsParamsState string
ListSessionModelRunsParamsState defines parameters for ListSessionModelRuns.
const ( ListSessionModelRunsParamsStateCancelled ListSessionModelRunsParamsState = "cancelled" ListSessionModelRunsParamsStateCompleted ListSessionModelRunsParamsState = "completed" ListSessionModelRunsParamsStateFailed ListSessionModelRunsParamsState = "failed" ListSessionModelRunsParamsStateInterrupted ListSessionModelRunsParamsState = "interrupted" ListSessionModelRunsParamsStateRunning ListSessionModelRunsParamsState = "running" )
Defines values for ListSessionModelRunsParamsState.
func (ListSessionModelRunsParamsState) Valid ¶ added in v0.4.0
func (e ListSessionModelRunsParamsState) Valid() bool
Valid indicates whether the value is a known member of the ListSessionModelRunsParamsState enum.
type ListSessionModelRunsRequestObject ¶ added in v0.4.0
type ListSessionModelRunsRequestObject struct {
Params ListSessionModelRunsParams
}
type ListSessionModelRunsResponseObject ¶ added in v0.4.0
type ListSessionModelRunsResponseObject interface {
VisitListSessionModelRunsResponse(w http.ResponseWriter) error
}
type ListSessionNotices200JSONResponse ¶ added in v0.4.0
type ListSessionNotices200JSONResponse struct {
Body SessionNoticePage
Headers ListSessionNotices200ResponseHeaders
}
func (ListSessionNotices200JSONResponse) VisitListSessionNoticesResponse ¶ added in v0.4.0
func (response ListSessionNotices200JSONResponse) VisitListSessionNoticesResponse(w http.ResponseWriter) error
type ListSessionNotices200ResponseHeaders ¶ added in v0.4.0
type ListSessionNotices200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListSessionNotices400JSONResponse ¶ added in v0.4.0
type ListSessionNotices400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessionNotices400JSONResponse) VisitListSessionNoticesResponse ¶ added in v0.4.0
func (response ListSessionNotices400JSONResponse) VisitListSessionNoticesResponse(w http.ResponseWriter) error
type ListSessionNotices401JSONResponse ¶ added in v0.4.0
func (ListSessionNotices401JSONResponse) VisitListSessionNoticesResponse ¶ added in v0.4.0
func (response ListSessionNotices401JSONResponse) VisitListSessionNoticesResponse(w http.ResponseWriter) error
type ListSessionNotices404JSONResponse ¶ added in v0.4.0
type ListSessionNotices404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListSessionNotices404JSONResponse) VisitListSessionNoticesResponse ¶ added in v0.4.0
func (response ListSessionNotices404JSONResponse) VisitListSessionNoticesResponse(w http.ResponseWriter) error
type ListSessionNotices500JSONResponse ¶ added in v0.4.0
type ListSessionNotices500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessionNotices500JSONResponse) VisitListSessionNoticesResponse ¶ added in v0.4.0
func (response ListSessionNotices500JSONResponse) VisitListSessionNoticesResponse(w http.ResponseWriter) error
type ListSessionNoticesParams ¶ added in v0.4.0
type ListSessionNoticesParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionNoticesParams defines parameters for ListSessionNotices.
type ListSessionNoticesRequestObject ¶ added in v0.4.0
type ListSessionNoticesRequestObject struct {
Params ListSessionNoticesParams
}
type ListSessionNoticesResponseObject ¶ added in v0.4.0
type ListSessionNoticesResponseObject interface {
VisitListSessionNoticesResponse(w http.ResponseWriter) error
}
type ListSessionTurns200JSONResponse ¶ added in v0.4.0
type ListSessionTurns200JSONResponse struct {
Body TurnPage
Headers ListSessionTurns200ResponseHeaders
}
func (ListSessionTurns200JSONResponse) VisitListSessionTurnsResponse ¶ added in v0.4.0
func (response ListSessionTurns200JSONResponse) VisitListSessionTurnsResponse(w http.ResponseWriter) error
type ListSessionTurns200ResponseHeaders ¶ added in v0.4.0
type ListSessionTurns200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListSessionTurns400JSONResponse ¶ added in v0.4.0
type ListSessionTurns400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessionTurns400JSONResponse) VisitListSessionTurnsResponse ¶ added in v0.4.0
func (response ListSessionTurns400JSONResponse) VisitListSessionTurnsResponse(w http.ResponseWriter) error
type ListSessionTurns401JSONResponse ¶ added in v0.4.0
func (ListSessionTurns401JSONResponse) VisitListSessionTurnsResponse ¶ added in v0.4.0
func (response ListSessionTurns401JSONResponse) VisitListSessionTurnsResponse(w http.ResponseWriter) error
type ListSessionTurns404JSONResponse ¶ added in v0.4.0
type ListSessionTurns404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListSessionTurns404JSONResponse) VisitListSessionTurnsResponse ¶ added in v0.4.0
func (response ListSessionTurns404JSONResponse) VisitListSessionTurnsResponse(w http.ResponseWriter) error
type ListSessionTurns500JSONResponse ¶ added in v0.4.0
type ListSessionTurns500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessionTurns500JSONResponse) VisitListSessionTurnsResponse ¶ added in v0.4.0
func (response ListSessionTurns500JSONResponse) VisitListSessionTurnsResponse(w http.ResponseWriter) error
type ListSessionTurnsParams ¶ added in v0.4.0
type ListSessionTurnsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionTurnsParams defines parameters for ListSessionTurns.
type ListSessionTurnsRequestObject ¶ added in v0.4.0
type ListSessionTurnsRequestObject struct {
Params ListSessionTurnsParams
}
type ListSessionTurnsResponseObject ¶ added in v0.4.0
type ListSessionTurnsResponseObject interface {
VisitListSessionTurnsResponse(w http.ResponseWriter) error
}
type ListSessionWorkers200JSONResponse ¶ added in v0.8.0
type ListSessionWorkers200JSONResponse struct {
Body WorkerGenerationPage
Headers ListSessionWorkers200ResponseHeaders
}
func (ListSessionWorkers200JSONResponse) VisitListSessionWorkersResponse ¶ added in v0.8.0
func (response ListSessionWorkers200JSONResponse) VisitListSessionWorkersResponse(w http.ResponseWriter) error
type ListSessionWorkers200ResponseHeaders ¶ added in v0.8.0
type ListSessionWorkers200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListSessionWorkers400JSONResponse ¶ added in v0.8.0
type ListSessionWorkers400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessionWorkers400JSONResponse) VisitListSessionWorkersResponse ¶ added in v0.8.0
func (response ListSessionWorkers400JSONResponse) VisitListSessionWorkersResponse(w http.ResponseWriter) error
type ListSessionWorkers401JSONResponse ¶ added in v0.8.0
func (ListSessionWorkers401JSONResponse) VisitListSessionWorkersResponse ¶ added in v0.8.0
func (response ListSessionWorkers401JSONResponse) VisitListSessionWorkersResponse(w http.ResponseWriter) error
type ListSessionWorkers404JSONResponse ¶ added in v0.8.0
type ListSessionWorkers404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListSessionWorkers404JSONResponse) VisitListSessionWorkersResponse ¶ added in v0.8.0
func (response ListSessionWorkers404JSONResponse) VisitListSessionWorkersResponse(w http.ResponseWriter) error
type ListSessionWorkers500JSONResponse ¶ added in v0.8.0
type ListSessionWorkers500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessionWorkers500JSONResponse) VisitListSessionWorkersResponse ¶ added in v0.8.0
func (response ListSessionWorkers500JSONResponse) VisitListSessionWorkersResponse(w http.ResponseWriter) error
type ListSessionWorkersParams ¶ added in v0.8.0
type ListSessionWorkersParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionWorkersParams defines parameters for ListSessionWorkers.
type ListSessionWorkersRequestObject ¶ added in v0.8.0
type ListSessionWorkersRequestObject struct {
Params ListSessionWorkersParams
}
type ListSessionWorkersResponseObject ¶ added in v0.8.0
type ListSessionWorkersResponseObject interface {
VisitListSessionWorkersResponse(w http.ResponseWriter) error
}
type ListSessions200JSONResponse ¶ added in v0.8.0
type ListSessions200JSONResponse struct {
Body SessionPage
Headers ListSessions200ResponseHeaders
}
func (ListSessions200JSONResponse) VisitListSessionsResponse ¶ added in v0.8.0
func (response ListSessions200JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error
type ListSessions200ResponseHeaders ¶ added in v0.8.0
type ListSessions200ResponseHeaders struct {
XRequestID openapi_types.UUID
}
type ListSessions400JSONResponse ¶ added in v0.8.0
type ListSessions400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessions400JSONResponse) VisitListSessionsResponse ¶ added in v0.8.0
func (response ListSessions400JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error
type ListSessions401JSONResponse ¶ added in v0.8.0
func (ListSessions401JSONResponse) VisitListSessionsResponse ¶ added in v0.8.0
func (response ListSessions401JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error
type ListSessions500JSONResponse ¶ added in v0.8.0
type ListSessions500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessions500JSONResponse) VisitListSessionsResponse ¶ added in v0.8.0
func (response ListSessions500JSONResponse) VisitListSessionsResponse(w http.ResponseWriter) error
type ListSessionsParams ¶ added in v0.8.0
type ListSessionsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
}
ListSessionsParams defines parameters for ListSessions.
type ListSessionsRequestObject ¶ added in v0.8.0
type ListSessionsRequestObject struct {
Params ListSessionsParams
}
type ListSessionsResponseObject ¶ added in v0.8.0
type ListSessionsResponseObject interface {
VisitListSessionsResponse(w http.ResponseWriter) error
}
type ListWorkspaceRoots200JSONResponse ¶ added in v0.13.0
type ListWorkspaceRoots200JSONResponse struct {
Body WorkspaceRootList
Headers ListWorkspaceRoots200ResponseHeaders
}
func (ListWorkspaceRoots200JSONResponse) VisitListWorkspaceRootsResponse ¶ added in v0.13.0
func (response ListWorkspaceRoots200JSONResponse) VisitListWorkspaceRootsResponse(w http.ResponseWriter) error
type ListWorkspaceRoots200ResponseHeaders ¶ added in v0.13.0
type ListWorkspaceRoots200ResponseHeaders struct {
XRequestID openapi_types.UUID
}
type ListWorkspaceRoots401JSONResponse ¶ added in v0.13.0
func (ListWorkspaceRoots401JSONResponse) VisitListWorkspaceRootsResponse ¶ added in v0.13.0
func (response ListWorkspaceRoots401JSONResponse) VisitListWorkspaceRootsResponse(w http.ResponseWriter) error
type ListWorkspaceRoots500JSONResponse ¶ added in v0.13.0
type ListWorkspaceRoots500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListWorkspaceRoots500JSONResponse) VisitListWorkspaceRootsResponse ¶ added in v0.13.0
func (response ListWorkspaceRoots500JSONResponse) VisitListWorkspaceRootsResponse(w http.ResponseWriter) error
type ListWorkspaceRootsRequestObject ¶ added in v0.13.0
type ListWorkspaceRootsRequestObject struct {
}
type ListWorkspaceRootsResponseObject ¶ added in v0.13.0
type ListWorkspaceRootsResponseObject interface {
VisitListWorkspaceRootsResponse(w http.ResponseWriter) error
}
type Message ¶
type Message struct {
CompactionId *openapi_types.UUID `json:"compactionId,omitempty"`
Content string `json:"content"`
CreatedAt time.Time `json:"createdAt"`
Id openapi_types.UUID `json:"id"`
Incomplete *bool `json:"incomplete,omitempty"`
// Injected True when Peen added this message to the conversation itself, such as a report of session events delivered during a turn or the instructions of an event handler that started a turn, rather than a person or the model writing it.
Injected *bool `json:"injected,omitempty"`
// InjectedKind What an injected message is, when it is more than a generic update. `skill` marks a skill the user invoked with `:name`, delivered as its own message after the message that named it, or the note that the skill was already loaded. Absent for every other message.
InjectedKind *MessageInjectedKind `json:"injectedKind,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"`
// TurnId The turn that wrote this message. Messages that share it belong to one turn.
TurnId *openapi_types.UUID `json:"turnId,omitempty"`
Workspace string `json:"workspace"`
}
Message defines model for Message.
type MessageInjectedKind ¶ added in v0.18.0
type MessageInjectedKind string
MessageInjectedKind What an injected message is, when it is more than a generic update. `skill` marks a skill the user invoked with `:name`, delivered as its own message after the message that named it, or the note that the skill was already loaded. Absent for every other message.
const (
MessageInjectedKindSkill MessageInjectedKind = "skill"
)
Defines values for MessageInjectedKind.
func (MessageInjectedKind) Valid ¶ added in v0.18.0
func (e MessageInjectedKind) Valid() bool
Valid indicates whether the value is a known member of the MessageInjectedKind enum.
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 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 Model ¶ added in v0.12.0
type Model struct {
// ConnectionName The configured connection portion of name.
ConnectionName string `json:"connectionName"`
// ContextWindowTokens The model context window Peen will enforce. For an upstream that publishes no window, this is the deployment context budget.
ContextWindowTokens int64 `json:"contextWindowTokens"`
// ModelId The raw model identifier the upstream accepted.
ModelId string `json:"modelId"`
// Name Exact connection/model reference accepted by message.send for a one-turn model override.
Name string `json:"name"`
}
Model defines model for Model.
type ModelCall ¶ added in v0.4.0
type ModelCall struct {
BilledCostAmount string `json:"billedCostAmount"`
CacheReadTokens int64 `json:"cacheReadTokens"`
CacheWriteLongTtlTokens int64 `json:"cacheWriteLongTtlTokens"`
CacheWriteTokens int64 `json:"cacheWriteTokens"`
CompletedAt *time.Time `json:"completedAt,omitempty"`
CompletionTokens int64 `json:"completionTokens"`
CostKnown bool `json:"costKnown"`
FailureClassification string `json:"failureClassification"`
FailureDetail string `json:"failureDetail"`
FinishReason string `json:"finishReason"`
Id openapi_types.UUID `json:"id"`
ModelRunId openapi_types.UUID `json:"modelRunId"`
PromptTokens int64 `json:"promptTokens"`
ReasoningTokens int64 `json:"reasoningTokens"`
RequestMessages []interface{} `json:"requestMessages"`
RequestTools []interface{} `json:"requestTools"`
ResponseCostAmount string `json:"responseCostAmount"`
ResponseMessage *map[string]interface{} `json:"responseMessage"`
ResponseModelId string `json:"responseModelId"`
ResponseUsage map[string]interface{} `json:"responseUsage"`
RetryAttemptCount int64 `json:"retryAttemptCount"`
RetryAttempts []map[string]interface{} `json:"retryAttempts"`
RetryCostAmount string `json:"retryCostAmount"`
Round int64 `json:"round"`
SessionId openapi_types.UUID `json:"sessionId"`
StartedAt time.Time `json:"startedAt"`
State ModelCallState `json:"state"`
TotalAttempts int64 `json:"totalAttempts"`
TotalTokens int64 `json:"totalTokens"`
WastedCompletionTokens int64 `json:"wastedCompletionTokens"`
WastedPromptTokens int64 `json:"wastedPromptTokens"`
WastedTotalTokens int64 `json:"wastedTotalTokens"`
}
ModelCall defines model for ModelCall.
type ModelCallPage ¶ added in v0.4.0
type ModelCallPage struct {
Calls []ModelCall `json:"calls"`
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
ModelRun ModelRun `json:"modelRun"`
Offset int32 `json:"offset"`
}
ModelCallPage defines model for ModelCallPage.
type ModelCallState ¶ added in v0.4.0
type ModelCallState string
ModelCallState defines model for ModelCall.State.
const ( ModelCallStateCancelled ModelCallState = "cancelled" ModelCallStateCompleted ModelCallState = "completed" ModelCallStateFailed ModelCallState = "failed" ModelCallStateInterrupted ModelCallState = "interrupted" ModelCallStateRunning ModelCallState = "running" )
Defines values for ModelCallState.
func (ModelCallState) Valid ¶ added in v0.4.0
func (e ModelCallState) Valid() bool
Valid indicates whether the value is a known member of the ModelCallState enum.
type ModelList ¶ added in v0.12.0
type ModelList struct {
// Models Models available to this authenticated controller.
Models []Model `json:"models"`
}
ModelList defines model for ModelList.
type ModelRun ¶ added in v0.4.0
type ModelRun struct {
AgentRunId *openapi_types.UUID `json:"agentRunId,omitempty"`
BilledCostAmount string `json:"billedCostAmount"`
CompletedAt *time.Time `json:"completedAt,omitempty"`
ConnectionName string `json:"connectionName"`
CostKnown bool `json:"costKnown"`
FailureClassification string `json:"failureClassification"`
FailureDetail string `json:"failureDetail"`
FinishReason string `json:"finishReason"`
Id openapi_types.UUID `json:"id"`
ModelReference string `json:"modelReference"`
RequestSettings map[string]interface{} `json:"requestSettings"`
RequestedModelId string `json:"requestedModelId"`
ResponseCostAmount string `json:"responseCostAmount"`
ResponseInjections []interface{} `json:"responseInjections"`
ResponseMessages []interface{} `json:"responseMessages"`
ResponseModelId string `json:"responseModelId"`
ResponseText string `json:"responseText"`
ResponseThinking string `json:"responseThinking"`
ResponseUsage map[string]interface{} `json:"responseUsage"`
RetryCostAmount string `json:"retryCostAmount"`
SessionId openapi_types.UUID `json:"sessionId"`
Stage ModelRunStage `json:"stage"`
StartedAt time.Time `json:"startedAt"`
State ModelRunState `json:"state"`
TurnId openapi_types.UUID `json:"turnId"`
}
ModelRun defines model for ModelRun.
type ModelRunID ¶ added in v0.4.0
type ModelRunID = openapi_types.UUID
ModelRunID defines model for ModelRunID.
type ModelRunPage ¶ added in v0.4.0
type ModelRunPage struct {
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
ModelRuns []ModelRun `json:"modelRuns"`
Offset int32 `json:"offset"`
}
ModelRunPage defines model for ModelRunPage.
type ModelRunStage ¶ added in v0.4.0
type ModelRunStage string
ModelRunStage defines model for ModelRun.Stage.
const ( ModelRunStageChild ModelRunStage = "child" ModelRunStageCompaction ModelRunStage = "compaction" ModelRunStageTurn ModelRunStage = "turn" )
Defines values for ModelRunStage.
func (ModelRunStage) Valid ¶ added in v0.4.0
func (e ModelRunStage) Valid() bool
Valid indicates whether the value is a known member of the ModelRunStage enum.
type ModelRunState ¶ added in v0.4.0
type ModelRunState string
ModelRunState defines model for ModelRun.State.
const ( ModelRunStateCancelled ModelRunState = "cancelled" ModelRunStateCompleted ModelRunState = "completed" ModelRunStateFailed ModelRunState = "failed" ModelRunStateInterrupted ModelRunState = "interrupted" ModelRunStateRunning ModelRunState = "running" )
Defines values for ModelRunState.
func (ModelRunState) Valid ¶ added in v0.4.0
func (e ModelRunState) Valid() bool
Valid indicates whether the value is a known member of the ModelRunState enum.
type OpenSession200JSONResponse ¶ added in v0.8.0
type OpenSession200JSONResponse struct {
Body OpenedSession
Headers OpenSession200ResponseHeaders
}
func (OpenSession200JSONResponse) VisitOpenSessionResponse ¶ added in v0.8.0
func (response OpenSession200JSONResponse) VisitOpenSessionResponse(w http.ResponseWriter) error
type OpenSession200ResponseHeaders ¶ added in v0.8.0
type OpenSession200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type OpenSession400JSONResponse ¶ added in v0.8.0
type OpenSession400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (OpenSession400JSONResponse) VisitOpenSessionResponse ¶ added in v0.8.0
func (response OpenSession400JSONResponse) VisitOpenSessionResponse(w http.ResponseWriter) error
type OpenSession401JSONResponse ¶ added in v0.8.0
func (OpenSession401JSONResponse) VisitOpenSessionResponse ¶ added in v0.8.0
func (response OpenSession401JSONResponse) VisitOpenSessionResponse(w http.ResponseWriter) error
type OpenSession403JSONResponse ¶ added in v0.8.0
type OpenSession403JSONResponse struct{ ErrorForbiddenJSONResponse }
func (OpenSession403JSONResponse) VisitOpenSessionResponse ¶ added in v0.8.0
func (response OpenSession403JSONResponse) VisitOpenSessionResponse(w http.ResponseWriter) error
type OpenSession404JSONResponse ¶ added in v0.13.0
type OpenSession404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (OpenSession404JSONResponse) VisitOpenSessionResponse ¶ added in v0.13.0
func (response OpenSession404JSONResponse) VisitOpenSessionResponse(w http.ResponseWriter) error
type OpenSession500JSONResponse ¶ added in v0.8.0
type OpenSession500JSONResponse struct{ ErrorInternalJSONResponse }
func (OpenSession500JSONResponse) VisitOpenSessionResponse ¶ added in v0.8.0
func (response OpenSession500JSONResponse) VisitOpenSessionResponse(w http.ResponseWriter) error
type OpenSessionJSONRequestBody ¶ added in v0.8.0
type OpenSessionJSONRequestBody = OpenSessionRequest
OpenSessionJSONRequestBody defines body for OpenSession for application/json ContentType.
type OpenSessionRequest ¶ added in v0.8.0
type OpenSessionRequest struct {
// AgentSpace The agent space to run in, `control` or `docker:<profile>`. Empty takes the deployment default. A name the deployment does not offer is refused with 403. This is the only environment choice a client makes: images, mounts, network, and capabilities come from deployment configuration alone. It applies only when this call creates the session; opening an existing session never changes its agent space.
AgentSpace *string `json:"agentSpace,omitempty"`
// Workspace Absolute host path of the workspace directory. It is resolved through its symlinks and must fall under a configured workspace root.
Workspace string `json:"workspace"`
}
OpenSessionRequest defines model for OpenSessionRequest.
type OpenSessionRequestObject ¶ added in v0.8.0
type OpenSessionRequestObject struct {
Body *OpenSessionJSONRequestBody
}
type OpenSessionResponseObject ¶ added in v0.8.0
type OpenSessionResponseObject interface {
VisitOpenSessionResponse(w http.ResponseWriter) error
}
type OpenedSession ¶ added in v0.8.0
type OpenedSession struct {
// Created True when this call created the session, false when it resumed an existing one.
Created bool `json:"created"`
Session Session `json:"session"`
}
OpenedSession defines model for OpenedSession.
type PromptSnapshot ¶ added in v0.4.0
type PromptSnapshot struct {
CreatedAt time.Time `json:"createdAt"`
EffectivePrompt string `json:"effectivePrompt"`
Hash string `json:"hash"`
}
PromptSnapshot defines model for PromptSnapshot.
type PublishSessionNotice202JSONResponse ¶ added in v0.4.0
type PublishSessionNotice202JSONResponse struct {
Body SessionNotice
Headers PublishSessionNotice202ResponseHeaders
}
func (PublishSessionNotice202JSONResponse) VisitPublishSessionNoticeResponse ¶ added in v0.4.0
func (response PublishSessionNotice202JSONResponse) VisitPublishSessionNoticeResponse(w http.ResponseWriter) error
type PublishSessionNotice202ResponseHeaders ¶ added in v0.4.0
type PublishSessionNotice202ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type PublishSessionNotice400JSONResponse ¶ added in v0.4.0
type PublishSessionNotice400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (PublishSessionNotice400JSONResponse) VisitPublishSessionNoticeResponse ¶ added in v0.4.0
func (response PublishSessionNotice400JSONResponse) VisitPublishSessionNoticeResponse(w http.ResponseWriter) error
type PublishSessionNotice401JSONResponse ¶ added in v0.4.0
func (PublishSessionNotice401JSONResponse) VisitPublishSessionNoticeResponse ¶ added in v0.4.0
func (response PublishSessionNotice401JSONResponse) VisitPublishSessionNoticeResponse(w http.ResponseWriter) error
type PublishSessionNotice404JSONResponse ¶ added in v0.4.0
type PublishSessionNotice404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (PublishSessionNotice404JSONResponse) VisitPublishSessionNoticeResponse ¶ added in v0.4.0
func (response PublishSessionNotice404JSONResponse) VisitPublishSessionNoticeResponse(w http.ResponseWriter) error
type PublishSessionNotice500JSONResponse ¶ added in v0.4.0
type PublishSessionNotice500JSONResponse struct{ ErrorInternalJSONResponse }
func (PublishSessionNotice500JSONResponse) VisitPublishSessionNoticeResponse ¶ added in v0.4.0
func (response PublishSessionNotice500JSONResponse) VisitPublishSessionNoticeResponse(w http.ResponseWriter) error
type PublishSessionNoticeJSONRequestBody ¶ added in v0.4.0
type PublishSessionNoticeJSONRequestBody = SessionNoticeRequest
PublishSessionNoticeJSONRequestBody defines body for PublishSessionNotice for application/json ContentType.
type PublishSessionNoticeParams ¶ added in v0.4.0
type PublishSessionNoticeParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
PublishSessionNoticeParams defines parameters for PublishSessionNotice.
type PublishSessionNoticeRequestObject ¶ added in v0.4.0
type PublishSessionNoticeRequestObject struct {
Params PublishSessionNoticeParams
Body *PublishSessionNoticeJSONRequestBody
}
type PublishSessionNoticeResponseObject ¶ added in v0.4.0
type PublishSessionNoticeResponseObject interface {
VisitPublishSessionNoticeResponse(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"`
Cursor *int64 `form:"cursor,omitempty" json:"cursor,omitempty"`
Limit *int32 `form:"limit,omitempty" json:"limit,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 ReconfigureSession200JSONResponse ¶ added in v0.8.0
type ReconfigureSession200JSONResponse struct {
Body SessionAgentSpaceDecision
Headers ReconfigureSession200ResponseHeaders
}
func (ReconfigureSession200JSONResponse) VisitReconfigureSessionResponse ¶ added in v0.8.0
func (response ReconfigureSession200JSONResponse) VisitReconfigureSessionResponse(w http.ResponseWriter) error
type ReconfigureSession200ResponseHeaders ¶ added in v0.8.0
type ReconfigureSession200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ReconfigureSession400JSONResponse ¶ added in v0.8.0
type ReconfigureSession400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ReconfigureSession400JSONResponse) VisitReconfigureSessionResponse ¶ added in v0.8.0
func (response ReconfigureSession400JSONResponse) VisitReconfigureSessionResponse(w http.ResponseWriter) error
type ReconfigureSession401JSONResponse ¶ added in v0.8.0
func (ReconfigureSession401JSONResponse) VisitReconfigureSessionResponse ¶ added in v0.8.0
func (response ReconfigureSession401JSONResponse) VisitReconfigureSessionResponse(w http.ResponseWriter) error
type ReconfigureSession403JSONResponse ¶ added in v0.8.0
type ReconfigureSession403JSONResponse struct{ ErrorForbiddenJSONResponse }
func (ReconfigureSession403JSONResponse) VisitReconfigureSessionResponse ¶ added in v0.8.0
func (response ReconfigureSession403JSONResponse) VisitReconfigureSessionResponse(w http.ResponseWriter) error
type ReconfigureSession404JSONResponse ¶ added in v0.8.0
type ReconfigureSession404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ReconfigureSession404JSONResponse) VisitReconfigureSessionResponse ¶ added in v0.8.0
func (response ReconfigureSession404JSONResponse) VisitReconfigureSessionResponse(w http.ResponseWriter) error
type ReconfigureSession409JSONResponse ¶ added in v0.8.0
type ReconfigureSession409JSONResponse struct{ ErrorConflictJSONResponse }
func (ReconfigureSession409JSONResponse) VisitReconfigureSessionResponse ¶ added in v0.8.0
func (response ReconfigureSession409JSONResponse) VisitReconfigureSessionResponse(w http.ResponseWriter) error
type ReconfigureSession500JSONResponse ¶ added in v0.8.0
type ReconfigureSession500JSONResponse struct{ ErrorInternalJSONResponse }
func (ReconfigureSession500JSONResponse) VisitReconfigureSessionResponse ¶ added in v0.8.0
func (response ReconfigureSession500JSONResponse) VisitReconfigureSessionResponse(w http.ResponseWriter) error
type ReconfigureSessionJSONRequestBody ¶ added in v0.8.0
type ReconfigureSessionJSONRequestBody = ReconfigureSessionRequest
ReconfigureSessionJSONRequestBody defines body for ReconfigureSession for application/json ContentType.
type ReconfigureSessionParams ¶ added in v0.8.0
type ReconfigureSessionParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ReconfigureSessionParams defines parameters for ReconfigureSession.
type ReconfigureSessionRequest ¶ added in v0.8.0
type ReconfigureSessionRequest struct {
// AgentSpace The agent space to move this session to, `control` or `docker:<profile>`. A space the deployment does not offer is refused. This is the only environment choice a client makes.
AgentSpace string `json:"agentSpace"`
// Reason Why the agent space changed, kept in the durable decision history.
Reason string `json:"reason"`
}
ReconfigureSessionRequest defines model for ReconfigureSessionRequest.
type ReconfigureSessionRequestObject ¶ added in v0.8.0
type ReconfigureSessionRequestObject struct {
Params ReconfigureSessionParams
Body *ReconfigureSessionJSONRequestBody
}
type ReconfigureSessionResponseObject ¶ added in v0.8.0
type ReconfigureSessionResponseObject interface {
VisitReconfigureSessionResponse(w http.ResponseWriter) error
}
type RequiredHeaderError ¶ added in v0.2.0
func (*RequiredHeaderError) Error ¶ added in v0.2.0
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶ added in v0.2.0
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶ added in v0.2.0
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶ added in v0.2.0
func (e *RequiredParamError) Error() string
type ServeMux ¶ added in v0.2.0
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
http.Handler
}
ServeMux is an abstraction of http.ServeMux.
type ServerInterface ¶
type ServerInterface interface {
// ListAgentSpaces List the agent spaces a client may name
// (GET /agent-spaces)
ListAgentSpaces(w http.ResponseWriter, r *http.Request)
// ListMessages List stored conversation messages
// (GET /messages)
ListMessages(w http.ResponseWriter, r *http.Request, params ListMessagesParams)
// ListModels List models discovered from configured connections
// (GET /models)
ListModels(w http.ResponseWriter, r *http.Request)
// GetSession Read session details
// (GET /session)
GetSession(w http.ResponseWriter, r *http.Request, params GetSessionParams)
// ListSessionAgentSpaceDecisions List one session's agent space decision history
// (GET /session/agent-space-decisions)
ListSessionAgentSpaceDecisions(w http.ResponseWriter, r *http.Request, params ListSessionAgentSpaceDecisionsParams)
// ListSessionAgentRuns List the child agent runs this session has started
// (GET /session/agents)
ListSessionAgentRuns(w http.ResponseWriter, r *http.Request, params ListSessionAgentRunsParams)
// GetSessionAgentRun Read one durable child agent run
// (GET /session/agents/{agentRunId})
GetSessionAgentRun(w http.ResponseWriter, r *http.Request, agentRunId AgentRunID, params GetSessionAgentRunParams)
// CancelSessionAgentRun Cancel one child agent run without ending its parent turn
// (POST /session/agents/{agentRunId}/cancel)
CancelSessionAgentRun(w http.ResponseWriter, r *http.Request, agentRunId AgentRunID, params CancelSessionAgentRunParams)
// ListSessionAgentRunCompactions List one child agent run's compaction lineage
// (GET /session/agents/{agentRunId}/compactions)
ListSessionAgentRunCompactions(w http.ResponseWriter, r *http.Request, agentRunId AgentRunID, params ListSessionAgentRunCompactionsParams)
// GetSessionAgentRunCompaction Read one immutable child compaction record
// (GET /session/agents/{agentRunId}/compactions/{compactionId})
GetSessionAgentRunCompaction(w http.ResponseWriter, r *http.Request, agentRunId AgentRunID, compactionId CompactionID, params GetSessionAgentRunCompactionParams)
// ListSessionAgentRunEvents Follow what one child agent run is doing
// (GET /session/agents/{agentRunId}/events)
ListSessionAgentRunEvents(w http.ResponseWriter, r *http.Request, agentRunId AgentRunID, params ListSessionAgentRunEventsParams)
// ListSessionAgentRunMessages List one child agent run's own durable transcript
// (GET /session/agents/{agentRunId}/messages)
ListSessionAgentRunMessages(w http.ResponseWriter, r *http.Request, agentRunId AgentRunID, params ListSessionAgentRunMessagesParams)
// CancelSession Request cancellation for the active turn
// (POST /session/cancel)
CancelSession(w http.ResponseWriter, r *http.Request, params CancelSessionParams)
// ListSessionCompactions List durable compaction records
// (GET /session/compactions)
ListSessionCompactions(w http.ResponseWriter, r *http.Request, params ListSessionCompactionsParams)
// GetSessionCompaction Read one durable compaction record
// (GET /session/compactions/{compactionId})
GetSessionCompaction(w http.ResponseWriter, r *http.Request, compactionId CompactionID, params GetSessionCompactionParams)
// GetSessionContextSnapshot Read a context snapshot referenced by this session
// (GET /session/context-snapshots/{contextHash})
GetSessionContextSnapshot(w http.ResponseWriter, r *http.Request, contextHash ContextHash, params GetSessionContextSnapshotParams)
// ListSessionEvents List durable protocol events
// (GET /session/events)
ListSessionEvents(w http.ResponseWriter, r *http.Request, params ListSessionEventsParams)
// ListSessionJobs List the commands this session has started
// (GET /session/jobs)
ListSessionJobs(w http.ResponseWriter, r *http.Request, params ListSessionJobsParams)
// ReadSessionJobOutput Read a bounded window of one job's output
// (GET /session/jobs/{jobId}/output)
ReadSessionJobOutput(w http.ResponseWriter, r *http.Request, jobId JobID, params ReadSessionJobOutputParams)
// SignalSessionJob Stop one running job
// (POST /session/jobs/{jobId}/signal)
SignalSessionJob(w http.ResponseWriter, r *http.Request, jobId JobID, params SignalSessionJobParams)
// ListSessionJobSignalRequests List the durable signal-request history for one job
// (GET /session/jobs/{jobId}/signals)
ListSessionJobSignalRequests(w http.ResponseWriter, r *http.Request, jobId JobID, params ListSessionJobSignalRequestsParams)
// ListSessionModelRuns List complete durable model invocations
// (GET /session/model-runs)
ListSessionModelRuns(w http.ResponseWriter, r *http.Request, params ListSessionModelRunsParams)
// ListSessionModelRunCalls Read every provider round for one model invocation
// (GET /session/model-runs/{modelRunId}/calls)
ListSessionModelRunCalls(w http.ResponseWriter, r *http.Request, modelRunId ModelRunID, params ListSessionModelRunCallsParams)
// ListSessionNotices List durable outside and worker notices
// (GET /session/notices)
ListSessionNotices(w http.ResponseWriter, r *http.Request, params ListSessionNoticesParams)
// PublishSessionNotice Report a durable notice to the session
// (POST /session/notices)
PublishSessionNotice(w http.ResponseWriter, r *http.Request, params PublishSessionNoticeParams)
// GetSessionPromptSnapshot Read a prompt snapshot referenced by this session
// (GET /session/prompt-snapshots/{promptHash})
GetSessionPromptSnapshot(w http.ResponseWriter, r *http.Request, promptHash PromptHash, params GetSessionPromptSnapshotParams)
// ReconfigureSession Move an idle session to a different agent space
// (POST /session/reconfigure)
ReconfigureSession(w http.ResponseWriter, r *http.Request, params ReconfigureSessionParams)
// ListSessionTurns List durable turns
// (GET /session/turns)
ListSessionTurns(w http.ResponseWriter, r *http.Request, params ListSessionTurnsParams)
// ListSessionWorkers List one session's worker generations
// (GET /session/workers)
ListSessionWorkers(w http.ResponseWriter, r *http.Request, params ListSessionWorkersParams)
// ListSessions List durable workspace sessions
// (GET /sessions)
ListSessions(w http.ResponseWriter, r *http.Request, params ListSessionsParams)
// OpenSession Open or resume the session for a workspace
// (POST /sessions/open)
OpenSession(w http.ResponseWriter, r *http.Request)
// ListWorkspaceRoots List workspace roots this controller may open
// (GET /workspace-roots)
ListWorkspaceRoots(w http.ResponseWriter, r *http.Request)
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶ added in v0.2.0
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) CancelSession ¶
func (siw *ServerInterfaceWrapper) CancelSession(w http.ResponseWriter, r *http.Request)
CancelSession operation middleware
func (*ServerInterfaceWrapper) CancelSessionAgentRun ¶
func (siw *ServerInterfaceWrapper) CancelSessionAgentRun(w http.ResponseWriter, r *http.Request)
CancelSessionAgentRun operation middleware
func (*ServerInterfaceWrapper) GetSession ¶
func (siw *ServerInterfaceWrapper) GetSession(w http.ResponseWriter, r *http.Request)
GetSession operation middleware
func (*ServerInterfaceWrapper) GetSessionAgentRun ¶ added in v0.4.0
func (siw *ServerInterfaceWrapper) GetSessionAgentRun(w http.ResponseWriter, r *http.Request)
GetSessionAgentRun operation middleware
func (*ServerInterfaceWrapper) GetSessionAgentRunCompaction ¶ added in v0.11.0
func (siw *ServerInterfaceWrapper) GetSessionAgentRunCompaction(w http.ResponseWriter, r *http.Request)
GetSessionAgentRunCompaction operation middleware
func (*ServerInterfaceWrapper) GetSessionCompaction ¶ added in v0.4.0
func (siw *ServerInterfaceWrapper) GetSessionCompaction(w http.ResponseWriter, r *http.Request)
GetSessionCompaction operation middleware
func (*ServerInterfaceWrapper) GetSessionContextSnapshot ¶ added in v0.4.0
func (siw *ServerInterfaceWrapper) GetSessionContextSnapshot(w http.ResponseWriter, r *http.Request)
GetSessionContextSnapshot operation middleware
func (*ServerInterfaceWrapper) GetSessionPromptSnapshot ¶ added in v0.4.0
func (siw *ServerInterfaceWrapper) GetSessionPromptSnapshot(w http.ResponseWriter, r *http.Request)
GetSessionPromptSnapshot operation middleware
func (*ServerInterfaceWrapper) ListAgentSpaces ¶ added in v0.19.0
func (siw *ServerInterfaceWrapper) ListAgentSpaces(w http.ResponseWriter, r *http.Request)
ListAgentSpaces operation middleware
func (*ServerInterfaceWrapper) ListMessages ¶
func (siw *ServerInterfaceWrapper) ListMessages(w http.ResponseWriter, r *http.Request)
ListMessages operation middleware
func (*ServerInterfaceWrapper) ListModels ¶ added in v0.12.0
func (siw *ServerInterfaceWrapper) ListModels(w http.ResponseWriter, r *http.Request)
ListModels operation middleware
func (*ServerInterfaceWrapper) ListSessionAgentRunCompactions ¶ added in v0.11.0
func (siw *ServerInterfaceWrapper) ListSessionAgentRunCompactions(w http.ResponseWriter, r *http.Request)
ListSessionAgentRunCompactions operation middleware
func (*ServerInterfaceWrapper) ListSessionAgentRunEvents ¶
func (siw *ServerInterfaceWrapper) ListSessionAgentRunEvents(w http.ResponseWriter, r *http.Request)
ListSessionAgentRunEvents operation middleware
func (*ServerInterfaceWrapper) ListSessionAgentRunMessages ¶ added in v0.11.0
func (siw *ServerInterfaceWrapper) ListSessionAgentRunMessages(w http.ResponseWriter, r *http.Request)
ListSessionAgentRunMessages operation middleware
func (*ServerInterfaceWrapper) ListSessionAgentRuns ¶
func (siw *ServerInterfaceWrapper) ListSessionAgentRuns(w http.ResponseWriter, r *http.Request)
ListSessionAgentRuns operation middleware
func (*ServerInterfaceWrapper) ListSessionAgentSpaceDecisions ¶ added in v0.19.0
func (siw *ServerInterfaceWrapper) ListSessionAgentSpaceDecisions(w http.ResponseWriter, r *http.Request)
ListSessionAgentSpaceDecisions operation middleware
func (*ServerInterfaceWrapper) ListSessionCompactions ¶ added in v0.4.0
func (siw *ServerInterfaceWrapper) ListSessionCompactions(w http.ResponseWriter, r *http.Request)
ListSessionCompactions operation middleware
func (*ServerInterfaceWrapper) ListSessionEvents ¶
func (siw *ServerInterfaceWrapper) ListSessionEvents(w http.ResponseWriter, r *http.Request)
ListSessionEvents operation middleware
func (*ServerInterfaceWrapper) ListSessionJobSignalRequests ¶ added in v0.4.0
func (siw *ServerInterfaceWrapper) ListSessionJobSignalRequests(w http.ResponseWriter, r *http.Request)
ListSessionJobSignalRequests operation middleware
func (*ServerInterfaceWrapper) ListSessionJobs ¶
func (siw *ServerInterfaceWrapper) ListSessionJobs(w http.ResponseWriter, r *http.Request)
ListSessionJobs operation middleware
func (*ServerInterfaceWrapper) ListSessionModelRunCalls ¶ added in v0.4.0
func (siw *ServerInterfaceWrapper) ListSessionModelRunCalls(w http.ResponseWriter, r *http.Request)
ListSessionModelRunCalls operation middleware
func (*ServerInterfaceWrapper) ListSessionModelRuns ¶ added in v0.4.0
func (siw *ServerInterfaceWrapper) ListSessionModelRuns(w http.ResponseWriter, r *http.Request)
ListSessionModelRuns operation middleware
func (*ServerInterfaceWrapper) ListSessionNotices ¶ added in v0.4.0
func (siw *ServerInterfaceWrapper) ListSessionNotices(w http.ResponseWriter, r *http.Request)
ListSessionNotices operation middleware
func (*ServerInterfaceWrapper) ListSessionTurns ¶ added in v0.4.0
func (siw *ServerInterfaceWrapper) ListSessionTurns(w http.ResponseWriter, r *http.Request)
ListSessionTurns operation middleware
func (*ServerInterfaceWrapper) ListSessionWorkers ¶ added in v0.8.0
func (siw *ServerInterfaceWrapper) ListSessionWorkers(w http.ResponseWriter, r *http.Request)
ListSessionWorkers operation middleware
func (*ServerInterfaceWrapper) ListSessions ¶ added in v0.8.0
func (siw *ServerInterfaceWrapper) ListSessions(w http.ResponseWriter, r *http.Request)
ListSessions operation middleware
func (*ServerInterfaceWrapper) ListWorkspaceRoots ¶ added in v0.13.0
func (siw *ServerInterfaceWrapper) ListWorkspaceRoots(w http.ResponseWriter, r *http.Request)
ListWorkspaceRoots operation middleware
func (*ServerInterfaceWrapper) OpenSession ¶ added in v0.8.0
func (siw *ServerInterfaceWrapper) OpenSession(w http.ResponseWriter, r *http.Request)
OpenSession operation middleware
func (*ServerInterfaceWrapper) PublishSessionNotice ¶ added in v0.4.0
func (siw *ServerInterfaceWrapper) PublishSessionNotice(w http.ResponseWriter, r *http.Request)
PublishSessionNotice operation middleware
func (*ServerInterfaceWrapper) ReadSessionJobOutput ¶
func (siw *ServerInterfaceWrapper) ReadSessionJobOutput(w http.ResponseWriter, r *http.Request)
ReadSessionJobOutput operation middleware
func (*ServerInterfaceWrapper) ReconfigureSession ¶ added in v0.8.0
func (siw *ServerInterfaceWrapper) ReconfigureSession(w http.ResponseWriter, r *http.Request)
ReconfigureSession operation middleware
func (*ServerInterfaceWrapper) SignalSessionJob ¶
func (siw *ServerInterfaceWrapper) SignalSessionJob(w http.ResponseWriter, r *http.Request)
SignalSessionJob operation middleware
type Session ¶
type Session struct {
ActiveTurn bool `json:"activeTurn"`
Agent string `json:"agent"`
// AgentSpace The agent space this session's tools run in, `control` or `docker:<profile>`.
AgentSpace *string `json:"agentSpace,omitempty"`
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"`
Workspace string `json:"workspace"`
}
Session defines model for Session.
type SessionAgentSpaceDecision ¶ added in v0.19.0
type SessionAgentSpaceDecision struct {
DecidedAt time.Time `json:"decidedAt"`
// FromAgentSpace The agent space the session ran in before this decision. Absent when the session had no recorded agent space.
FromAgentSpace *string `json:"fromAgentSpace,omitempty"`
Id openapi_types.UUID `json:"id"`
Reason string `json:"reason"`
SessionId openapi_types.UUID `json:"sessionId"`
ToAgentSpace string `json:"toAgentSpace"`
}
SessionAgentSpaceDecision defines model for SessionAgentSpaceDecision.
type SessionAgentSpaceDecisionPage ¶ added in v0.19.0
type SessionAgentSpaceDecisionPage struct {
HasMore bool `json:"hasMore"`
Items []SessionAgentSpaceDecision `json:"items"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
SessionAgentSpaceDecisionPage defines model for SessionAgentSpaceDecisionPage.
type SessionIDRequired ¶
type SessionIDRequired = openapi_types.UUID
SessionIDRequired defines model for SessionIDRequired.
type SessionNotice ¶ added in v0.4.0
type SessionNotice struct {
CreatedAt time.Time `json:"createdAt"`
Data *map[string]interface{} `json:"data,omitempty"`
Delivery SessionNoticeDelivery `json:"delivery"`
Id openapi_types.UUID `json:"id"`
Source string `json:"source"`
Summary string `json:"summary"`
Type string `json:"type"`
}
SessionNotice defines model for SessionNotice.
type SessionNoticeDelivery ¶ added in v0.4.0
type SessionNoticeDelivery string
SessionNoticeDelivery defines model for SessionNotice.Delivery.
const ( SessionNoticeDeliveryQueue SessionNoticeDelivery = "queue" SessionNoticeDeliveryWake SessionNoticeDelivery = "wake" )
Defines values for SessionNoticeDelivery.
func (SessionNoticeDelivery) Valid ¶ added in v0.4.0
func (e SessionNoticeDelivery) Valid() bool
Valid indicates whether the value is a known member of the SessionNoticeDelivery enum.
type SessionNoticePage ¶ added in v0.4.0
type SessionNoticePage struct {
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
Notices []SessionNotice `json:"notices"`
Offset int32 `json:"offset"`
}
SessionNoticePage defines model for SessionNoticePage.
type SessionNoticeRequest ¶ added in v0.4.0
type SessionNoticeRequest 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 *SessionNoticeRequestDelivery `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"`
}
SessionNoticeRequest defines model for SessionNoticeRequest.
type SessionNoticeRequestDelivery ¶ added in v0.4.0
type SessionNoticeRequestDelivery string
SessionNoticeRequestDelivery 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 ( SessionNoticeRequestDeliveryQueue SessionNoticeRequestDelivery = "queue" SessionNoticeRequestDeliveryWake SessionNoticeRequestDelivery = "wake" )
Defines values for SessionNoticeRequestDelivery.
func (SessionNoticeRequestDelivery) Valid ¶ added in v0.4.0
func (e SessionNoticeRequestDelivery) Valid() bool
Valid indicates whether the value is a known member of the SessionNoticeRequestDelivery enum.
type SessionPage ¶ added in v0.8.0
type SessionPage struct {
HasMore bool `json:"hasMore"`
Items []Session `json:"items"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
SessionPage defines model for SessionPage.
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 StdHTTPServerOptions ¶ added in v0.2.0
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHTTPServerOptions ¶ added in v0.2.0
type StrictHTTPServerOptions struct {
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHandlerFunc ¶
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// ListAgentSpaces List the agent spaces a client may name
// (GET /agent-spaces)
ListAgentSpaces(ctx context.Context, request ListAgentSpacesRequestObject) (ListAgentSpacesResponseObject, error)
// ListMessages List stored conversation messages
// (GET /messages)
ListMessages(ctx context.Context, request ListMessagesRequestObject) (ListMessagesResponseObject, error)
// ListModels List models discovered from configured connections
// (GET /models)
ListModels(ctx context.Context, request ListModelsRequestObject) (ListModelsResponseObject, error)
// GetSession Read session details
// (GET /session)
GetSession(ctx context.Context, request GetSessionRequestObject) (GetSessionResponseObject, error)
// ListSessionAgentSpaceDecisions List one session's agent space decision history
// (GET /session/agent-space-decisions)
ListSessionAgentSpaceDecisions(ctx context.Context, request ListSessionAgentSpaceDecisionsRequestObject) (ListSessionAgentSpaceDecisionsResponseObject, error)
// ListSessionAgentRuns List the child agent runs this session has started
// (GET /session/agents)
ListSessionAgentRuns(ctx context.Context, request ListSessionAgentRunsRequestObject) (ListSessionAgentRunsResponseObject, error)
// GetSessionAgentRun Read one durable child agent run
// (GET /session/agents/{agentRunId})
GetSessionAgentRun(ctx context.Context, request GetSessionAgentRunRequestObject) (GetSessionAgentRunResponseObject, 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)
// ListSessionAgentRunCompactions List one child agent run's compaction lineage
// (GET /session/agents/{agentRunId}/compactions)
ListSessionAgentRunCompactions(ctx context.Context, request ListSessionAgentRunCompactionsRequestObject) (ListSessionAgentRunCompactionsResponseObject, error)
// GetSessionAgentRunCompaction Read one immutable child compaction record
// (GET /session/agents/{agentRunId}/compactions/{compactionId})
GetSessionAgentRunCompaction(ctx context.Context, request GetSessionAgentRunCompactionRequestObject) (GetSessionAgentRunCompactionResponseObject, error)
// ListSessionAgentRunEvents Follow what one child agent run is doing
// (GET /session/agents/{agentRunId}/events)
ListSessionAgentRunEvents(ctx context.Context, request ListSessionAgentRunEventsRequestObject) (ListSessionAgentRunEventsResponseObject, error)
// ListSessionAgentRunMessages List one child agent run's own durable transcript
// (GET /session/agents/{agentRunId}/messages)
ListSessionAgentRunMessages(ctx context.Context, request ListSessionAgentRunMessagesRequestObject) (ListSessionAgentRunMessagesResponseObject, error)
// CancelSession Request cancellation for the active turn
// (POST /session/cancel)
CancelSession(ctx context.Context, request CancelSessionRequestObject) (CancelSessionResponseObject, error)
// ListSessionCompactions List durable compaction records
// (GET /session/compactions)
ListSessionCompactions(ctx context.Context, request ListSessionCompactionsRequestObject) (ListSessionCompactionsResponseObject, error)
// GetSessionCompaction Read one durable compaction record
// (GET /session/compactions/{compactionId})
GetSessionCompaction(ctx context.Context, request GetSessionCompactionRequestObject) (GetSessionCompactionResponseObject, error)
// GetSessionContextSnapshot Read a context snapshot referenced by this session
// (GET /session/context-snapshots/{contextHash})
GetSessionContextSnapshot(ctx context.Context, request GetSessionContextSnapshotRequestObject) (GetSessionContextSnapshotResponseObject, error)
// ListSessionEvents List durable protocol events
// (GET /session/events)
ListSessionEvents(ctx context.Context, request ListSessionEventsRequestObject) (ListSessionEventsResponseObject, 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)
// ListSessionJobSignalRequests List the durable signal-request history for one job
// (GET /session/jobs/{jobId}/signals)
ListSessionJobSignalRequests(ctx context.Context, request ListSessionJobSignalRequestsRequestObject) (ListSessionJobSignalRequestsResponseObject, error)
// ListSessionModelRuns List complete durable model invocations
// (GET /session/model-runs)
ListSessionModelRuns(ctx context.Context, request ListSessionModelRunsRequestObject) (ListSessionModelRunsResponseObject, error)
// ListSessionModelRunCalls Read every provider round for one model invocation
// (GET /session/model-runs/{modelRunId}/calls)
ListSessionModelRunCalls(ctx context.Context, request ListSessionModelRunCallsRequestObject) (ListSessionModelRunCallsResponseObject, error)
// ListSessionNotices List durable outside and worker notices
// (GET /session/notices)
ListSessionNotices(ctx context.Context, request ListSessionNoticesRequestObject) (ListSessionNoticesResponseObject, error)
// PublishSessionNotice Report a durable notice to the session
// (POST /session/notices)
PublishSessionNotice(ctx context.Context, request PublishSessionNoticeRequestObject) (PublishSessionNoticeResponseObject, error)
// GetSessionPromptSnapshot Read a prompt snapshot referenced by this session
// (GET /session/prompt-snapshots/{promptHash})
GetSessionPromptSnapshot(ctx context.Context, request GetSessionPromptSnapshotRequestObject) (GetSessionPromptSnapshotResponseObject, error)
// ReconfigureSession Move an idle session to a different agent space
// (POST /session/reconfigure)
ReconfigureSession(ctx context.Context, request ReconfigureSessionRequestObject) (ReconfigureSessionResponseObject, error)
// ListSessionTurns List durable turns
// (GET /session/turns)
ListSessionTurns(ctx context.Context, request ListSessionTurnsRequestObject) (ListSessionTurnsResponseObject, error)
// ListSessionWorkers List one session's worker generations
// (GET /session/workers)
ListSessionWorkers(ctx context.Context, request ListSessionWorkersRequestObject) (ListSessionWorkersResponseObject, error)
// ListSessions List durable workspace sessions
// (GET /sessions)
ListSessions(ctx context.Context, request ListSessionsRequestObject) (ListSessionsResponseObject, error)
// OpenSession Open or resume the session for a workspace
// (POST /sessions/open)
OpenSession(ctx context.Context, request OpenSessionRequestObject) (OpenSessionResponseObject, error)
// ListWorkspaceRoots List workspace roots this controller may open
// (GET /workspace-roots)
ListWorkspaceRoots(ctx context.Context, request ListWorkspaceRootsRequestObject) (ListWorkspaceRootsResponseObject, error)
}
StrictServerInterface represents all server handlers.
type TooManyValuesForParamError ¶ added in v0.2.0
func (*TooManyValuesForParamError) Error ¶ added in v0.2.0
func (e *TooManyValuesForParamError) Error() string
type TranscriptEvent ¶ added in v0.4.0
type TranscriptEvent struct {
CreatedAt time.Time `json:"createdAt"`
Id openapi_types.UUID `json:"id"`
ParentToolCallId *string `json:"parentToolCallId,omitempty"`
Payload map[string]interface{} `json:"payload"`
RequestId openapi_types.UUID `json:"requestId"`
Sequence int64 `json:"sequence"`
SessionId openapi_types.UUID `json:"sessionId"`
TurnId openapi_types.UUID `json:"turnId"`
Type string `json:"type"`
// WorkerGenerationId Worker generation that produced this event, if started.
WorkerGenerationId *string `json:"workerGenerationId,omitempty"`
}
TranscriptEvent defines model for TranscriptEvent.
type TranscriptEventPage ¶ added in v0.4.0
type TranscriptEventPage struct {
Events []TranscriptEvent `json:"events"`
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
TranscriptEventPage defines model for TranscriptEventPage.
type Turn ¶ added in v0.4.0
type Turn struct {
CancelRequested bool `json:"cancelRequested"`
CompletedAt *time.Time `json:"completedAt,omitempty"`
ContextSnapshotHash *string `json:"contextSnapshotHash,omitempty"`
FailureClassification string `json:"failureClassification"`
Id openapi_types.UUID `json:"id"`
PromptSnapshotHash *string `json:"promptSnapshotHash,omitempty"`
RequestId openapi_types.UUID `json:"requestId"`
SessionId openapi_types.UUID `json:"sessionId"`
StartedAt time.Time `json:"startedAt"`
State TurnState `json:"state"`
Workspace string `json:"workspace"`
}
Turn defines model for Turn.
type TurnPage ¶ added in v0.4.0
type TurnPage struct {
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
Turns []Turn `json:"turns"`
}
TurnPage defines model for TurnPage.
type TurnState ¶ added in v0.4.0
type TurnState string
TurnState defines model for Turn.State.
type UnescapedCookieParamError ¶ added in v0.2.0
func (*UnescapedCookieParamError) Error ¶ added in v0.2.0
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶ added in v0.2.0
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶ added in v0.2.0
func (*UnmarshalingParamError) Error ¶ added in v0.2.0
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶ added in v0.2.0
func (e *UnmarshalingParamError) Unwrap() error
type WorkerGeneration ¶ added in v0.8.0
type WorkerGeneration struct {
AgentSpace string `json:"agentSpace"`
AgentSpaceRevision int64 `json:"agentSpaceRevision"`
// ContainerId Set only for a Docker generation.
ContainerId *string `json:"containerId,omitempty"`
CreatedAt time.Time `json:"createdAt"`
EndedAt *time.Time `json:"endedAt,omitempty"`
// FailureDetail Why a generation failed or was replaced. Never carries credentials.
FailureDetail *string `json:"failureDetail,omitempty"`
Id openapi_types.UUID `json:"id"`
// ImageDigest Immutable image identity for a Docker generation, never a moving tag.
ImageDigest *string `json:"imageDigest,omitempty"`
Kind WorkerGenerationKind `json:"kind"`
SessionId openapi_types.UUID `json:"sessionId"`
StartedAt *time.Time `json:"startedAt,omitempty"`
State WorkerGenerationState `json:"state"`
Workspace string `json:"workspace"`
}
WorkerGeneration defines model for WorkerGeneration.
type WorkerGenerationKind ¶ added in v0.8.0
type WorkerGenerationKind string
WorkerGenerationKind defines model for WorkerGeneration.Kind.
const ( WorkerGenerationKindControl WorkerGenerationKind = "control" WorkerGenerationKindDocker WorkerGenerationKind = "docker" )
Defines values for WorkerGenerationKind.
func (WorkerGenerationKind) Valid ¶ added in v0.8.0
func (e WorkerGenerationKind) Valid() bool
Valid indicates whether the value is a known member of the WorkerGenerationKind enum.
type WorkerGenerationPage ¶ added in v0.8.0
type WorkerGenerationPage struct {
HasMore bool `json:"hasMore"`
Items []WorkerGeneration `json:"items"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
WorkerGenerationPage defines model for WorkerGenerationPage.
type WorkerGenerationState ¶ added in v0.8.0
type WorkerGenerationState string
WorkerGenerationState defines model for WorkerGeneration.State.
const ( WorkerGenerationStateFailed WorkerGenerationState = "failed" WorkerGenerationStateReady WorkerGenerationState = "ready" WorkerGenerationStateRequested WorkerGenerationState = "requested" WorkerGenerationStateStarting WorkerGenerationState = "starting" WorkerGenerationStateStopped WorkerGenerationState = "stopped" WorkerGenerationStateStopping WorkerGenerationState = "stopping" )
Defines values for WorkerGenerationState.
func (WorkerGenerationState) Valid ¶ added in v0.8.0
func (e WorkerGenerationState) Valid() bool
Valid indicates whether the value is a known member of the WorkerGenerationState enum.
type WorkspaceRootList ¶ added in v0.13.0
type WorkspaceRootList struct {
// Roots Canonical absolute directories the authenticated controller will accept as workspace roots.
Roots []string `json:"roots"`
}
WorkspaceRootList defines model for WorkspaceRootList.