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 GetSpec() (swagger *openapi3.T, err error)
- func GetSpecJSON() ([]byte, error)
- func GetSwagger() (*openapi3.T, error)deprecated
- 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
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type AgentRun
- type AgentRunCancelResponse
- type AgentRunCancelResponseState
- type AgentRunDefinition
- type AgentRunEvent
- type AgentRunEventPage
- type AgentRunEventPageState
- type AgentRunID
- type AgentRunPage
- type AgentRunState
- type CancelResponse
- type CancelSession202JSONResponse
- type CancelSession202ResponseHeaders
- type CancelSession400JSONResponse
- type CancelSession401JSONResponse
- type CancelSession404JSONResponse
- type CancelSession500JSONResponse
- type CancelSessionAgentRun202JSONResponse
- type CancelSessionAgentRun202ResponseHeaders
- type CancelSessionAgentRun400JSONResponse
- type CancelSessionAgentRun401JSONResponse
- type CancelSessionAgentRun404JSONResponse
- type CancelSessionAgentRun500JSONResponse
- type CancelSessionAgentRunParams
- type CancelSessionAgentRunRequestObject
- type CancelSessionAgentRunResponseObject
- type CancelSessionParams
- type CancelSessionRequestObject
- type CancelSessionResponseObject
- type Compaction
- type CompactionID
- type CompactionPage
- type ContextHash
- type ContextSnapshot
- type Error
- type ErrorBadRequest
- type ErrorBadRequestJSONResponse
- 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 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 ListMessages200JSONResponse
- type ListMessages200ResponseHeaders
- type ListMessages400JSONResponse
- type ListMessages401JSONResponse
- type ListMessages404JSONResponse
- type ListMessages500JSONResponse
- type ListMessagesParams
- type ListMessagesParamsOrder
- type ListMessagesRequestObject
- type ListMessagesResponseObject
- type ListSessionAgentRunEvents200JSONResponse
- type ListSessionAgentRunEvents200ResponseHeaders
- type ListSessionAgentRunEvents400JSONResponse
- type ListSessionAgentRunEvents401JSONResponse
- type ListSessionAgentRunEvents404JSONResponse
- type ListSessionAgentRunEvents500JSONResponse
- type ListSessionAgentRunEventsParams
- type ListSessionAgentRunEventsRequestObject
- type ListSessionAgentRunEventsResponseObject
- type ListSessionAgentRuns200JSONResponse
- type ListSessionAgentRuns200ResponseHeaders
- type ListSessionAgentRuns400JSONResponse
- type ListSessionAgentRuns401JSONResponse
- type ListSessionAgentRuns404JSONResponse
- type ListSessionAgentRuns500JSONResponse
- type ListSessionAgentRunsParams
- type ListSessionAgentRunsParamsState
- type ListSessionAgentRunsRequestObject
- type ListSessionAgentRunsResponseObject
- type 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 Message
- type MessagePage
- type MessageRole
- type MessageToolCall
- type MiddlewareFunc
- type ModelCall
- type ModelCallPage
- type ModelCallState
- type ModelRun
- type ModelRunID
- type ModelRunPage
- type ModelRunStage
- type ModelRunState
- type Offset
- 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 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) 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) ListMessages(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionAgentRunEvents(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSessionAgentRuns(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) PublishSessionNotice(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReadSessionJobOutput(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SignalSessionJob(w http.ResponseWriter, r *http.Request)
- type Session
- type SessionIDRequired
- type SessionNotice
- type SessionNoticeDelivery
- type SessionNoticePage
- type SessionNoticeRequest
- type SessionNoticeRequestDelivery
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSpec ¶
GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.
func GetSpecJSON ¶
GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.
func GetSwagger
deprecated
func 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"`
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 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 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 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 ContextSnapshot ¶ added in v0.4.0
type ContextSnapshot struct {
CreatedAt time.Time `json:"createdAt"`
Hash string `json:"hash"`
Manifest map[string]interface{} `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 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 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"`
}
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 ListMessages200JSONResponse ¶
type ListMessages200JSONResponse struct {
Body MessagePage
Headers ListMessages200ResponseHeaders
}
func (ListMessages200JSONResponse) VisitListMessagesResponse ¶
func (response ListMessages200JSONResponse) VisitListMessagesResponse(w http.ResponseWriter) error
type ListMessages200ResponseHeaders ¶
type ListMessages200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListMessages400JSONResponse ¶
type ListMessages400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListMessages400JSONResponse) VisitListMessagesResponse ¶
func (response ListMessages400JSONResponse) VisitListMessagesResponse(w http.ResponseWriter) error
type ListMessages401JSONResponse ¶
func (ListMessages401JSONResponse) VisitListMessagesResponse ¶
func (response ListMessages401JSONResponse) VisitListMessagesResponse(w http.ResponseWriter) error
type ListMessages404JSONResponse ¶
type ListMessages404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListMessages404JSONResponse) VisitListMessagesResponse ¶
func (response ListMessages404JSONResponse) VisitListMessagesResponse(w http.ResponseWriter) error
type ListMessages500JSONResponse ¶
type ListMessages500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListMessages500JSONResponse) VisitListMessagesResponse ¶
func (response ListMessages500JSONResponse) VisitListMessagesResponse(w http.ResponseWriter) error
type ListMessagesParams ¶
type ListMessagesParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
Order *ListMessagesParamsOrder `form:"order,omitempty" json:"order,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListMessagesParams defines parameters for ListMessages.
type ListMessagesParamsOrder ¶
type ListMessagesParamsOrder string
ListMessagesParamsOrder defines parameters for ListMessages.
const ( ListMessagesParamsOrderAsc ListMessagesParamsOrder = "asc" ListMessagesParamsOrderDesc ListMessagesParamsOrder = "desc" )
Defines values for ListMessagesParamsOrder.
func (ListMessagesParamsOrder) Valid ¶
func (e ListMessagesParamsOrder) Valid() bool
Valid indicates whether the value is a known member of the ListMessagesParamsOrder enum.
type ListMessagesRequestObject ¶
type ListMessagesRequestObject struct {
Params ListMessagesParams
}
type ListMessagesResponseObject ¶
type ListMessagesResponseObject interface {
VisitListMessagesResponse(w http.ResponseWriter) error
}
type ListSessionAgentRunEvents200JSONResponse ¶
type ListSessionAgentRunEvents200JSONResponse struct {
Body AgentRunEventPage
Headers ListSessionAgentRunEvents200ResponseHeaders
}
func (ListSessionAgentRunEvents200JSONResponse) VisitListSessionAgentRunEventsResponse ¶
func (response ListSessionAgentRunEvents200JSONResponse) VisitListSessionAgentRunEventsResponse(w http.ResponseWriter) error
type ListSessionAgentRunEvents200ResponseHeaders ¶
type ListSessionAgentRunEvents200ResponseHeaders struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
type ListSessionAgentRunEvents400JSONResponse ¶
type ListSessionAgentRunEvents400JSONResponse struct{ ErrorBadRequestJSONResponse }
func (ListSessionAgentRunEvents400JSONResponse) VisitListSessionAgentRunEventsResponse ¶
func (response ListSessionAgentRunEvents400JSONResponse) VisitListSessionAgentRunEventsResponse(w http.ResponseWriter) error
type ListSessionAgentRunEvents401JSONResponse ¶
func (ListSessionAgentRunEvents401JSONResponse) VisitListSessionAgentRunEventsResponse ¶
func (response ListSessionAgentRunEvents401JSONResponse) VisitListSessionAgentRunEventsResponse(w http.ResponseWriter) error
type ListSessionAgentRunEvents404JSONResponse ¶
type ListSessionAgentRunEvents404JSONResponse struct{ ErrorNotFoundJSONResponse }
func (ListSessionAgentRunEvents404JSONResponse) VisitListSessionAgentRunEventsResponse ¶
func (response ListSessionAgentRunEvents404JSONResponse) VisitListSessionAgentRunEventsResponse(w http.ResponseWriter) error
type ListSessionAgentRunEvents500JSONResponse ¶
type ListSessionAgentRunEvents500JSONResponse struct{ ErrorInternalJSONResponse }
func (ListSessionAgentRunEvents500JSONResponse) VisitListSessionAgentRunEventsResponse ¶
func (response ListSessionAgentRunEvents500JSONResponse) VisitListSessionAgentRunEventsResponse(w http.ResponseWriter) error
type ListSessionAgentRunEventsParams ¶
type ListSessionAgentRunEventsParams struct {
Cursor *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 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 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 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"`
IsError *bool `json:"isError,omitempty"`
Model *string `json:"model,omitempty"`
Role MessageRole `json:"role"`
Sequence int64 `json:"sequence"`
Thinking *string `json:"thinking,omitempty"`
ToolCallId *string `json:"toolCallId,omitempty"`
ToolCalls *[]MessageToolCall `json:"toolCalls,omitempty"`
Workspace string `json:"workspace"`
}
Message defines model for Message.
type MessagePage ¶
type MessagePage struct {
HasMore bool `json:"hasMore"`
Items []Message `json:"items"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
MessagePage defines model for MessagePage.
type 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 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 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 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 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 {
// ListMessages List stored conversation messages
// (GET /messages)
ListMessages(w http.ResponseWriter, r *http.Request, params ListMessagesParams)
// GetSession Read session details
// (GET /session)
GetSession(w http.ResponseWriter, r *http.Request, params GetSessionParams)
// 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)
// 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)
// 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)
// ListSessionTurns List durable turns
// (GET /session/turns)
ListSessionTurns(w http.ResponseWriter, r *http.Request, params ListSessionTurnsParams)
}
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) 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) ListMessages ¶
func (siw *ServerInterfaceWrapper) ListMessages(w http.ResponseWriter, r *http.Request)
ListMessages operation middleware
func (*ServerInterfaceWrapper) ListSessionAgentRunEvents ¶
func (siw *ServerInterfaceWrapper) ListSessionAgentRunEvents(w http.ResponseWriter, r *http.Request)
ListSessionAgentRunEvents operation middleware
func (*ServerInterfaceWrapper) ListSessionAgentRuns ¶
func (siw *ServerInterfaceWrapper) ListSessionAgentRuns(w http.ResponseWriter, r *http.Request)
ListSessionAgentRuns 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) 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) 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"`
CompletedTurnCount int64 `json:"completedTurnCount"`
CreatedAt time.Time `json:"createdAt"`
Id openapi_types.UUID `json:"id"`
LastMessageAt *time.Time `json:"lastMessageAt,omitempty"`
MessageCount int64 `json:"messageCount"`
Model string `json:"model"`
UpdatedAt time.Time `json:"updatedAt"`
}
Session defines model for Session.
type 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 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 {
// ListMessages List stored conversation messages
// (GET /messages)
ListMessages(ctx context.Context, request ListMessagesRequestObject) (ListMessagesResponseObject, error)
// GetSession Read session details
// (GET /session)
GetSession(ctx context.Context, request GetSessionRequestObject) (GetSessionResponseObject, error)
// ListSessionAgentRuns List the child agent runs this session has started
// (GET /session/agents)
ListSessionAgentRuns(ctx context.Context, request ListSessionAgentRunsRequestObject) (ListSessionAgentRunsResponseObject, error)
// 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)
// ListSessionAgentRunEvents Follow what one child agent run is doing
// (GET /session/agents/{agentRunId}/events)
ListSessionAgentRunEvents(ctx context.Context, request ListSessionAgentRunEventsRequestObject) (ListSessionAgentRunEventsResponseObject, error)
// CancelSession Request cancellation for the active turn
// (POST /session/cancel)
CancelSession(ctx context.Context, request CancelSessionRequestObject) (CancelSessionResponseObject, error)
// 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)
// ListSessionTurns List durable turns
// (GET /session/turns)
ListSessionTurns(ctx context.Context, request ListSessionTurnsRequestObject) (ListSessionTurnsResponseObject, 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"`
}
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