Documentation
¶
Overview ¶
Package client 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 client holds Peen's generated HTTP API client.
It is generated from the same `api/api.yml` document the server is generated from, so a caller and the service cannot drift: a change to the contract regenerates both or neither. Use this rather than hand-rolling requests against the documented paths.
For an in-process caller, `pkg/peen` is the supported entry point and needs no HTTP at all. This package is for talking to a Peen that runs somewhere else.
Index ¶
- func NewCancelSessionAgentRunRequest(server string, agentRunId AgentRunID, params *CancelSessionAgentRunParams) (*http.Request, error)
- func NewCancelSessionRequest(server string, params *CancelSessionParams) (*http.Request, error)
- func NewGetSessionAgentRunCompactionRequest(server string, agentRunId AgentRunID, compactionId CompactionID, ...) (*http.Request, error)
- func NewGetSessionAgentRunRequest(server string, agentRunId AgentRunID, params *GetSessionAgentRunParams) (*http.Request, error)
- func NewGetSessionCompactionRequest(server string, compactionId CompactionID, params *GetSessionCompactionParams) (*http.Request, error)
- func NewGetSessionContextSnapshotRequest(server string, contextHash ContextHash, ...) (*http.Request, error)
- func NewGetSessionPromptSnapshotRequest(server string, promptHash PromptHash, params *GetSessionPromptSnapshotParams) (*http.Request, error)
- func NewGetSessionRequest(server string, params *GetSessionParams) (*http.Request, error)
- func NewListExecutionProfilesRequest(server string) (*http.Request, error)
- func NewListMessagesRequest(server string, params *ListMessagesParams) (*http.Request, error)
- func NewListModelsRequest(server string) (*http.Request, error)
- func NewListSessionAgentRunCompactionsRequest(server string, agentRunId AgentRunID, ...) (*http.Request, error)
- func NewListSessionAgentRunEventsRequest(server string, agentRunId AgentRunID, params *ListSessionAgentRunEventsParams) (*http.Request, error)
- func NewListSessionAgentRunMessagesRequest(server string, agentRunId AgentRunID, ...) (*http.Request, error)
- func NewListSessionAgentRunsRequest(server string, params *ListSessionAgentRunsParams) (*http.Request, error)
- func NewListSessionCompactionsRequest(server string, params *ListSessionCompactionsParams) (*http.Request, error)
- func NewListSessionEventsRequest(server string, params *ListSessionEventsParams) (*http.Request, error)
- func NewListSessionJobSignalRequestsRequest(server string, jobId JobID, params *ListSessionJobSignalRequestsParams) (*http.Request, error)
- func NewListSessionJobsRequest(server string, params *ListSessionJobsParams) (*http.Request, error)
- func NewListSessionModelRunCallsRequest(server string, modelRunId ModelRunID, params *ListSessionModelRunCallsParams) (*http.Request, error)
- func NewListSessionModelRunsRequest(server string, params *ListSessionModelRunsParams) (*http.Request, error)
- func NewListSessionNoticesRequest(server string, params *ListSessionNoticesParams) (*http.Request, error)
- func NewListSessionProfileDecisionsRequest(server string, params *ListSessionProfileDecisionsParams) (*http.Request, error)
- func NewListSessionTurnsRequest(server string, params *ListSessionTurnsParams) (*http.Request, error)
- func NewListSessionWorkersRequest(server string, params *ListSessionWorkersParams) (*http.Request, error)
- func NewListSessionsRequest(server string, params *ListSessionsParams) (*http.Request, error)
- func NewListWorkspaceRootsRequest(server string) (*http.Request, error)
- func NewOpenSessionRequest(server string, body OpenSessionJSONRequestBody) (*http.Request, error)
- func NewOpenSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPublishSessionNoticeRequest(server string, params *PublishSessionNoticeParams, ...) (*http.Request, error)
- func NewPublishSessionNoticeRequestWithBody(server string, params *PublishSessionNoticeParams, contentType string, ...) (*http.Request, error)
- func NewReadSessionJobOutputRequest(server string, jobId JobID, params *ReadSessionJobOutputParams) (*http.Request, error)
- func NewReconfigureSessionRequest(server string, params *ReconfigureSessionParams, ...) (*http.Request, error)
- func NewReconfigureSessionRequestWithBody(server string, params *ReconfigureSessionParams, contentType string, ...) (*http.Request, error)
- func NewSignalSessionJobRequest(server string, jobId JobID, params *SignalSessionJobParams, ...) (*http.Request, error)
- func NewSignalSessionJobRequestWithBody(server string, jobId JobID, params *SignalSessionJobParams, contentType string, ...) (*http.Request, error)
- type AgentRun
- type AgentRunCancelResponse
- type AgentRunCancelResponseState
- type AgentRunCompaction
- type AgentRunCompactionPage
- type AgentRunDefinition
- type AgentRunEvent
- type AgentRunEventPage
- type AgentRunEventPageState
- type AgentRunID
- type AgentRunMessage
- type AgentRunMessagePage
- type AgentRunMessageRole
- type AgentRunPage
- type AgentRunState
- type CancelResponse
- type CancelSessionAgentRunParams
- type CancelSessionAgentRunResponse
- func (r CancelSessionAgentRunResponse) ContentType() string
- func (r CancelSessionAgentRunResponse) GetBody() []byte
- func (r CancelSessionAgentRunResponse) GetJSON202() *AgentRunCancelResponse
- func (r CancelSessionAgentRunResponse) GetJSON400() *ErrorBadRequest
- func (r CancelSessionAgentRunResponse) GetJSON401() *ErrorUnauthorized
- func (r CancelSessionAgentRunResponse) GetJSON404() *ErrorNotFound
- func (r CancelSessionAgentRunResponse) GetJSON500() *ErrorInternal
- func (r CancelSessionAgentRunResponse) Status() string
- func (r CancelSessionAgentRunResponse) StatusCode() int
- type CancelSessionAgentRunResponse202Headers
- type CancelSessionParams
- type CancelSessionResponse
- func (r CancelSessionResponse) ContentType() string
- func (r CancelSessionResponse) GetBody() []byte
- func (r CancelSessionResponse) GetJSON202() *CancelResponse
- func (r CancelSessionResponse) GetJSON400() *ErrorBadRequest
- func (r CancelSessionResponse) GetJSON401() *ErrorUnauthorized
- func (r CancelSessionResponse) GetJSON404() *ErrorNotFound
- func (r CancelSessionResponse) GetJSON500() *ErrorInternal
- func (r CancelSessionResponse) Status() string
- func (r CancelSessionResponse) StatusCode() int
- type CancelSessionResponse202Headers
- type Client
- func (c *Client) CancelSession(ctx context.Context, params *CancelSessionParams, ...) (*http.Response, error)
- func (c *Client) CancelSessionAgentRun(ctx context.Context, agentRunId AgentRunID, ...) (*http.Response, error)
- func (c *Client) GetSession(ctx context.Context, params *GetSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSessionAgentRun(ctx context.Context, agentRunId AgentRunID, params *GetSessionAgentRunParams, ...) (*http.Response, error)
- func (c *Client) GetSessionAgentRunCompaction(ctx context.Context, agentRunId AgentRunID, compactionId CompactionID, ...) (*http.Response, error)
- func (c *Client) GetSessionCompaction(ctx context.Context, compactionId CompactionID, ...) (*http.Response, error)
- func (c *Client) GetSessionContextSnapshot(ctx context.Context, contextHash ContextHash, ...) (*http.Response, error)
- func (c *Client) GetSessionPromptSnapshot(ctx context.Context, promptHash PromptHash, ...) (*http.Response, error)
- func (c *Client) ListExecutionProfiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListMessages(ctx context.Context, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListModels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListSessionAgentRunCompactions(ctx context.Context, agentRunId AgentRunID, ...) (*http.Response, error)
- func (c *Client) ListSessionAgentRunEvents(ctx context.Context, agentRunId AgentRunID, ...) (*http.Response, error)
- func (c *Client) ListSessionAgentRunMessages(ctx context.Context, agentRunId AgentRunID, ...) (*http.Response, error)
- func (c *Client) ListSessionAgentRuns(ctx context.Context, params *ListSessionAgentRunsParams, ...) (*http.Response, error)
- func (c *Client) ListSessionCompactions(ctx context.Context, params *ListSessionCompactionsParams, ...) (*http.Response, error)
- func (c *Client) ListSessionEvents(ctx context.Context, params *ListSessionEventsParams, ...) (*http.Response, error)
- func (c *Client) ListSessionJobSignalRequests(ctx context.Context, jobId JobID, params *ListSessionJobSignalRequestsParams, ...) (*http.Response, error)
- func (c *Client) ListSessionJobs(ctx context.Context, params *ListSessionJobsParams, ...) (*http.Response, error)
- func (c *Client) ListSessionModelRunCalls(ctx context.Context, modelRunId ModelRunID, ...) (*http.Response, error)
- func (c *Client) ListSessionModelRuns(ctx context.Context, params *ListSessionModelRunsParams, ...) (*http.Response, error)
- func (c *Client) ListSessionNotices(ctx context.Context, params *ListSessionNoticesParams, ...) (*http.Response, error)
- func (c *Client) ListSessionProfileDecisions(ctx context.Context, params *ListSessionProfileDecisionsParams, ...) (*http.Response, error)
- func (c *Client) ListSessionTurns(ctx context.Context, params *ListSessionTurnsParams, ...) (*http.Response, error)
- func (c *Client) ListSessionWorkers(ctx context.Context, params *ListSessionWorkersParams, ...) (*http.Response, error)
- func (c *Client) ListSessions(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListWorkspaceRoots(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OpenSession(ctx context.Context, body OpenSessionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) OpenSessionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PublishSessionNotice(ctx context.Context, params *PublishSessionNoticeParams, ...) (*http.Response, error)
- func (c *Client) PublishSessionNoticeWithBody(ctx context.Context, params *PublishSessionNoticeParams, contentType string, ...) (*http.Response, error)
- func (c *Client) ReadSessionJobOutput(ctx context.Context, jobId JobID, params *ReadSessionJobOutputParams, ...) (*http.Response, error)
- func (c *Client) ReconfigureSession(ctx context.Context, params *ReconfigureSessionParams, ...) (*http.Response, error)
- func (c *Client) ReconfigureSessionWithBody(ctx context.Context, params *ReconfigureSessionParams, contentType string, ...) (*http.Response, error)
- func (c *Client) SignalSessionJob(ctx context.Context, jobId JobID, params *SignalSessionJobParams, ...) (*http.Response, error)
- func (c *Client) SignalSessionJobWithBody(ctx context.Context, jobId JobID, params *SignalSessionJobParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CancelSessionAgentRunWithResponse(ctx context.Context, agentRunId AgentRunID, ...) (*CancelSessionAgentRunResponse, error)
- func (c *ClientWithResponses) CancelSessionWithResponse(ctx context.Context, params *CancelSessionParams, ...) (*CancelSessionResponse, error)
- func (c *ClientWithResponses) GetSessionAgentRunCompactionWithResponse(ctx context.Context, agentRunId AgentRunID, compactionId CompactionID, ...) (*GetSessionAgentRunCompactionResponse, error)
- func (c *ClientWithResponses) GetSessionAgentRunWithResponse(ctx context.Context, agentRunId AgentRunID, params *GetSessionAgentRunParams, ...) (*GetSessionAgentRunResponse, error)
- func (c *ClientWithResponses) GetSessionCompactionWithResponse(ctx context.Context, compactionId CompactionID, ...) (*GetSessionCompactionResponse, error)
- func (c *ClientWithResponses) GetSessionContextSnapshotWithResponse(ctx context.Context, contextHash ContextHash, ...) (*GetSessionContextSnapshotResponse, error)
- func (c *ClientWithResponses) GetSessionPromptSnapshotWithResponse(ctx context.Context, promptHash PromptHash, ...) (*GetSessionPromptSnapshotResponse, error)
- func (c *ClientWithResponses) GetSessionWithResponse(ctx context.Context, params *GetSessionParams, reqEditors ...RequestEditorFn) (*GetSessionResponse, error)
- func (c *ClientWithResponses) ListExecutionProfilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListExecutionProfilesResponse, error)
- func (c *ClientWithResponses) ListMessagesWithResponse(ctx context.Context, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*ListMessagesResponse, error)
- func (c *ClientWithResponses) ListModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListModelsResponse, error)
- func (c *ClientWithResponses) ListSessionAgentRunCompactionsWithResponse(ctx context.Context, agentRunId AgentRunID, ...) (*ListSessionAgentRunCompactionsResponse, error)
- func (c *ClientWithResponses) ListSessionAgentRunEventsWithResponse(ctx context.Context, agentRunId AgentRunID, ...) (*ListSessionAgentRunEventsResponse, error)
- func (c *ClientWithResponses) ListSessionAgentRunMessagesWithResponse(ctx context.Context, agentRunId AgentRunID, ...) (*ListSessionAgentRunMessagesResponse, error)
- func (c *ClientWithResponses) ListSessionAgentRunsWithResponse(ctx context.Context, params *ListSessionAgentRunsParams, ...) (*ListSessionAgentRunsResponse, error)
- func (c *ClientWithResponses) ListSessionCompactionsWithResponse(ctx context.Context, params *ListSessionCompactionsParams, ...) (*ListSessionCompactionsResponse, error)
- func (c *ClientWithResponses) ListSessionEventsWithResponse(ctx context.Context, params *ListSessionEventsParams, ...) (*ListSessionEventsResponse, error)
- func (c *ClientWithResponses) ListSessionJobSignalRequestsWithResponse(ctx context.Context, jobId JobID, params *ListSessionJobSignalRequestsParams, ...) (*ListSessionJobSignalRequestsResponse, error)
- func (c *ClientWithResponses) ListSessionJobsWithResponse(ctx context.Context, params *ListSessionJobsParams, ...) (*ListSessionJobsResponse, error)
- func (c *ClientWithResponses) ListSessionModelRunCallsWithResponse(ctx context.Context, modelRunId ModelRunID, ...) (*ListSessionModelRunCallsResponse, error)
- func (c *ClientWithResponses) ListSessionModelRunsWithResponse(ctx context.Context, params *ListSessionModelRunsParams, ...) (*ListSessionModelRunsResponse, error)
- func (c *ClientWithResponses) ListSessionNoticesWithResponse(ctx context.Context, params *ListSessionNoticesParams, ...) (*ListSessionNoticesResponse, error)
- func (c *ClientWithResponses) ListSessionProfileDecisionsWithResponse(ctx context.Context, params *ListSessionProfileDecisionsParams, ...) (*ListSessionProfileDecisionsResponse, error)
- func (c *ClientWithResponses) ListSessionTurnsWithResponse(ctx context.Context, params *ListSessionTurnsParams, ...) (*ListSessionTurnsResponse, error)
- func (c *ClientWithResponses) ListSessionWorkersWithResponse(ctx context.Context, params *ListSessionWorkersParams, ...) (*ListSessionWorkersResponse, error)
- func (c *ClientWithResponses) ListSessionsWithResponse(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*ListSessionsResponse, error)
- func (c *ClientWithResponses) ListWorkspaceRootsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListWorkspaceRootsResponse, error)
- func (c *ClientWithResponses) OpenSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*OpenSessionResponse, error)
- func (c *ClientWithResponses) OpenSessionWithResponse(ctx context.Context, body OpenSessionJSONRequestBody, ...) (*OpenSessionResponse, error)
- func (c *ClientWithResponses) PublishSessionNoticeWithBodyWithResponse(ctx context.Context, params *PublishSessionNoticeParams, contentType string, ...) (*PublishSessionNoticeResponse, error)
- func (c *ClientWithResponses) PublishSessionNoticeWithResponse(ctx context.Context, params *PublishSessionNoticeParams, ...) (*PublishSessionNoticeResponse, error)
- func (c *ClientWithResponses) ReadSessionJobOutputWithResponse(ctx context.Context, jobId JobID, params *ReadSessionJobOutputParams, ...) (*ReadSessionJobOutputResponse, error)
- func (c *ClientWithResponses) ReconfigureSessionWithBodyWithResponse(ctx context.Context, params *ReconfigureSessionParams, contentType string, ...) (*ReconfigureSessionResponse, error)
- func (c *ClientWithResponses) ReconfigureSessionWithResponse(ctx context.Context, params *ReconfigureSessionParams, ...) (*ReconfigureSessionResponse, error)
- func (c *ClientWithResponses) SignalSessionJobWithBodyWithResponse(ctx context.Context, jobId JobID, params *SignalSessionJobParams, ...) (*SignalSessionJobResponse, error)
- func (c *ClientWithResponses) SignalSessionJobWithResponse(ctx context.Context, jobId JobID, params *SignalSessionJobParams, ...) (*SignalSessionJobResponse, error)
- type ClientWithResponsesInterface
- type Compaction
- type CompactionID
- type CompactionPage
- type ContextHash
- type ContextManifestEntry
- type ContextSnapshot
- type Error
- type ErrorBadRequest
- type ErrorConflict
- type ErrorForbidden
- type ErrorInternal
- type ErrorNotFound
- type ErrorUnauthorized
- type ExecutionProfile
- type ExecutionProfileKind
- type ExecutionProfileList
- type GetSessionAgentRunCompactionParams
- type GetSessionAgentRunCompactionResponse
- func (r GetSessionAgentRunCompactionResponse) ContentType() string
- func (r GetSessionAgentRunCompactionResponse) GetBody() []byte
- func (r GetSessionAgentRunCompactionResponse) GetJSON200() *AgentRunCompaction
- func (r GetSessionAgentRunCompactionResponse) GetJSON400() *ErrorBadRequest
- func (r GetSessionAgentRunCompactionResponse) GetJSON401() *ErrorUnauthorized
- func (r GetSessionAgentRunCompactionResponse) GetJSON404() *ErrorNotFound
- func (r GetSessionAgentRunCompactionResponse) GetJSON500() *ErrorInternal
- func (r GetSessionAgentRunCompactionResponse) Status() string
- func (r GetSessionAgentRunCompactionResponse) StatusCode() int
- type GetSessionAgentRunCompactionResponse200Headers
- type GetSessionAgentRunParams
- type GetSessionAgentRunResponse
- func (r GetSessionAgentRunResponse) ContentType() string
- func (r GetSessionAgentRunResponse) GetBody() []byte
- func (r GetSessionAgentRunResponse) GetJSON200() *AgentRun
- func (r GetSessionAgentRunResponse) GetJSON400() *ErrorBadRequest
- func (r GetSessionAgentRunResponse) GetJSON401() *ErrorUnauthorized
- func (r GetSessionAgentRunResponse) GetJSON404() *ErrorNotFound
- func (r GetSessionAgentRunResponse) GetJSON500() *ErrorInternal
- func (r GetSessionAgentRunResponse) Status() string
- func (r GetSessionAgentRunResponse) StatusCode() int
- type GetSessionAgentRunResponse200Headers
- type GetSessionCompactionParams
- type GetSessionCompactionResponse
- func (r GetSessionCompactionResponse) ContentType() string
- func (r GetSessionCompactionResponse) GetBody() []byte
- func (r GetSessionCompactionResponse) GetJSON200() *Compaction
- func (r GetSessionCompactionResponse) GetJSON400() *ErrorBadRequest
- func (r GetSessionCompactionResponse) GetJSON401() *ErrorUnauthorized
- func (r GetSessionCompactionResponse) GetJSON404() *ErrorNotFound
- func (r GetSessionCompactionResponse) GetJSON500() *ErrorInternal
- func (r GetSessionCompactionResponse) Status() string
- func (r GetSessionCompactionResponse) StatusCode() int
- type GetSessionCompactionResponse200Headers
- type GetSessionContextSnapshotParams
- type GetSessionContextSnapshotResponse
- func (r GetSessionContextSnapshotResponse) ContentType() string
- func (r GetSessionContextSnapshotResponse) GetBody() []byte
- func (r GetSessionContextSnapshotResponse) GetJSON200() *ContextSnapshot
- func (r GetSessionContextSnapshotResponse) GetJSON400() *ErrorBadRequest
- func (r GetSessionContextSnapshotResponse) GetJSON401() *ErrorUnauthorized
- func (r GetSessionContextSnapshotResponse) GetJSON404() *ErrorNotFound
- func (r GetSessionContextSnapshotResponse) GetJSON500() *ErrorInternal
- func (r GetSessionContextSnapshotResponse) Status() string
- func (r GetSessionContextSnapshotResponse) StatusCode() int
- type GetSessionContextSnapshotResponse200Headers
- type GetSessionParams
- type GetSessionPromptSnapshotParams
- type GetSessionPromptSnapshotResponse
- func (r GetSessionPromptSnapshotResponse) ContentType() string
- func (r GetSessionPromptSnapshotResponse) GetBody() []byte
- func (r GetSessionPromptSnapshotResponse) GetJSON200() *PromptSnapshot
- func (r GetSessionPromptSnapshotResponse) GetJSON400() *ErrorBadRequest
- func (r GetSessionPromptSnapshotResponse) GetJSON401() *ErrorUnauthorized
- func (r GetSessionPromptSnapshotResponse) GetJSON404() *ErrorNotFound
- func (r GetSessionPromptSnapshotResponse) GetJSON500() *ErrorInternal
- func (r GetSessionPromptSnapshotResponse) Status() string
- func (r GetSessionPromptSnapshotResponse) StatusCode() int
- type GetSessionPromptSnapshotResponse200Headers
- type GetSessionResponse
- func (r GetSessionResponse) ContentType() string
- func (r GetSessionResponse) GetBody() []byte
- func (r GetSessionResponse) GetJSON200() *Session
- func (r GetSessionResponse) GetJSON400() *ErrorBadRequest
- func (r GetSessionResponse) GetJSON401() *ErrorUnauthorized
- func (r GetSessionResponse) GetJSON404() *ErrorNotFound
- func (r GetSessionResponse) GetJSON500() *ErrorInternal
- func (r GetSessionResponse) Status() string
- func (r GetSessionResponse) StatusCode() int
- type GetSessionResponse200Headers
- type HttpRequestDoer
- 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 ListExecutionProfilesResponse
- func (r ListExecutionProfilesResponse) ContentType() string
- func (r ListExecutionProfilesResponse) GetBody() []byte
- func (r ListExecutionProfilesResponse) GetJSON200() *ExecutionProfileList
- func (r ListExecutionProfilesResponse) GetJSON401() *ErrorUnauthorized
- func (r ListExecutionProfilesResponse) GetJSON500() *ErrorInternal
- func (r ListExecutionProfilesResponse) Status() string
- func (r ListExecutionProfilesResponse) StatusCode() int
- type ListExecutionProfilesResponse200Headers
- type ListMessagesParams
- type ListMessagesParamsOrder
- type ListMessagesResponse
- func (r ListMessagesResponse) ContentType() string
- func (r ListMessagesResponse) GetBody() []byte
- func (r ListMessagesResponse) GetJSON200() *MessagePage
- func (r ListMessagesResponse) GetJSON400() *ErrorBadRequest
- func (r ListMessagesResponse) GetJSON401() *ErrorUnauthorized
- func (r ListMessagesResponse) GetJSON404() *ErrorNotFound
- func (r ListMessagesResponse) GetJSON500() *ErrorInternal
- func (r ListMessagesResponse) Status() string
- func (r ListMessagesResponse) StatusCode() int
- type ListMessagesResponse200Headers
- type ListModelsResponse
- func (r ListModelsResponse) ContentType() string
- func (r ListModelsResponse) GetBody() []byte
- func (r ListModelsResponse) GetJSON200() *ModelList
- func (r ListModelsResponse) GetJSON401() *ErrorUnauthorized
- func (r ListModelsResponse) GetJSON500() *ErrorInternal
- func (r ListModelsResponse) Status() string
- func (r ListModelsResponse) StatusCode() int
- type ListModelsResponse200Headers
- type ListSessionAgentRunCompactionsParams
- type ListSessionAgentRunCompactionsResponse
- func (r ListSessionAgentRunCompactionsResponse) ContentType() string
- func (r ListSessionAgentRunCompactionsResponse) GetBody() []byte
- func (r ListSessionAgentRunCompactionsResponse) GetJSON200() *AgentRunCompactionPage
- func (r ListSessionAgentRunCompactionsResponse) GetJSON400() *ErrorBadRequest
- func (r ListSessionAgentRunCompactionsResponse) GetJSON401() *ErrorUnauthorized
- func (r ListSessionAgentRunCompactionsResponse) GetJSON404() *ErrorNotFound
- func (r ListSessionAgentRunCompactionsResponse) GetJSON500() *ErrorInternal
- func (r ListSessionAgentRunCompactionsResponse) Status() string
- func (r ListSessionAgentRunCompactionsResponse) StatusCode() int
- type ListSessionAgentRunCompactionsResponse200Headers
- type ListSessionAgentRunEventsParams
- type ListSessionAgentRunEventsResponse
- func (r ListSessionAgentRunEventsResponse) ContentType() string
- func (r ListSessionAgentRunEventsResponse) GetBody() []byte
- func (r ListSessionAgentRunEventsResponse) GetJSON200() *AgentRunEventPage
- func (r ListSessionAgentRunEventsResponse) GetJSON400() *ErrorBadRequest
- func (r ListSessionAgentRunEventsResponse) GetJSON401() *ErrorUnauthorized
- func (r ListSessionAgentRunEventsResponse) GetJSON404() *ErrorNotFound
- func (r ListSessionAgentRunEventsResponse) GetJSON500() *ErrorInternal
- func (r ListSessionAgentRunEventsResponse) Status() string
- func (r ListSessionAgentRunEventsResponse) StatusCode() int
- type ListSessionAgentRunEventsResponse200Headers
- type ListSessionAgentRunMessagesParams
- type ListSessionAgentRunMessagesResponse
- func (r ListSessionAgentRunMessagesResponse) ContentType() string
- func (r ListSessionAgentRunMessagesResponse) GetBody() []byte
- func (r ListSessionAgentRunMessagesResponse) GetJSON200() *AgentRunMessagePage
- func (r ListSessionAgentRunMessagesResponse) GetJSON400() *ErrorBadRequest
- func (r ListSessionAgentRunMessagesResponse) GetJSON401() *ErrorUnauthorized
- func (r ListSessionAgentRunMessagesResponse) GetJSON404() *ErrorNotFound
- func (r ListSessionAgentRunMessagesResponse) GetJSON500() *ErrorInternal
- func (r ListSessionAgentRunMessagesResponse) Status() string
- func (r ListSessionAgentRunMessagesResponse) StatusCode() int
- type ListSessionAgentRunMessagesResponse200Headers
- type ListSessionAgentRunsParams
- type ListSessionAgentRunsParamsState
- type ListSessionAgentRunsResponse
- func (r ListSessionAgentRunsResponse) ContentType() string
- func (r ListSessionAgentRunsResponse) GetBody() []byte
- func (r ListSessionAgentRunsResponse) GetJSON200() *AgentRunPage
- func (r ListSessionAgentRunsResponse) GetJSON400() *ErrorBadRequest
- func (r ListSessionAgentRunsResponse) GetJSON401() *ErrorUnauthorized
- func (r ListSessionAgentRunsResponse) GetJSON404() *ErrorNotFound
- func (r ListSessionAgentRunsResponse) GetJSON500() *ErrorInternal
- func (r ListSessionAgentRunsResponse) Status() string
- func (r ListSessionAgentRunsResponse) StatusCode() int
- type ListSessionAgentRunsResponse200Headers
- type ListSessionCompactionsParams
- type ListSessionCompactionsResponse
- func (r ListSessionCompactionsResponse) ContentType() string
- func (r ListSessionCompactionsResponse) GetBody() []byte
- func (r ListSessionCompactionsResponse) GetJSON200() *CompactionPage
- func (r ListSessionCompactionsResponse) GetJSON400() *ErrorBadRequest
- func (r ListSessionCompactionsResponse) GetJSON401() *ErrorUnauthorized
- func (r ListSessionCompactionsResponse) GetJSON404() *ErrorNotFound
- func (r ListSessionCompactionsResponse) GetJSON500() *ErrorInternal
- func (r ListSessionCompactionsResponse) Status() string
- func (r ListSessionCompactionsResponse) StatusCode() int
- type ListSessionCompactionsResponse200Headers
- type ListSessionEventsParams
- type ListSessionEventsParamsOrder
- type ListSessionEventsResponse
- func (r ListSessionEventsResponse) ContentType() string
- func (r ListSessionEventsResponse) GetBody() []byte
- func (r ListSessionEventsResponse) GetJSON200() *TranscriptEventPage
- func (r ListSessionEventsResponse) GetJSON400() *ErrorBadRequest
- func (r ListSessionEventsResponse) GetJSON401() *ErrorUnauthorized
- func (r ListSessionEventsResponse) GetJSON404() *ErrorNotFound
- func (r ListSessionEventsResponse) GetJSON500() *ErrorInternal
- func (r ListSessionEventsResponse) Status() string
- func (r ListSessionEventsResponse) StatusCode() int
- type ListSessionEventsResponse200Headers
- type ListSessionJobSignalRequestsParams
- type ListSessionJobSignalRequestsResponse
- func (r ListSessionJobSignalRequestsResponse) ContentType() string
- func (r ListSessionJobSignalRequestsResponse) GetBody() []byte
- func (r ListSessionJobSignalRequestsResponse) GetJSON200() *JobSignalRecordPage
- func (r ListSessionJobSignalRequestsResponse) GetJSON400() *ErrorBadRequest
- func (r ListSessionJobSignalRequestsResponse) GetJSON401() *ErrorUnauthorized
- func (r ListSessionJobSignalRequestsResponse) GetJSON404() *ErrorNotFound
- func (r ListSessionJobSignalRequestsResponse) GetJSON500() *ErrorInternal
- func (r ListSessionJobSignalRequestsResponse) Status() string
- func (r ListSessionJobSignalRequestsResponse) StatusCode() int
- type ListSessionJobSignalRequestsResponse200Headers
- type ListSessionJobsParams
- type ListSessionJobsParamsState
- type ListSessionJobsResponse
- func (r ListSessionJobsResponse) ContentType() string
- func (r ListSessionJobsResponse) GetBody() []byte
- func (r ListSessionJobsResponse) GetJSON200() *JobPage
- func (r ListSessionJobsResponse) GetJSON400() *ErrorBadRequest
- func (r ListSessionJobsResponse) GetJSON401() *ErrorUnauthorized
- func (r ListSessionJobsResponse) GetJSON404() *ErrorNotFound
- func (r ListSessionJobsResponse) GetJSON500() *ErrorInternal
- func (r ListSessionJobsResponse) Status() string
- func (r ListSessionJobsResponse) StatusCode() int
- type ListSessionJobsResponse200Headers
- type ListSessionModelRunCallsParams
- type ListSessionModelRunCallsResponse
- func (r ListSessionModelRunCallsResponse) ContentType() string
- func (r ListSessionModelRunCallsResponse) GetBody() []byte
- func (r ListSessionModelRunCallsResponse) GetJSON200() *ModelCallPage
- func (r ListSessionModelRunCallsResponse) GetJSON400() *ErrorBadRequest
- func (r ListSessionModelRunCallsResponse) GetJSON401() *ErrorUnauthorized
- func (r ListSessionModelRunCallsResponse) GetJSON404() *ErrorNotFound
- func (r ListSessionModelRunCallsResponse) GetJSON500() *ErrorInternal
- func (r ListSessionModelRunCallsResponse) Status() string
- func (r ListSessionModelRunCallsResponse) StatusCode() int
- type ListSessionModelRunCallsResponse200Headers
- type ListSessionModelRunsParams
- type ListSessionModelRunsParamsStage
- type ListSessionModelRunsParamsState
- type ListSessionModelRunsResponse
- func (r ListSessionModelRunsResponse) ContentType() string
- func (r ListSessionModelRunsResponse) GetBody() []byte
- func (r ListSessionModelRunsResponse) GetJSON200() *ModelRunPage
- func (r ListSessionModelRunsResponse) GetJSON400() *ErrorBadRequest
- func (r ListSessionModelRunsResponse) GetJSON401() *ErrorUnauthorized
- func (r ListSessionModelRunsResponse) GetJSON404() *ErrorNotFound
- func (r ListSessionModelRunsResponse) GetJSON500() *ErrorInternal
- func (r ListSessionModelRunsResponse) Status() string
- func (r ListSessionModelRunsResponse) StatusCode() int
- type ListSessionModelRunsResponse200Headers
- type ListSessionNoticesParams
- type ListSessionNoticesResponse
- func (r ListSessionNoticesResponse) ContentType() string
- func (r ListSessionNoticesResponse) GetBody() []byte
- func (r ListSessionNoticesResponse) GetJSON200() *SessionNoticePage
- func (r ListSessionNoticesResponse) GetJSON400() *ErrorBadRequest
- func (r ListSessionNoticesResponse) GetJSON401() *ErrorUnauthorized
- func (r ListSessionNoticesResponse) GetJSON404() *ErrorNotFound
- func (r ListSessionNoticesResponse) GetJSON500() *ErrorInternal
- func (r ListSessionNoticesResponse) Status() string
- func (r ListSessionNoticesResponse) StatusCode() int
- type ListSessionNoticesResponse200Headers
- type ListSessionProfileDecisionsParams
- type ListSessionProfileDecisionsResponse
- func (r ListSessionProfileDecisionsResponse) ContentType() string
- func (r ListSessionProfileDecisionsResponse) GetBody() []byte
- func (r ListSessionProfileDecisionsResponse) GetJSON200() *SessionProfileDecisionPage
- func (r ListSessionProfileDecisionsResponse) GetJSON400() *ErrorBadRequest
- func (r ListSessionProfileDecisionsResponse) GetJSON401() *ErrorUnauthorized
- func (r ListSessionProfileDecisionsResponse) GetJSON404() *ErrorNotFound
- func (r ListSessionProfileDecisionsResponse) GetJSON500() *ErrorInternal
- func (r ListSessionProfileDecisionsResponse) Status() string
- func (r ListSessionProfileDecisionsResponse) StatusCode() int
- type ListSessionProfileDecisionsResponse200Headers
- type ListSessionTurnsParams
- type ListSessionTurnsResponse
- func (r ListSessionTurnsResponse) ContentType() string
- func (r ListSessionTurnsResponse) GetBody() []byte
- func (r ListSessionTurnsResponse) GetJSON200() *TurnPage
- func (r ListSessionTurnsResponse) GetJSON400() *ErrorBadRequest
- func (r ListSessionTurnsResponse) GetJSON401() *ErrorUnauthorized
- func (r ListSessionTurnsResponse) GetJSON404() *ErrorNotFound
- func (r ListSessionTurnsResponse) GetJSON500() *ErrorInternal
- func (r ListSessionTurnsResponse) Status() string
- func (r ListSessionTurnsResponse) StatusCode() int
- type ListSessionTurnsResponse200Headers
- type ListSessionWorkersParams
- type ListSessionWorkersResponse
- func (r ListSessionWorkersResponse) ContentType() string
- func (r ListSessionWorkersResponse) GetBody() []byte
- func (r ListSessionWorkersResponse) GetJSON200() *WorkerGenerationPage
- func (r ListSessionWorkersResponse) GetJSON400() *ErrorBadRequest
- func (r ListSessionWorkersResponse) GetJSON401() *ErrorUnauthorized
- func (r ListSessionWorkersResponse) GetJSON404() *ErrorNotFound
- func (r ListSessionWorkersResponse) GetJSON500() *ErrorInternal
- func (r ListSessionWorkersResponse) Status() string
- func (r ListSessionWorkersResponse) StatusCode() int
- type ListSessionWorkersResponse200Headers
- type ListSessionsParams
- type ListSessionsResponse
- func (r ListSessionsResponse) ContentType() string
- func (r ListSessionsResponse) GetBody() []byte
- func (r ListSessionsResponse) GetJSON200() *SessionPage
- func (r ListSessionsResponse) GetJSON400() *ErrorBadRequest
- func (r ListSessionsResponse) GetJSON401() *ErrorUnauthorized
- func (r ListSessionsResponse) GetJSON500() *ErrorInternal
- func (r ListSessionsResponse) Status() string
- func (r ListSessionsResponse) StatusCode() int
- type ListSessionsResponse200Headers
- type ListWorkspaceRootsResponse
- func (r ListWorkspaceRootsResponse) ContentType() string
- func (r ListWorkspaceRootsResponse) GetBody() []byte
- func (r ListWorkspaceRootsResponse) GetJSON200() *WorkspaceRootList
- func (r ListWorkspaceRootsResponse) GetJSON401() *ErrorUnauthorized
- func (r ListWorkspaceRootsResponse) GetJSON500() *ErrorInternal
- func (r ListWorkspaceRootsResponse) Status() string
- func (r ListWorkspaceRootsResponse) StatusCode() int
- type ListWorkspaceRootsResponse200Headers
- type Message
- type MessageInjectedKind
- type MessagePage
- type MessageRole
- type MessageToolCall
- type Model
- type ModelCall
- type ModelCallPage
- type ModelCallState
- type ModelList
- type ModelRun
- type ModelRunID
- type ModelRunPage
- type ModelRunStage
- type ModelRunState
- type Offset
- type OpenSessionJSONRequestBody
- type OpenSessionRequest
- type OpenSessionResponse
- func (r OpenSessionResponse) ContentType() string
- func (r OpenSessionResponse) GetBody() []byte
- func (r OpenSessionResponse) GetJSON200() *OpenedSession
- func (r OpenSessionResponse) GetJSON400() *ErrorBadRequest
- func (r OpenSessionResponse) GetJSON401() *ErrorUnauthorized
- func (r OpenSessionResponse) GetJSON403() *ErrorForbidden
- func (r OpenSessionResponse) GetJSON404() *ErrorNotFound
- func (r OpenSessionResponse) GetJSON500() *ErrorInternal
- func (r OpenSessionResponse) Status() string
- func (r OpenSessionResponse) StatusCode() int
- type OpenSessionResponse200Headers
- type OpenedSession
- type Order
- type PromptHash
- type PromptSnapshot
- type PublishSessionNoticeJSONRequestBody
- type PublishSessionNoticeParams
- type PublishSessionNoticeResponse
- func (r PublishSessionNoticeResponse) ContentType() string
- func (r PublishSessionNoticeResponse) GetBody() []byte
- func (r PublishSessionNoticeResponse) GetJSON202() *SessionNotice
- func (r PublishSessionNoticeResponse) GetJSON400() *ErrorBadRequest
- func (r PublishSessionNoticeResponse) GetJSON401() *ErrorUnauthorized
- func (r PublishSessionNoticeResponse) GetJSON404() *ErrorNotFound
- func (r PublishSessionNoticeResponse) GetJSON500() *ErrorInternal
- func (r PublishSessionNoticeResponse) Status() string
- func (r PublishSessionNoticeResponse) StatusCode() int
- type PublishSessionNoticeResponse202Headers
- type ReadSessionJobOutputParams
- type ReadSessionJobOutputParamsStream
- type ReadSessionJobOutputResponse
- func (r ReadSessionJobOutputResponse) ContentType() string
- func (r ReadSessionJobOutputResponse) GetBody() []byte
- func (r ReadSessionJobOutputResponse) GetJSON200() *JobOutput
- func (r ReadSessionJobOutputResponse) GetJSON400() *ErrorBadRequest
- func (r ReadSessionJobOutputResponse) GetJSON401() *ErrorUnauthorized
- func (r ReadSessionJobOutputResponse) GetJSON404() *ErrorNotFound
- func (r ReadSessionJobOutputResponse) GetJSON500() *ErrorInternal
- func (r ReadSessionJobOutputResponse) Status() string
- func (r ReadSessionJobOutputResponse) StatusCode() int
- type ReadSessionJobOutputResponse200Headers
- type ReconfigureSessionJSONRequestBody
- type ReconfigureSessionParams
- type ReconfigureSessionRequest
- type ReconfigureSessionResponse
- func (r ReconfigureSessionResponse) ContentType() string
- func (r ReconfigureSessionResponse) GetBody() []byte
- func (r ReconfigureSessionResponse) GetJSON200() *SessionProfileDecision
- func (r ReconfigureSessionResponse) GetJSON400() *ErrorBadRequest
- func (r ReconfigureSessionResponse) GetJSON401() *ErrorUnauthorized
- func (r ReconfigureSessionResponse) GetJSON403() *ErrorForbidden
- func (r ReconfigureSessionResponse) GetJSON404() *ErrorNotFound
- func (r ReconfigureSessionResponse) GetJSON409() *ErrorConflict
- func (r ReconfigureSessionResponse) GetJSON500() *ErrorInternal
- func (r ReconfigureSessionResponse) Status() string
- func (r ReconfigureSessionResponse) StatusCode() int
- type ReconfigureSessionResponse200Headers
- type RequestEditorFn
- type Session
- type SessionIDRequired
- type SessionNotice
- type SessionNoticeDelivery
- type SessionNoticePage
- type SessionNoticeRequest
- type SessionNoticeRequestDelivery
- type SessionPage
- type SessionProfileDecision
- type SessionProfileDecisionPage
- type SignalSessionJobJSONRequestBody
- type SignalSessionJobParams
- type SignalSessionJobResponse
- func (r SignalSessionJobResponse) ContentType() string
- func (r SignalSessionJobResponse) GetBody() []byte
- func (r SignalSessionJobResponse) GetJSON202() *JobSignalResponse
- func (r SignalSessionJobResponse) GetJSON400() *ErrorBadRequest
- func (r SignalSessionJobResponse) GetJSON401() *ErrorUnauthorized
- func (r SignalSessionJobResponse) GetJSON404() *ErrorNotFound
- func (r SignalSessionJobResponse) GetJSON500() *ErrorInternal
- func (r SignalSessionJobResponse) Status() string
- func (r SignalSessionJobResponse) StatusCode() int
- type SignalSessionJobResponse202Headers
- type TranscriptEvent
- type TranscriptEventPage
- type Turn
- type TurnPage
- type TurnState
- type WorkerGeneration
- type WorkerGenerationKind
- type WorkerGenerationPage
- type WorkerGenerationState
- type WorkspaceRootList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCancelSessionAgentRunRequest ¶
func NewCancelSessionAgentRunRequest(server string, agentRunId AgentRunID, params *CancelSessionAgentRunParams) (*http.Request, error)
NewCancelSessionAgentRunRequest constructs an http.Request for the CancelSessionAgentRun method
func NewCancelSessionRequest ¶
func NewCancelSessionRequest(server string, params *CancelSessionParams) (*http.Request, error)
NewCancelSessionRequest constructs an http.Request for the CancelSession method
func NewGetSessionAgentRunCompactionRequest ¶ added in v0.11.0
func NewGetSessionAgentRunCompactionRequest(server string, agentRunId AgentRunID, compactionId CompactionID, params *GetSessionAgentRunCompactionParams) (*http.Request, error)
NewGetSessionAgentRunCompactionRequest constructs an http.Request for the GetSessionAgentRunCompaction method
func NewGetSessionAgentRunRequest ¶ added in v0.4.0
func NewGetSessionAgentRunRequest(server string, agentRunId AgentRunID, params *GetSessionAgentRunParams) (*http.Request, error)
NewGetSessionAgentRunRequest constructs an http.Request for the GetSessionAgentRun method
func NewGetSessionCompactionRequest ¶ added in v0.4.0
func NewGetSessionCompactionRequest(server string, compactionId CompactionID, params *GetSessionCompactionParams) (*http.Request, error)
NewGetSessionCompactionRequest constructs an http.Request for the GetSessionCompaction method
func NewGetSessionContextSnapshotRequest ¶ added in v0.4.0
func NewGetSessionContextSnapshotRequest(server string, contextHash ContextHash, params *GetSessionContextSnapshotParams) (*http.Request, error)
NewGetSessionContextSnapshotRequest constructs an http.Request for the GetSessionContextSnapshot method
func NewGetSessionPromptSnapshotRequest ¶ added in v0.4.0
func NewGetSessionPromptSnapshotRequest(server string, promptHash PromptHash, params *GetSessionPromptSnapshotParams) (*http.Request, error)
NewGetSessionPromptSnapshotRequest constructs an http.Request for the GetSessionPromptSnapshot method
func NewGetSessionRequest ¶
func NewGetSessionRequest(server string, params *GetSessionParams) (*http.Request, error)
NewGetSessionRequest constructs an http.Request for the GetSession method
func NewListExecutionProfilesRequest ¶ added in v0.8.0
NewListExecutionProfilesRequest constructs an http.Request for the ListExecutionProfiles method
func NewListMessagesRequest ¶
func NewListMessagesRequest(server string, params *ListMessagesParams) (*http.Request, error)
NewListMessagesRequest constructs an http.Request for the ListMessages method
func NewListModelsRequest ¶ added in v0.12.0
NewListModelsRequest constructs an http.Request for the ListModels method
func NewListSessionAgentRunCompactionsRequest ¶ added in v0.11.0
func NewListSessionAgentRunCompactionsRequest(server string, agentRunId AgentRunID, params *ListSessionAgentRunCompactionsParams) (*http.Request, error)
NewListSessionAgentRunCompactionsRequest constructs an http.Request for the ListSessionAgentRunCompactions method
func NewListSessionAgentRunEventsRequest ¶
func NewListSessionAgentRunEventsRequest(server string, agentRunId AgentRunID, params *ListSessionAgentRunEventsParams) (*http.Request, error)
NewListSessionAgentRunEventsRequest constructs an http.Request for the ListSessionAgentRunEvents method
func NewListSessionAgentRunMessagesRequest ¶ added in v0.11.0
func NewListSessionAgentRunMessagesRequest(server string, agentRunId AgentRunID, params *ListSessionAgentRunMessagesParams) (*http.Request, error)
NewListSessionAgentRunMessagesRequest constructs an http.Request for the ListSessionAgentRunMessages method
func NewListSessionAgentRunsRequest ¶
func NewListSessionAgentRunsRequest(server string, params *ListSessionAgentRunsParams) (*http.Request, error)
NewListSessionAgentRunsRequest constructs an http.Request for the ListSessionAgentRuns method
func NewListSessionCompactionsRequest ¶ added in v0.4.0
func NewListSessionCompactionsRequest(server string, params *ListSessionCompactionsParams) (*http.Request, error)
NewListSessionCompactionsRequest constructs an http.Request for the ListSessionCompactions method
func NewListSessionEventsRequest ¶
func NewListSessionEventsRequest(server string, params *ListSessionEventsParams) (*http.Request, error)
NewListSessionEventsRequest constructs an http.Request for the ListSessionEvents method
func NewListSessionJobSignalRequestsRequest ¶ added in v0.4.0
func NewListSessionJobSignalRequestsRequest(server string, jobId JobID, params *ListSessionJobSignalRequestsParams) (*http.Request, error)
NewListSessionJobSignalRequestsRequest constructs an http.Request for the ListSessionJobSignalRequests method
func NewListSessionJobsRequest ¶
func NewListSessionJobsRequest(server string, params *ListSessionJobsParams) (*http.Request, error)
NewListSessionJobsRequest constructs an http.Request for the ListSessionJobs method
func NewListSessionModelRunCallsRequest ¶ added in v0.4.0
func NewListSessionModelRunCallsRequest(server string, modelRunId ModelRunID, params *ListSessionModelRunCallsParams) (*http.Request, error)
NewListSessionModelRunCallsRequest constructs an http.Request for the ListSessionModelRunCalls method
func NewListSessionModelRunsRequest ¶ added in v0.4.0
func NewListSessionModelRunsRequest(server string, params *ListSessionModelRunsParams) (*http.Request, error)
NewListSessionModelRunsRequest constructs an http.Request for the ListSessionModelRuns method
func NewListSessionNoticesRequest ¶ added in v0.4.0
func NewListSessionNoticesRequest(server string, params *ListSessionNoticesParams) (*http.Request, error)
NewListSessionNoticesRequest constructs an http.Request for the ListSessionNotices method
func NewListSessionProfileDecisionsRequest ¶ added in v0.8.0
func NewListSessionProfileDecisionsRequest(server string, params *ListSessionProfileDecisionsParams) (*http.Request, error)
NewListSessionProfileDecisionsRequest constructs an http.Request for the ListSessionProfileDecisions method
func NewListSessionTurnsRequest ¶ added in v0.4.0
func NewListSessionTurnsRequest(server string, params *ListSessionTurnsParams) (*http.Request, error)
NewListSessionTurnsRequest constructs an http.Request for the ListSessionTurns method
func NewListSessionWorkersRequest ¶ added in v0.8.0
func NewListSessionWorkersRequest(server string, params *ListSessionWorkersParams) (*http.Request, error)
NewListSessionWorkersRequest constructs an http.Request for the ListSessionWorkers method
func NewListSessionsRequest ¶ added in v0.8.0
func NewListSessionsRequest(server string, params *ListSessionsParams) (*http.Request, error)
NewListSessionsRequest constructs an http.Request for the ListSessions method
func NewListWorkspaceRootsRequest ¶ added in v0.13.0
NewListWorkspaceRootsRequest constructs an http.Request for the ListWorkspaceRoots method
func NewOpenSessionRequest ¶ added in v0.8.0
func NewOpenSessionRequest(server string, body OpenSessionJSONRequestBody) (*http.Request, error)
NewOpenSessionRequest calls the generic OpenSession builder with application/json body
func NewOpenSessionRequestWithBody ¶ added in v0.8.0
func NewOpenSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewOpenSessionRequestWithBody constructs an http.Request for the OpenSession method, with any body, and a specified content type
func NewPublishSessionNoticeRequest ¶ added in v0.4.0
func NewPublishSessionNoticeRequest(server string, params *PublishSessionNoticeParams, body PublishSessionNoticeJSONRequestBody) (*http.Request, error)
NewPublishSessionNoticeRequest calls the generic PublishSessionNotice builder with application/json body
func NewPublishSessionNoticeRequestWithBody ¶ added in v0.4.0
func NewPublishSessionNoticeRequestWithBody(server string, params *PublishSessionNoticeParams, contentType string, body io.Reader) (*http.Request, error)
NewPublishSessionNoticeRequestWithBody constructs an http.Request for the PublishSessionNotice method, with any body, and a specified content type
func NewReadSessionJobOutputRequest ¶
func NewReadSessionJobOutputRequest(server string, jobId JobID, params *ReadSessionJobOutputParams) (*http.Request, error)
NewReadSessionJobOutputRequest constructs an http.Request for the ReadSessionJobOutput method
func NewReconfigureSessionRequest ¶ added in v0.8.0
func NewReconfigureSessionRequest(server string, params *ReconfigureSessionParams, body ReconfigureSessionJSONRequestBody) (*http.Request, error)
NewReconfigureSessionRequest calls the generic ReconfigureSession builder with application/json body
func NewReconfigureSessionRequestWithBody ¶ added in v0.8.0
func NewReconfigureSessionRequestWithBody(server string, params *ReconfigureSessionParams, contentType string, body io.Reader) (*http.Request, error)
NewReconfigureSessionRequestWithBody constructs an http.Request for the ReconfigureSession method, with any body, and a specified content type
func NewSignalSessionJobRequest ¶
func NewSignalSessionJobRequest(server string, jobId JobID, params *SignalSessionJobParams, body SignalSessionJobJSONRequestBody) (*http.Request, error)
NewSignalSessionJobRequest calls the generic SignalSessionJob builder with application/json body
func NewSignalSessionJobRequestWithBody ¶
func NewSignalSessionJobRequestWithBody(server string, jobId JobID, params *SignalSessionJobParams, contentType string, body io.Reader) (*http.Request, error)
NewSignalSessionJobRequestWithBody constructs an http.Request for the SignalSessionJob method, with any body, and a specified content type
Types ¶
type AgentRun ¶
type AgentRun struct {
AgentRunId openapi_types.UUID `json:"agentRunId"`
AllowedTools []interface{} `json:"allowedTools"`
CancelRequested bool `json:"cancelRequested"`
CompletionTokenCount int64 `json:"completionTokenCount"`
Definition AgentRunDefinition `json:"definition"`
Depth int64 `json:"depth"`
EndedAt *time.Time `json:"endedAt,omitempty"`
EventCount int64 `json:"eventCount"`
FailureClassification string `json:"failureClassification"`
FailureDetail string `json:"failureDetail"`
FinishReason string `json:"finishReason"`
Instructions string `json:"instructions"`
Model string `json:"model"`
ModelReference string `json:"modelReference"`
Name string `json:"name"`
ParentAgentRunId *openapi_types.UUID `json:"parentAgentRunId,omitempty"`
ParentToolCallId *string `json:"parentToolCallId,omitempty"`
ParentTurnId openapi_types.UUID `json:"parentTurnId"`
PromptTokenCount int64 `json:"promptTokenCount"`
RequestId openapi_types.UUID `json:"requestId"`
ResponseMessages []interface{} `json:"responseMessages"`
ResponseText string `json:"responseText"`
ResponseThinking string `json:"responseThinking"`
SessionId openapi_types.UUID `json:"sessionId"`
StartedAt time.Time `json:"startedAt"`
State AgentRunState `json:"state"`
SystemPrompt string `json:"systemPrompt"`
Task string `json:"task"`
// WorkerGenerationId Worker generation that ran this child agent.
WorkerGenerationId *string `json:"workerGenerationId,omitempty"`
Workspace string `json:"workspace"`
}
AgentRun defines model for AgentRun.
type AgentRunCancelResponse ¶
type AgentRunCancelResponse struct {
AgentRunId openapi_types.UUID `json:"agentRunId"`
// CancelRequested True when this request found a running agent and signalled it. Cancelling an unknown, completed, or already cancelled run is not an error and reports false with the current state.
CancelRequested bool `json:"cancelRequested"`
State AgentRunCancelResponseState `json:"state"`
}
AgentRunCancelResponse defines model for AgentRunCancelResponse.
type AgentRunCancelResponseState ¶
type AgentRunCancelResponseState string
AgentRunCancelResponseState defines model for AgentRunCancelResponse.State.
const ( AgentRunCancelResponseStateCancelled AgentRunCancelResponseState = "cancelled" AgentRunCancelResponseStateCompleted AgentRunCancelResponseState = "completed" AgentRunCancelResponseStateFailed AgentRunCancelResponseState = "failed" AgentRunCancelResponseStateInterrupted AgentRunCancelResponseState = "interrupted" AgentRunCancelResponseStateRunning AgentRunCancelResponseState = "running" )
Defines values for AgentRunCancelResponseState.
func (AgentRunCancelResponseState) Valid ¶
func (e AgentRunCancelResponseState) Valid() bool
Valid indicates whether the value is a known member of the AgentRunCancelResponseState enum.
type AgentRunCompaction ¶ added in v0.11.0
type AgentRunCompaction struct {
AgentRunId openapi_types.UUID `json:"agentRunId"`
CreatedAt time.Time `json:"createdAt"`
DirectFromSequence int64 `json:"directFromSequence"`
DirectToSequence int64 `json:"directToSequence"`
FromMessageId openapi_types.UUID `json:"fromMessageId"`
FromSequence int64 `json:"fromSequence"`
Id openapi_types.UUID `json:"id"`
InputTokenCount int64 `json:"inputTokenCount"`
Model string `json:"model"`
// ParentCompactionId The direct predecessor this compaction supersedes, or null for the first compaction in the chain.
ParentCompactionId *openapi_types.UUID `json:"parentCompactionId,omitempty"`
PromptHash string `json:"promptHash"`
SessionId openapi_types.UUID `json:"sessionId"`
SourceMessageCount int64 `json:"sourceMessageCount"`
Summary string `json:"summary"`
SummaryTokenCount int64 `json:"summaryTokenCount"`
ToMessageId openapi_types.UUID `json:"toMessageId"`
ToSequence int64 `json:"toSequence"`
}
AgentRunCompaction One immutable summary covering a completed prefix of one child agent run's transcript. directFromSequence and directToSequence name only the messages this row covered itself; fromSequence and toSequence span the whole superseded lineage.
type AgentRunCompactionPage ¶ added in v0.11.0
type AgentRunCompactionPage struct {
Compactions []AgentRunCompaction `json:"compactions"`
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
AgentRunCompactionPage defines model for AgentRunCompactionPage.
type AgentRunDefinition ¶
type AgentRunDefinition string
AgentRunDefinition defines model for AgentRun.Definition.
const ( AgentRunDefinitionAdHoc AgentRunDefinition = "ad-hoc" AgentRunDefinitionStored AgentRunDefinition = "stored" )
Defines values for AgentRunDefinition.
func (AgentRunDefinition) Valid ¶
func (e AgentRunDefinition) Valid() bool
Valid indicates whether the value is a known member of the AgentRunDefinition enum.
type AgentRunEvent ¶
type AgentRunEvent struct {
CreatedAt time.Time `json:"createdAt"`
Payload *map[string]interface{} `json:"payload,omitempty"`
Sequence int64 `json:"sequence"`
Type string `json:"type"`
}
AgentRunEvent defines model for AgentRunEvent.
type AgentRunEventPage ¶
type AgentRunEventPage struct {
AgentRunId openapi_types.UUID `json:"agentRunId"`
Events []AgentRunEvent `json:"events"`
HasMore bool `json:"hasMore"`
// NextCursor Pass back as cursor to continue from here.
NextCursor int64 `json:"nextCursor"`
State AgentRunEventPageState `json:"state"`
}
AgentRunEventPage defines model for AgentRunEventPage.
type AgentRunEventPageState ¶
type AgentRunEventPageState string
AgentRunEventPageState defines model for AgentRunEventPage.State.
const ( AgentRunEventPageStateCancelled AgentRunEventPageState = "cancelled" AgentRunEventPageStateCompleted AgentRunEventPageState = "completed" AgentRunEventPageStateFailed AgentRunEventPageState = "failed" AgentRunEventPageStateInterrupted AgentRunEventPageState = "interrupted" AgentRunEventPageStateRunning AgentRunEventPageState = "running" )
Defines values for AgentRunEventPageState.
func (AgentRunEventPageState) Valid ¶
func (e AgentRunEventPageState) Valid() bool
Valid indicates whether the value is a known member of the AgentRunEventPageState enum.
type AgentRunMessage ¶ added in v0.11.0
type AgentRunMessage struct {
AgentRunId openapi_types.UUID `json:"agentRunId"`
// CompactionId The child compaction that directly covered this message, or null while it is still raw.
CompactionId *openapi_types.UUID `json:"compactionId,omitempty"`
Content string `json:"content"`
CreatedAt time.Time `json:"createdAt"`
Id openapi_types.UUID `json:"id"`
Incomplete bool `json:"incomplete"`
IsError bool `json:"isError"`
Model *string `json:"model,omitempty"`
Role AgentRunMessageRole `json:"role"`
Sequence int64 `json:"sequence"`
SessionId openapi_types.UUID `json:"sessionId"`
Thinking *string `json:"thinking,omitempty"`
ToolCallId *string `json:"toolCallId,omitempty"`
ToolCalls *[]map[string]interface{} `json:"toolCalls,omitempty"`
}
AgentRunMessage One prompt-visible record in a child agent run's own transcript. It carries no turn: a child belongs to its agent run, not to a session turn's message sequence.
type AgentRunMessagePage ¶ added in v0.11.0
type AgentRunMessagePage struct {
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
Messages []AgentRunMessage `json:"messages"`
Offset int32 `json:"offset"`
}
AgentRunMessagePage defines model for AgentRunMessagePage.
type AgentRunMessageRole ¶ added in v0.11.0
type AgentRunMessageRole string
AgentRunMessageRole defines model for AgentRunMessage.Role.
const ( AgentRunMessageRoleAssistant AgentRunMessageRole = "assistant" AgentRunMessageRoleTool AgentRunMessageRole = "tool" AgentRunMessageRoleUser AgentRunMessageRole = "user" )
Defines values for AgentRunMessageRole.
func (AgentRunMessageRole) Valid ¶ added in v0.11.0
func (e AgentRunMessageRole) Valid() bool
Valid indicates whether the value is a known member of the AgentRunMessageRole enum.
type AgentRunPage ¶
type AgentRunPage struct {
Agents []AgentRun `json:"agents"`
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
AgentRunPage defines model for AgentRunPage.
type AgentRunState ¶
type AgentRunState string
AgentRunState defines model for AgentRun.State.
const ( AgentRunStateCancelled AgentRunState = "cancelled" AgentRunStateCompleted AgentRunState = "completed" AgentRunStateFailed AgentRunState = "failed" AgentRunStateInterrupted AgentRunState = "interrupted" AgentRunStateRunning AgentRunState = "running" )
Defines values for AgentRunState.
func (AgentRunState) Valid ¶
func (e AgentRunState) Valid() bool
Valid indicates whether the value is a known member of the AgentRunState enum.
type CancelResponse ¶
type CancelResponse struct {
CancelRequested bool `json:"cancelRequested"`
}
CancelResponse defines model for CancelResponse.
type CancelSessionAgentRunParams ¶
type CancelSessionAgentRunParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
CancelSessionAgentRunParams defines parameters for CancelSessionAgentRun.
type CancelSessionAgentRunResponse ¶
type CancelSessionAgentRunResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *AgentRunCancelResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers202 the parsed response headers for an HTTP 202 response
Headers202 *CancelSessionAgentRunResponse202Headers
}
func ParseCancelSessionAgentRunResponse ¶
func ParseCancelSessionAgentRunResponse(rsp *http.Response) (*CancelSessionAgentRunResponse, error)
ParseCancelSessionAgentRunResponse parses an HTTP response from a CancelSessionAgentRunWithResponse call
func (CancelSessionAgentRunResponse) ContentType ¶
func (r CancelSessionAgentRunResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CancelSessionAgentRunResponse) GetBody ¶
func (r CancelSessionAgentRunResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CancelSessionAgentRunResponse) GetJSON202 ¶
func (r CancelSessionAgentRunResponse) GetJSON202() *AgentRunCancelResponse
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (CancelSessionAgentRunResponse) GetJSON400 ¶
func (r CancelSessionAgentRunResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CancelSessionAgentRunResponse) GetJSON401 ¶
func (r CancelSessionAgentRunResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CancelSessionAgentRunResponse) GetJSON404 ¶
func (r CancelSessionAgentRunResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (CancelSessionAgentRunResponse) GetJSON500 ¶
func (r CancelSessionAgentRunResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (CancelSessionAgentRunResponse) Status ¶
func (r CancelSessionAgentRunResponse) Status() string
Status returns HTTPResponse.Status
func (CancelSessionAgentRunResponse) StatusCode ¶
func (r CancelSessionAgentRunResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CancelSessionAgentRunResponse202Headers ¶
type CancelSessionAgentRunResponse202Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
CancelSessionAgentRunResponse202Headers the declared response headers of an HTTP 202 response for CancelSessionAgentRun
type CancelSessionParams ¶
type CancelSessionParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
CancelSessionParams defines parameters for CancelSession.
type CancelSessionResponse ¶
type CancelSessionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *CancelResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers202 the parsed response headers for an HTTP 202 response
Headers202 *CancelSessionResponse202Headers
}
func ParseCancelSessionResponse ¶
func ParseCancelSessionResponse(rsp *http.Response) (*CancelSessionResponse, error)
ParseCancelSessionResponse parses an HTTP response from a CancelSessionWithResponse call
func (CancelSessionResponse) ContentType ¶
func (r CancelSessionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CancelSessionResponse) GetBody ¶
func (r CancelSessionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CancelSessionResponse) GetJSON202 ¶
func (r CancelSessionResponse) GetJSON202() *CancelResponse
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (CancelSessionResponse) GetJSON400 ¶
func (r CancelSessionResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (CancelSessionResponse) GetJSON401 ¶
func (r CancelSessionResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (CancelSessionResponse) GetJSON404 ¶
func (r CancelSessionResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (CancelSessionResponse) GetJSON500 ¶
func (r CancelSessionResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (CancelSessionResponse) Status ¶
func (r CancelSessionResponse) Status() string
Status returns HTTPResponse.Status
func (CancelSessionResponse) StatusCode ¶
func (r CancelSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CancelSessionResponse202Headers ¶
type CancelSessionResponse202Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
CancelSessionResponse202Headers the declared response headers of an HTTP 202 response for CancelSession
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CancelSession ¶
func (c *Client) CancelSession(ctx context.Context, params *CancelSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
CancelSession Request cancellation for the active turn
Corresponds with POST /session/cancel (the `CancelSession` operationId).
func (*Client) CancelSessionAgentRun ¶
func (c *Client) CancelSessionAgentRun(ctx context.Context, agentRunId AgentRunID, params *CancelSessionAgentRunParams, reqEditors ...RequestEditorFn) (*http.Response, error)
CancelSessionAgentRun Cancel one child agent run without ending its parent turn
Corresponds with POST /session/agents/{agentRunId}/cancel (the `CancelSessionAgentRun` operationId).
func (*Client) GetSession ¶
func (c *Client) GetSession(ctx context.Context, params *GetSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSession Read session details
Corresponds with GET /session (the `GetSession` operationId).
func (*Client) GetSessionAgentRun ¶ added in v0.4.0
func (c *Client) GetSessionAgentRun(ctx context.Context, agentRunId AgentRunID, params *GetSessionAgentRunParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSessionAgentRun Read one durable child agent run
Corresponds with GET /session/agents/{agentRunId} (the `GetSessionAgentRun` operationId).
func (*Client) GetSessionAgentRunCompaction ¶ added in v0.11.0
func (c *Client) GetSessionAgentRunCompaction(ctx context.Context, agentRunId AgentRunID, compactionId CompactionID, params *GetSessionAgentRunCompactionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSessionAgentRunCompaction Read one immutable child compaction record
Corresponds with GET /session/agents/{agentRunId}/compactions/{compactionId} (the `GetSessionAgentRunCompaction` operationId).
func (*Client) GetSessionCompaction ¶ added in v0.4.0
func (c *Client) GetSessionCompaction(ctx context.Context, compactionId CompactionID, params *GetSessionCompactionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSessionCompaction Read one durable compaction record
Corresponds with GET /session/compactions/{compactionId} (the `GetSessionCompaction` operationId).
func (*Client) GetSessionContextSnapshot ¶ added in v0.4.0
func (c *Client) GetSessionContextSnapshot(ctx context.Context, contextHash ContextHash, params *GetSessionContextSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSessionContextSnapshot Read a context snapshot referenced by this session
Corresponds with GET /session/context-snapshots/{contextHash} (the `GetSessionContextSnapshot` operationId).
func (*Client) GetSessionPromptSnapshot ¶ added in v0.4.0
func (c *Client) GetSessionPromptSnapshot(ctx context.Context, promptHash PromptHash, params *GetSessionPromptSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)
GetSessionPromptSnapshot Read a prompt snapshot referenced by this session
Corresponds with GET /session/prompt-snapshots/{promptHash} (the `GetSessionPromptSnapshot` operationId).
func (*Client) ListExecutionProfiles ¶ added in v0.8.0
func (c *Client) ListExecutionProfiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListExecutionProfiles List the execution profiles a client may name
Lists the operator-defined profiles a session may run under. A client names a profile when it opens a workspace and never sends an image, mount, network setting, or capability. A profile that grants host-root-equivalent access carries a capability warning.
Corresponds with GET /execution-profiles (the `ListExecutionProfiles` operationId).
func (*Client) ListMessages ¶
func (c *Client) ListMessages(ctx context.Context, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListMessages List stored conversation messages
Corresponds with GET /messages (the `ListMessages` operationId).
func (*Client) ListModels ¶ added in v0.12.0
func (c *Client) ListModels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListModels List models discovered from configured connections
Lists the non-secret model metadata Peen confirmed at controller startup. A model's name is the exact connection/model reference a WebSocket message.send frame may use for its one-turn model override.
Corresponds with GET /models (the `ListModels` operationId).
func (*Client) ListSessionAgentRunCompactions ¶ added in v0.11.0
func (c *Client) ListSessionAgentRunCompactions(ctx context.Context, agentRunId AgentRunID, params *ListSessionAgentRunCompactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessionAgentRunCompactions List one child agent run's compaction lineage
Corresponds with GET /session/agents/{agentRunId}/compactions (the `ListSessionAgentRunCompactions` operationId).
func (*Client) ListSessionAgentRunEvents ¶
func (c *Client) ListSessionAgentRunEvents(ctx context.Context, agentRunId AgentRunID, params *ListSessionAgentRunEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessionAgentRunEvents Follow what one child agent run is doing
Corresponds with GET /session/agents/{agentRunId}/events (the `ListSessionAgentRunEvents` operationId).
func (*Client) ListSessionAgentRunMessages ¶ added in v0.11.0
func (c *Client) ListSessionAgentRunMessages(ctx context.Context, agentRunId AgentRunID, params *ListSessionAgentRunMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessionAgentRunMessages List one child agent run's own durable transcript
A child agent runs a separate model context, so its transcript is stored apart from the session transcript and is never absorbed by a parent-session compaction.
Corresponds with GET /session/agents/{agentRunId}/messages (the `ListSessionAgentRunMessages` operationId).
func (*Client) ListSessionAgentRuns ¶
func (c *Client) ListSessionAgentRuns(ctx context.Context, params *ListSessionAgentRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessionAgentRuns List the child agent runs this session has started
Corresponds with GET /session/agents (the `ListSessionAgentRuns` operationId).
func (*Client) ListSessionCompactions ¶ added in v0.4.0
func (c *Client) ListSessionCompactions(ctx context.Context, params *ListSessionCompactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessionCompactions List durable compaction records
Corresponds with GET /session/compactions (the `ListSessionCompactions` operationId).
func (*Client) ListSessionEvents ¶
func (c *Client) ListSessionEvents(ctx context.Context, params *ListSessionEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessionEvents List durable protocol events
Corresponds with GET /session/events (the `ListSessionEvents` operationId).
func (*Client) ListSessionJobSignalRequests ¶ added in v0.4.0
func (c *Client) ListSessionJobSignalRequests(ctx context.Context, jobId JobID, params *ListSessionJobSignalRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessionJobSignalRequests List the durable signal-request history for one job
Corresponds with GET /session/jobs/{jobId}/signals (the `ListSessionJobSignalRequests` operationId).
func (*Client) ListSessionJobs ¶
func (c *Client) ListSessionJobs(ctx context.Context, params *ListSessionJobsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessionJobs List the commands this session has started
Corresponds with GET /session/jobs (the `ListSessionJobs` operationId).
func (*Client) ListSessionModelRunCalls ¶ added in v0.4.0
func (c *Client) ListSessionModelRunCalls(ctx context.Context, modelRunId ModelRunID, params *ListSessionModelRunCallsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessionModelRunCalls Read every provider round for one model invocation
Corresponds with GET /session/model-runs/{modelRunId}/calls (the `ListSessionModelRunCalls` operationId).
func (*Client) ListSessionModelRuns ¶ added in v0.4.0
func (c *Client) ListSessionModelRuns(ctx context.Context, params *ListSessionModelRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessionModelRuns List complete durable model invocations
Corresponds with GET /session/model-runs (the `ListSessionModelRuns` operationId).
func (*Client) ListSessionNotices ¶ added in v0.4.0
func (c *Client) ListSessionNotices(ctx context.Context, params *ListSessionNoticesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessionNotices List durable outside and worker notices
Corresponds with GET /session/notices (the `ListSessionNotices` operationId).
func (*Client) ListSessionProfileDecisions ¶ added in v0.8.0
func (c *Client) ListSessionProfileDecisions(ctx context.Context, params *ListSessionProfileDecisionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessionProfileDecisions List one session's execution profile decision history
Returns the durable record of every execution profile change made to one session, newest first. Each entry names the profile the session moved from, the profile it moved to, and the reason the caller gave.
Corresponds with GET /session/profile-decisions (the `ListSessionProfileDecisions` operationId).
func (*Client) ListSessionTurns ¶ added in v0.4.0
func (c *Client) ListSessionTurns(ctx context.Context, params *ListSessionTurnsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessionTurns List durable turns
Corresponds with GET /session/turns (the `ListSessionTurns` operationId).
func (*Client) ListSessionWorkers ¶ added in v0.8.0
func (c *Client) ListSessionWorkers(ctx context.Context, params *ListSessionWorkersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessionWorkers List one session's worker generations
Returns the durable worker generations for one session, newest first. A generation records the worker process that ran a set of turns, the profile revision it started under, and for a Docker generation its container and repository image digest when one is available.
Corresponds with GET /session/workers (the `ListSessionWorkers` operationId).
func (*Client) ListSessions ¶ added in v0.8.0
func (c *Client) ListSessions(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSessions List durable workspace sessions
Lists every session this control surface holds. It takes no session header because it is how a client discovers which sessions exist.
Corresponds with GET /sessions (the `ListSessions` operationId).
func (*Client) ListWorkspaceRoots ¶ added in v0.13.0
func (c *Client) ListWorkspaceRoots(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListWorkspaceRoots List workspace roots this controller may open
Lists the operator-configured workspace roots available to this authenticated control surface. A client selects one of these roots when it opens its first session instead of guessing a host path. This is the deliberate, authenticated disclosure of the controller's workspace boundary; rejected workspace opens still disclose no roots.
Corresponds with GET /workspace-roots (the `ListWorkspaceRoots` operationId).
func (*Client) OpenSession ¶ added in v0.8.0
func (c *Client) OpenSession(ctx context.Context, body OpenSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
OpenSession Open or resume the session for a workspace
Resolves a workspace path to its one durable session, creating that session the first time the directory is opened. This is the only operation that creates a session, so a control surface starts with none and a client must name the workspace it wants. Opening the same directory again, by any of its names, resumes the existing session. A path outside every configured workspace root is refused with 403 and no session is created. A path beneath a configured root whose directory does not exist returns 404 WORKSPACE_NOT_FOUND.
Takes a body of the `application/json` content type.
Corresponds with POST /sessions/open (the `OpenSession` operationId).
func (*Client) OpenSessionWithBody ¶ added in v0.8.0
func (c *Client) OpenSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
OpenSessionWithBody Open or resume the session for a workspace
Resolves a workspace path to its one durable session, creating that session the first time the directory is opened. This is the only operation that creates a session, so a control surface starts with none and a client must name the workspace it wants. Opening the same directory again, by any of its names, resumes the existing session. A path outside every configured workspace root is refused with 403 and no session is created. A path beneath a configured root whose directory does not exist returns 404 WORKSPACE_NOT_FOUND.
Takes any type of body and a specified content type.
Corresponds with POST /sessions/open (the `OpenSession` operationId).
func (*Client) PublishSessionNotice ¶ added in v0.4.0
func (c *Client) PublishSessionNotice(ctx context.Context, params *PublishSessionNoticeParams, body PublishSessionNoticeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
PublishSessionNotice Report a durable notice to the session
Takes a body of the `application/json` content type.
Corresponds with POST /session/notices (the `PublishSessionNotice` operationId).
func (*Client) PublishSessionNoticeWithBody ¶ added in v0.4.0
func (c *Client) PublishSessionNoticeWithBody(ctx context.Context, params *PublishSessionNoticeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PublishSessionNoticeWithBody Report a durable notice to the session
Takes any type of body and a specified content type.
Corresponds with POST /session/notices (the `PublishSessionNotice` operationId).
func (*Client) ReadSessionJobOutput ¶
func (c *Client) ReadSessionJobOutput(ctx context.Context, jobId JobID, params *ReadSessionJobOutputParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ReadSessionJobOutput Read a bounded window of one job's output
Corresponds with GET /session/jobs/{jobId}/output (the `ReadSessionJobOutput` operationId).
func (*Client) ReconfigureSession ¶ added in v0.8.0
func (c *Client) ReconfigureSession(ctx context.Context, params *ReconfigureSessionParams, body ReconfigureSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
ReconfigureSession Move an idle session to a different execution profile
Changes the operator-defined profile a session's tools run under and records the decision with the caller's reason. The named profile must be one the operator defined; an undefined name is refused with 403. A session with a turn in flight is refused with 409, because changing the environment under running work would attribute that turn's tool calls to a profile that did not run them. On success the session's current worker is stopped, so the next turn starts a new generation under the new profile. The client names only a profile and never sends an image, mount, network setting, or capability.
Takes a body of the `application/json` content type.
Corresponds with POST /session/reconfigure (the `ReconfigureSession` operationId).
func (*Client) ReconfigureSessionWithBody ¶ added in v0.8.0
func (c *Client) ReconfigureSessionWithBody(ctx context.Context, params *ReconfigureSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReconfigureSessionWithBody Move an idle session to a different execution profile
Changes the operator-defined profile a session's tools run under and records the decision with the caller's reason. The named profile must be one the operator defined; an undefined name is refused with 403. A session with a turn in flight is refused with 409, because changing the environment under running work would attribute that turn's tool calls to a profile that did not run them. On success the session's current worker is stopped, so the next turn starts a new generation under the new profile. The client names only a profile and never sends an image, mount, network setting, or capability.
Takes any type of body and a specified content type.
Corresponds with POST /session/reconfigure (the `ReconfigureSession` operationId).
func (*Client) SignalSessionJob ¶
func (c *Client) SignalSessionJob(ctx context.Context, jobId JobID, params *SignalSessionJobParams, body SignalSessionJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SignalSessionJob Stop one running job
Takes a body of the `application/json` content type.
Corresponds with POST /session/jobs/{jobId}/signal (the `SignalSessionJob` operationId).
func (*Client) SignalSessionJobWithBody ¶
func (c *Client) SignalSessionJobWithBody(ctx context.Context, jobId JobID, params *SignalSessionJobParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SignalSessionJobWithBody Stop one running job
Takes any type of body and a specified content type.
Corresponds with POST /session/jobs/{jobId}/signal (the `SignalSessionJob` operationId).
type ClientInterface ¶
type ClientInterface interface {
// ListExecutionProfiles List the execution profiles a client may name
//
// Lists the operator-defined profiles a session may run under. A client names a profile when it opens a workspace and never sends an image, mount, network setting, or capability. A profile that grants host-root-equivalent access carries a capability warning.
//
// Corresponds with GET /execution-profiles (the `ListExecutionProfiles` operationId).
ListExecutionProfiles(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMessages List stored conversation messages
//
// Corresponds with GET /messages (the `ListMessages` operationId).
ListMessages(ctx context.Context, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListModels List models discovered from configured connections
//
// Lists the non-secret model metadata Peen confirmed at controller startup. A model's name is the exact connection/model reference a WebSocket message.send frame may use for its one-turn model override.
//
// Corresponds with GET /models (the `ListModels` operationId).
ListModels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSession Read session details
//
// Corresponds with GET /session (the `GetSession` operationId).
GetSession(ctx context.Context, params *GetSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessionAgentRuns List the child agent runs this session has started
//
// Corresponds with GET /session/agents (the `ListSessionAgentRuns` operationId).
ListSessionAgentRuns(ctx context.Context, params *ListSessionAgentRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSessionAgentRun Read one durable child agent run
//
// Corresponds with GET /session/agents/{agentRunId} (the `GetSessionAgentRun` operationId).
GetSessionAgentRun(ctx context.Context, agentRunId AgentRunID, params *GetSessionAgentRunParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CancelSessionAgentRun Cancel one child agent run without ending its parent turn
//
// Corresponds with POST /session/agents/{agentRunId}/cancel (the `CancelSessionAgentRun` operationId).
CancelSessionAgentRun(ctx context.Context, agentRunId AgentRunID, params *CancelSessionAgentRunParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessionAgentRunCompactions List one child agent run's compaction lineage
//
// Corresponds with GET /session/agents/{agentRunId}/compactions (the `ListSessionAgentRunCompactions` operationId).
ListSessionAgentRunCompactions(ctx context.Context, agentRunId AgentRunID, params *ListSessionAgentRunCompactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSessionAgentRunCompaction Read one immutable child compaction record
//
// Corresponds with GET /session/agents/{agentRunId}/compactions/{compactionId} (the `GetSessionAgentRunCompaction` operationId).
GetSessionAgentRunCompaction(ctx context.Context, agentRunId AgentRunID, compactionId CompactionID, params *GetSessionAgentRunCompactionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessionAgentRunEvents Follow what one child agent run is doing
//
// Corresponds with GET /session/agents/{agentRunId}/events (the `ListSessionAgentRunEvents` operationId).
ListSessionAgentRunEvents(ctx context.Context, agentRunId AgentRunID, params *ListSessionAgentRunEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessionAgentRunMessages List one child agent run's own durable transcript
//
// A child agent runs a separate model context, so its transcript is stored apart from the session transcript and is never absorbed by a parent-session compaction.
//
// Corresponds with GET /session/agents/{agentRunId}/messages (the `ListSessionAgentRunMessages` operationId).
ListSessionAgentRunMessages(ctx context.Context, agentRunId AgentRunID, params *ListSessionAgentRunMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CancelSession Request cancellation for the active turn
//
// Corresponds with POST /session/cancel (the `CancelSession` operationId).
CancelSession(ctx context.Context, params *CancelSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessionCompactions List durable compaction records
//
// Corresponds with GET /session/compactions (the `ListSessionCompactions` operationId).
ListSessionCompactions(ctx context.Context, params *ListSessionCompactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSessionCompaction Read one durable compaction record
//
// Corresponds with GET /session/compactions/{compactionId} (the `GetSessionCompaction` operationId).
GetSessionCompaction(ctx context.Context, compactionId CompactionID, params *GetSessionCompactionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSessionContextSnapshot Read a context snapshot referenced by this session
//
// Corresponds with GET /session/context-snapshots/{contextHash} (the `GetSessionContextSnapshot` operationId).
GetSessionContextSnapshot(ctx context.Context, contextHash ContextHash, params *GetSessionContextSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessionEvents List durable protocol events
//
// Corresponds with GET /session/events (the `ListSessionEvents` operationId).
ListSessionEvents(ctx context.Context, params *ListSessionEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessionJobs List the commands this session has started
//
// Corresponds with GET /session/jobs (the `ListSessionJobs` operationId).
ListSessionJobs(ctx context.Context, params *ListSessionJobsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReadSessionJobOutput Read a bounded window of one job's output
//
// Corresponds with GET /session/jobs/{jobId}/output (the `ReadSessionJobOutput` operationId).
ReadSessionJobOutput(ctx context.Context, jobId JobID, params *ReadSessionJobOutputParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SignalSessionJobWithBody Stop one running job
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /session/jobs/{jobId}/signal (the `SignalSessionJob` operationId).
SignalSessionJobWithBody(ctx context.Context, jobId JobID, params *SignalSessionJobParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SignalSessionJob Stop one running job
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /session/jobs/{jobId}/signal (the `SignalSessionJob` operationId).
SignalSessionJob(ctx context.Context, jobId JobID, params *SignalSessionJobParams, body SignalSessionJobJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessionJobSignalRequests List the durable signal-request history for one job
//
// Corresponds with GET /session/jobs/{jobId}/signals (the `ListSessionJobSignalRequests` operationId).
ListSessionJobSignalRequests(ctx context.Context, jobId JobID, params *ListSessionJobSignalRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessionModelRuns List complete durable model invocations
//
// Corresponds with GET /session/model-runs (the `ListSessionModelRuns` operationId).
ListSessionModelRuns(ctx context.Context, params *ListSessionModelRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessionModelRunCalls Read every provider round for one model invocation
//
// Corresponds with GET /session/model-runs/{modelRunId}/calls (the `ListSessionModelRunCalls` operationId).
ListSessionModelRunCalls(ctx context.Context, modelRunId ModelRunID, params *ListSessionModelRunCallsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessionNotices List durable outside and worker notices
//
// Corresponds with GET /session/notices (the `ListSessionNotices` operationId).
ListSessionNotices(ctx context.Context, params *ListSessionNoticesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PublishSessionNoticeWithBody Report a durable notice to the session
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /session/notices (the `PublishSessionNotice` operationId).
PublishSessionNoticeWithBody(ctx context.Context, params *PublishSessionNoticeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// PublishSessionNotice Report a durable notice to the session
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /session/notices (the `PublishSessionNotice` operationId).
PublishSessionNotice(ctx context.Context, params *PublishSessionNoticeParams, body PublishSessionNoticeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessionProfileDecisions List one session's execution profile decision history
//
// Returns the durable record of every execution profile change made to one session, newest first. Each entry names the profile the session moved from, the profile it moved to, and the reason the caller gave.
//
// Corresponds with GET /session/profile-decisions (the `ListSessionProfileDecisions` operationId).
ListSessionProfileDecisions(ctx context.Context, params *ListSessionProfileDecisionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSessionPromptSnapshot Read a prompt snapshot referenced by this session
//
// Corresponds with GET /session/prompt-snapshots/{promptHash} (the `GetSessionPromptSnapshot` operationId).
GetSessionPromptSnapshot(ctx context.Context, promptHash PromptHash, params *GetSessionPromptSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReconfigureSessionWithBody Move an idle session to a different execution profile
//
// Changes the operator-defined profile a session's tools run under and records the decision with the caller's reason. The named profile must be one the operator defined; an undefined name is refused with 403. A session with a turn in flight is refused with 409, because changing the environment under running work would attribute that turn's tool calls to a profile that did not run them. On success the session's current worker is stopped, so the next turn starts a new generation under the new profile. The client names only a profile and never sends an image, mount, network setting, or capability.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /session/reconfigure (the `ReconfigureSession` operationId).
ReconfigureSessionWithBody(ctx context.Context, params *ReconfigureSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReconfigureSession Move an idle session to a different execution profile
//
// Changes the operator-defined profile a session's tools run under and records the decision with the caller's reason. The named profile must be one the operator defined; an undefined name is refused with 403. A session with a turn in flight is refused with 409, because changing the environment under running work would attribute that turn's tool calls to a profile that did not run them. On success the session's current worker is stopped, so the next turn starts a new generation under the new profile. The client names only a profile and never sends an image, mount, network setting, or capability.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /session/reconfigure (the `ReconfigureSession` operationId).
ReconfigureSession(ctx context.Context, params *ReconfigureSessionParams, body ReconfigureSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessionTurns List durable turns
//
// Corresponds with GET /session/turns (the `ListSessionTurns` operationId).
ListSessionTurns(ctx context.Context, params *ListSessionTurnsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessionWorkers List one session's worker generations
//
// Returns the durable worker generations for one session, newest first. A generation records the worker process that ran a set of turns, the profile revision it started under, and for a Docker generation its container and repository image digest when one is available.
//
// Corresponds with GET /session/workers (the `ListSessionWorkers` operationId).
ListSessionWorkers(ctx context.Context, params *ListSessionWorkersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSessions List durable workspace sessions
//
// Lists every session this control surface holds. It takes no session header because it is how a client discovers which sessions exist.
//
// Corresponds with GET /sessions (the `ListSessions` operationId).
ListSessions(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// OpenSessionWithBody Open or resume the session for a workspace
//
// Resolves a workspace path to its one durable session, creating that session the first time the directory is opened. This is the only operation that creates a session, so a control surface starts with none and a client must name the workspace it wants. Opening the same directory again, by any of its names, resumes the existing session. A path outside every configured workspace root is refused with 403 and no session is created. A path beneath a configured root whose directory does not exist returns 404 WORKSPACE_NOT_FOUND.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /sessions/open (the `OpenSession` operationId).
OpenSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// OpenSession Open or resume the session for a workspace
//
// Resolves a workspace path to its one durable session, creating that session the first time the directory is opened. This is the only operation that creates a session, so a control surface starts with none and a client must name the workspace it wants. Opening the same directory again, by any of its names, resumes the existing session. A path outside every configured workspace root is refused with 403 and no session is created. A path beneath a configured root whose directory does not exist returns 404 WORKSPACE_NOT_FOUND.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /sessions/open (the `OpenSession` operationId).
OpenSession(ctx context.Context, body OpenSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListWorkspaceRoots List workspace roots this controller may open
//
// Lists the operator-configured workspace roots available to this authenticated control surface. A client selects one of these roots when it opens its first session instead of guessing a host path. This is the deliberate, authenticated disclosure of the controller's workspace boundary; rejected workspace opens still disclose no roots.
//
// Corresponds with GET /workspace-roots (the `ListWorkspaceRoots` operationId).
ListWorkspaceRoots(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CancelSessionAgentRunWithResponse ¶
func (c *ClientWithResponses) CancelSessionAgentRunWithResponse(ctx context.Context, agentRunId AgentRunID, params *CancelSessionAgentRunParams, reqEditors ...RequestEditorFn) (*CancelSessionAgentRunResponse, error)
CancelSessionAgentRunWithResponse Cancel one child agent run without ending its parent turn
Returns a wrapper object for the known response body format(s).
Corresponds with POST /session/agents/{agentRunId}/cancel (the `CancelSessionAgentRun` operationId).
func (*ClientWithResponses) CancelSessionWithResponse ¶
func (c *ClientWithResponses) CancelSessionWithResponse(ctx context.Context, params *CancelSessionParams, reqEditors ...RequestEditorFn) (*CancelSessionResponse, error)
CancelSessionWithResponse Request cancellation for the active turn
Returns a wrapper object for the known response body format(s).
Corresponds with POST /session/cancel (the `CancelSession` operationId).
func (*ClientWithResponses) GetSessionAgentRunCompactionWithResponse ¶ added in v0.11.0
func (c *ClientWithResponses) GetSessionAgentRunCompactionWithResponse(ctx context.Context, agentRunId AgentRunID, compactionId CompactionID, params *GetSessionAgentRunCompactionParams, reqEditors ...RequestEditorFn) (*GetSessionAgentRunCompactionResponse, error)
GetSessionAgentRunCompactionWithResponse Read one immutable child compaction record
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/agents/{agentRunId}/compactions/{compactionId} (the `GetSessionAgentRunCompaction` operationId).
func (*ClientWithResponses) GetSessionAgentRunWithResponse ¶ added in v0.4.0
func (c *ClientWithResponses) GetSessionAgentRunWithResponse(ctx context.Context, agentRunId AgentRunID, params *GetSessionAgentRunParams, reqEditors ...RequestEditorFn) (*GetSessionAgentRunResponse, error)
GetSessionAgentRunWithResponse Read one durable child agent run
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/agents/{agentRunId} (the `GetSessionAgentRun` operationId).
func (*ClientWithResponses) GetSessionCompactionWithResponse ¶ added in v0.4.0
func (c *ClientWithResponses) GetSessionCompactionWithResponse(ctx context.Context, compactionId CompactionID, params *GetSessionCompactionParams, reqEditors ...RequestEditorFn) (*GetSessionCompactionResponse, error)
GetSessionCompactionWithResponse Read one durable compaction record
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/compactions/{compactionId} (the `GetSessionCompaction` operationId).
func (*ClientWithResponses) GetSessionContextSnapshotWithResponse ¶ added in v0.4.0
func (c *ClientWithResponses) GetSessionContextSnapshotWithResponse(ctx context.Context, contextHash ContextHash, params *GetSessionContextSnapshotParams, reqEditors ...RequestEditorFn) (*GetSessionContextSnapshotResponse, error)
GetSessionContextSnapshotWithResponse Read a context snapshot referenced by this session
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/context-snapshots/{contextHash} (the `GetSessionContextSnapshot` operationId).
func (*ClientWithResponses) GetSessionPromptSnapshotWithResponse ¶ added in v0.4.0
func (c *ClientWithResponses) GetSessionPromptSnapshotWithResponse(ctx context.Context, promptHash PromptHash, params *GetSessionPromptSnapshotParams, reqEditors ...RequestEditorFn) (*GetSessionPromptSnapshotResponse, error)
GetSessionPromptSnapshotWithResponse Read a prompt snapshot referenced by this session
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/prompt-snapshots/{promptHash} (the `GetSessionPromptSnapshot` operationId).
func (*ClientWithResponses) GetSessionWithResponse ¶
func (c *ClientWithResponses) GetSessionWithResponse(ctx context.Context, params *GetSessionParams, reqEditors ...RequestEditorFn) (*GetSessionResponse, error)
GetSessionWithResponse Read session details
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session (the `GetSession` operationId).
func (*ClientWithResponses) ListExecutionProfilesWithResponse ¶ added in v0.8.0
func (c *ClientWithResponses) ListExecutionProfilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListExecutionProfilesResponse, error)
ListExecutionProfilesWithResponse List the execution profiles a client may name
Lists the operator-defined profiles a session may run under. A client names a profile when it opens a workspace and never sends an image, mount, network setting, or capability. A profile that grants host-root-equivalent access carries a capability warning.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /execution-profiles (the `ListExecutionProfiles` operationId).
func (*ClientWithResponses) ListMessagesWithResponse ¶
func (c *ClientWithResponses) ListMessagesWithResponse(ctx context.Context, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*ListMessagesResponse, error)
ListMessagesWithResponse List stored conversation messages
Returns a wrapper object for the known response body format(s).
Corresponds with GET /messages (the `ListMessages` operationId).
func (*ClientWithResponses) ListModelsWithResponse ¶ added in v0.12.0
func (c *ClientWithResponses) ListModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListModelsResponse, error)
ListModelsWithResponse List models discovered from configured connections
Lists the non-secret model metadata Peen confirmed at controller startup. A model's name is the exact connection/model reference a WebSocket message.send frame may use for its one-turn model override.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /models (the `ListModels` operationId).
func (*ClientWithResponses) ListSessionAgentRunCompactionsWithResponse ¶ added in v0.11.0
func (c *ClientWithResponses) ListSessionAgentRunCompactionsWithResponse(ctx context.Context, agentRunId AgentRunID, params *ListSessionAgentRunCompactionsParams, reqEditors ...RequestEditorFn) (*ListSessionAgentRunCompactionsResponse, error)
ListSessionAgentRunCompactionsWithResponse List one child agent run's compaction lineage
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/agents/{agentRunId}/compactions (the `ListSessionAgentRunCompactions` operationId).
func (*ClientWithResponses) ListSessionAgentRunEventsWithResponse ¶
func (c *ClientWithResponses) ListSessionAgentRunEventsWithResponse(ctx context.Context, agentRunId AgentRunID, params *ListSessionAgentRunEventsParams, reqEditors ...RequestEditorFn) (*ListSessionAgentRunEventsResponse, error)
ListSessionAgentRunEventsWithResponse Follow what one child agent run is doing
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/agents/{agentRunId}/events (the `ListSessionAgentRunEvents` operationId).
func (*ClientWithResponses) ListSessionAgentRunMessagesWithResponse ¶ added in v0.11.0
func (c *ClientWithResponses) ListSessionAgentRunMessagesWithResponse(ctx context.Context, agentRunId AgentRunID, params *ListSessionAgentRunMessagesParams, reqEditors ...RequestEditorFn) (*ListSessionAgentRunMessagesResponse, error)
ListSessionAgentRunMessagesWithResponse List one child agent run's own durable transcript
A child agent runs a separate model context, so its transcript is stored apart from the session transcript and is never absorbed by a parent-session compaction.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/agents/{agentRunId}/messages (the `ListSessionAgentRunMessages` operationId).
func (*ClientWithResponses) ListSessionAgentRunsWithResponse ¶
func (c *ClientWithResponses) ListSessionAgentRunsWithResponse(ctx context.Context, params *ListSessionAgentRunsParams, reqEditors ...RequestEditorFn) (*ListSessionAgentRunsResponse, error)
ListSessionAgentRunsWithResponse List the child agent runs this session has started
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/agents (the `ListSessionAgentRuns` operationId).
func (*ClientWithResponses) ListSessionCompactionsWithResponse ¶ added in v0.4.0
func (c *ClientWithResponses) ListSessionCompactionsWithResponse(ctx context.Context, params *ListSessionCompactionsParams, reqEditors ...RequestEditorFn) (*ListSessionCompactionsResponse, error)
ListSessionCompactionsWithResponse List durable compaction records
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/compactions (the `ListSessionCompactions` operationId).
func (*ClientWithResponses) ListSessionEventsWithResponse ¶
func (c *ClientWithResponses) ListSessionEventsWithResponse(ctx context.Context, params *ListSessionEventsParams, reqEditors ...RequestEditorFn) (*ListSessionEventsResponse, error)
ListSessionEventsWithResponse List durable protocol events
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/events (the `ListSessionEvents` operationId).
func (*ClientWithResponses) ListSessionJobSignalRequestsWithResponse ¶ added in v0.4.0
func (c *ClientWithResponses) ListSessionJobSignalRequestsWithResponse(ctx context.Context, jobId JobID, params *ListSessionJobSignalRequestsParams, reqEditors ...RequestEditorFn) (*ListSessionJobSignalRequestsResponse, error)
ListSessionJobSignalRequestsWithResponse List the durable signal-request history for one job
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/jobs/{jobId}/signals (the `ListSessionJobSignalRequests` operationId).
func (*ClientWithResponses) ListSessionJobsWithResponse ¶
func (c *ClientWithResponses) ListSessionJobsWithResponse(ctx context.Context, params *ListSessionJobsParams, reqEditors ...RequestEditorFn) (*ListSessionJobsResponse, error)
ListSessionJobsWithResponse List the commands this session has started
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/jobs (the `ListSessionJobs` operationId).
func (*ClientWithResponses) ListSessionModelRunCallsWithResponse ¶ added in v0.4.0
func (c *ClientWithResponses) ListSessionModelRunCallsWithResponse(ctx context.Context, modelRunId ModelRunID, params *ListSessionModelRunCallsParams, reqEditors ...RequestEditorFn) (*ListSessionModelRunCallsResponse, error)
ListSessionModelRunCallsWithResponse Read every provider round for one model invocation
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/model-runs/{modelRunId}/calls (the `ListSessionModelRunCalls` operationId).
func (*ClientWithResponses) ListSessionModelRunsWithResponse ¶ added in v0.4.0
func (c *ClientWithResponses) ListSessionModelRunsWithResponse(ctx context.Context, params *ListSessionModelRunsParams, reqEditors ...RequestEditorFn) (*ListSessionModelRunsResponse, error)
ListSessionModelRunsWithResponse List complete durable model invocations
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/model-runs (the `ListSessionModelRuns` operationId).
func (*ClientWithResponses) ListSessionNoticesWithResponse ¶ added in v0.4.0
func (c *ClientWithResponses) ListSessionNoticesWithResponse(ctx context.Context, params *ListSessionNoticesParams, reqEditors ...RequestEditorFn) (*ListSessionNoticesResponse, error)
ListSessionNoticesWithResponse List durable outside and worker notices
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/notices (the `ListSessionNotices` operationId).
func (*ClientWithResponses) ListSessionProfileDecisionsWithResponse ¶ added in v0.8.0
func (c *ClientWithResponses) ListSessionProfileDecisionsWithResponse(ctx context.Context, params *ListSessionProfileDecisionsParams, reqEditors ...RequestEditorFn) (*ListSessionProfileDecisionsResponse, error)
ListSessionProfileDecisionsWithResponse List one session's execution profile decision history
Returns the durable record of every execution profile change made to one session, newest first. Each entry names the profile the session moved from, the profile it moved to, and the reason the caller gave.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/profile-decisions (the `ListSessionProfileDecisions` operationId).
func (*ClientWithResponses) ListSessionTurnsWithResponse ¶ added in v0.4.0
func (c *ClientWithResponses) ListSessionTurnsWithResponse(ctx context.Context, params *ListSessionTurnsParams, reqEditors ...RequestEditorFn) (*ListSessionTurnsResponse, error)
ListSessionTurnsWithResponse List durable turns
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/turns (the `ListSessionTurns` operationId).
func (*ClientWithResponses) ListSessionWorkersWithResponse ¶ added in v0.8.0
func (c *ClientWithResponses) ListSessionWorkersWithResponse(ctx context.Context, params *ListSessionWorkersParams, reqEditors ...RequestEditorFn) (*ListSessionWorkersResponse, error)
ListSessionWorkersWithResponse List one session's worker generations
Returns the durable worker generations for one session, newest first. A generation records the worker process that ran a set of turns, the profile revision it started under, and for a Docker generation its container and repository image digest when one is available.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/workers (the `ListSessionWorkers` operationId).
func (*ClientWithResponses) ListSessionsWithResponse ¶ added in v0.8.0
func (c *ClientWithResponses) ListSessionsWithResponse(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*ListSessionsResponse, error)
ListSessionsWithResponse List durable workspace sessions
Lists every session this control surface holds. It takes no session header because it is how a client discovers which sessions exist.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /sessions (the `ListSessions` operationId).
func (*ClientWithResponses) ListWorkspaceRootsWithResponse ¶ added in v0.13.0
func (c *ClientWithResponses) ListWorkspaceRootsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListWorkspaceRootsResponse, error)
ListWorkspaceRootsWithResponse List workspace roots this controller may open
Lists the operator-configured workspace roots available to this authenticated control surface. A client selects one of these roots when it opens its first session instead of guessing a host path. This is the deliberate, authenticated disclosure of the controller's workspace boundary; rejected workspace opens still disclose no roots.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /workspace-roots (the `ListWorkspaceRoots` operationId).
func (*ClientWithResponses) OpenSessionWithBodyWithResponse ¶ added in v0.8.0
func (c *ClientWithResponses) OpenSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OpenSessionResponse, error)
OpenSessionWithBodyWithResponse Open or resume the session for a workspace
Resolves a workspace path to its one durable session, creating that session the first time the directory is opened. This is the only operation that creates a session, so a control surface starts with none and a client must name the workspace it wants. Opening the same directory again, by any of its names, resumes the existing session. A path outside every configured workspace root is refused with 403 and no session is created. A path beneath a configured root whose directory does not exist returns 404 WORKSPACE_NOT_FOUND.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /sessions/open (the `OpenSession` operationId).
func (*ClientWithResponses) OpenSessionWithResponse ¶ added in v0.8.0
func (c *ClientWithResponses) OpenSessionWithResponse(ctx context.Context, body OpenSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*OpenSessionResponse, error)
OpenSessionWithResponse Open or resume the session for a workspace
Resolves a workspace path to its one durable session, creating that session the first time the directory is opened. This is the only operation that creates a session, so a control surface starts with none and a client must name the workspace it wants. Opening the same directory again, by any of its names, resumes the existing session. A path outside every configured workspace root is refused with 403 and no session is created. A path beneath a configured root whose directory does not exist returns 404 WORKSPACE_NOT_FOUND.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /sessions/open (the `OpenSession` operationId).
func (*ClientWithResponses) PublishSessionNoticeWithBodyWithResponse ¶ added in v0.4.0
func (c *ClientWithResponses) PublishSessionNoticeWithBodyWithResponse(ctx context.Context, params *PublishSessionNoticeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PublishSessionNoticeResponse, error)
PublishSessionNoticeWithBodyWithResponse Report a durable notice to the session
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /session/notices (the `PublishSessionNotice` operationId).
func (*ClientWithResponses) PublishSessionNoticeWithResponse ¶ added in v0.4.0
func (c *ClientWithResponses) PublishSessionNoticeWithResponse(ctx context.Context, params *PublishSessionNoticeParams, body PublishSessionNoticeJSONRequestBody, reqEditors ...RequestEditorFn) (*PublishSessionNoticeResponse, error)
PublishSessionNoticeWithResponse Report a durable notice to the session
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /session/notices (the `PublishSessionNotice` operationId).
func (*ClientWithResponses) ReadSessionJobOutputWithResponse ¶
func (c *ClientWithResponses) ReadSessionJobOutputWithResponse(ctx context.Context, jobId JobID, params *ReadSessionJobOutputParams, reqEditors ...RequestEditorFn) (*ReadSessionJobOutputResponse, error)
ReadSessionJobOutputWithResponse Read a bounded window of one job's output
Returns a wrapper object for the known response body format(s).
Corresponds with GET /session/jobs/{jobId}/output (the `ReadSessionJobOutput` operationId).
func (*ClientWithResponses) ReconfigureSessionWithBodyWithResponse ¶ added in v0.8.0
func (c *ClientWithResponses) ReconfigureSessionWithBodyWithResponse(ctx context.Context, params *ReconfigureSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReconfigureSessionResponse, error)
ReconfigureSessionWithBodyWithResponse Move an idle session to a different execution profile
Changes the operator-defined profile a session's tools run under and records the decision with the caller's reason. The named profile must be one the operator defined; an undefined name is refused with 403. A session with a turn in flight is refused with 409, because changing the environment under running work would attribute that turn's tool calls to a profile that did not run them. On success the session's current worker is stopped, so the next turn starts a new generation under the new profile. The client names only a profile and never sends an image, mount, network setting, or capability.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /session/reconfigure (the `ReconfigureSession` operationId).
func (*ClientWithResponses) ReconfigureSessionWithResponse ¶ added in v0.8.0
func (c *ClientWithResponses) ReconfigureSessionWithResponse(ctx context.Context, params *ReconfigureSessionParams, body ReconfigureSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*ReconfigureSessionResponse, error)
ReconfigureSessionWithResponse Move an idle session to a different execution profile
Changes the operator-defined profile a session's tools run under and records the decision with the caller's reason. The named profile must be one the operator defined; an undefined name is refused with 403. A session with a turn in flight is refused with 409, because changing the environment under running work would attribute that turn's tool calls to a profile that did not run them. On success the session's current worker is stopped, so the next turn starts a new generation under the new profile. The client names only a profile and never sends an image, mount, network setting, or capability.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /session/reconfigure (the `ReconfigureSession` operationId).
func (*ClientWithResponses) SignalSessionJobWithBodyWithResponse ¶
func (c *ClientWithResponses) SignalSessionJobWithBodyWithResponse(ctx context.Context, jobId JobID, params *SignalSessionJobParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SignalSessionJobResponse, error)
SignalSessionJobWithBodyWithResponse Stop one running job
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /session/jobs/{jobId}/signal (the `SignalSessionJob` operationId).
func (*ClientWithResponses) SignalSessionJobWithResponse ¶
func (c *ClientWithResponses) SignalSessionJobWithResponse(ctx context.Context, jobId JobID, params *SignalSessionJobParams, body SignalSessionJobJSONRequestBody, reqEditors ...RequestEditorFn) (*SignalSessionJobResponse, error)
SignalSessionJobWithResponse Stop one running job
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /session/jobs/{jobId}/signal (the `SignalSessionJob` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListExecutionProfilesWithResponse List the execution profiles a client may name
//
// Lists the operator-defined profiles a session may run under. A client names a profile when it opens a workspace and never sends an image, mount, network setting, or capability. A profile that grants host-root-equivalent access carries a capability warning.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /execution-profiles (the `ListExecutionProfiles` operationId).
ListExecutionProfilesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListExecutionProfilesResponse, error)
// ListMessagesWithResponse List stored conversation messages
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /messages (the `ListMessages` operationId).
ListMessagesWithResponse(ctx context.Context, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*ListMessagesResponse, error)
// ListModelsWithResponse List models discovered from configured connections
//
// Lists the non-secret model metadata Peen confirmed at controller startup. A model's name is the exact connection/model reference a WebSocket message.send frame may use for its one-turn model override.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /models (the `ListModels` operationId).
ListModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListModelsResponse, error)
// GetSessionWithResponse Read session details
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session (the `GetSession` operationId).
GetSessionWithResponse(ctx context.Context, params *GetSessionParams, reqEditors ...RequestEditorFn) (*GetSessionResponse, error)
// ListSessionAgentRunsWithResponse List the child agent runs this session has started
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/agents (the `ListSessionAgentRuns` operationId).
ListSessionAgentRunsWithResponse(ctx context.Context, params *ListSessionAgentRunsParams, reqEditors ...RequestEditorFn) (*ListSessionAgentRunsResponse, error)
// GetSessionAgentRunWithResponse Read one durable child agent run
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/agents/{agentRunId} (the `GetSessionAgentRun` operationId).
GetSessionAgentRunWithResponse(ctx context.Context, agentRunId AgentRunID, params *GetSessionAgentRunParams, reqEditors ...RequestEditorFn) (*GetSessionAgentRunResponse, error)
// CancelSessionAgentRunWithResponse Cancel one child agent run without ending its parent turn
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /session/agents/{agentRunId}/cancel (the `CancelSessionAgentRun` operationId).
CancelSessionAgentRunWithResponse(ctx context.Context, agentRunId AgentRunID, params *CancelSessionAgentRunParams, reqEditors ...RequestEditorFn) (*CancelSessionAgentRunResponse, error)
// ListSessionAgentRunCompactionsWithResponse List one child agent run's compaction lineage
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/agents/{agentRunId}/compactions (the `ListSessionAgentRunCompactions` operationId).
ListSessionAgentRunCompactionsWithResponse(ctx context.Context, agentRunId AgentRunID, params *ListSessionAgentRunCompactionsParams, reqEditors ...RequestEditorFn) (*ListSessionAgentRunCompactionsResponse, error)
// GetSessionAgentRunCompactionWithResponse Read one immutable child compaction record
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/agents/{agentRunId}/compactions/{compactionId} (the `GetSessionAgentRunCompaction` operationId).
GetSessionAgentRunCompactionWithResponse(ctx context.Context, agentRunId AgentRunID, compactionId CompactionID, params *GetSessionAgentRunCompactionParams, reqEditors ...RequestEditorFn) (*GetSessionAgentRunCompactionResponse, error)
// ListSessionAgentRunEventsWithResponse Follow what one child agent run is doing
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/agents/{agentRunId}/events (the `ListSessionAgentRunEvents` operationId).
ListSessionAgentRunEventsWithResponse(ctx context.Context, agentRunId AgentRunID, params *ListSessionAgentRunEventsParams, reqEditors ...RequestEditorFn) (*ListSessionAgentRunEventsResponse, error)
// ListSessionAgentRunMessagesWithResponse List one child agent run's own durable transcript
//
// A child agent runs a separate model context, so its transcript is stored apart from the session transcript and is never absorbed by a parent-session compaction.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/agents/{agentRunId}/messages (the `ListSessionAgentRunMessages` operationId).
ListSessionAgentRunMessagesWithResponse(ctx context.Context, agentRunId AgentRunID, params *ListSessionAgentRunMessagesParams, reqEditors ...RequestEditorFn) (*ListSessionAgentRunMessagesResponse, error)
// CancelSessionWithResponse Request cancellation for the active turn
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /session/cancel (the `CancelSession` operationId).
CancelSessionWithResponse(ctx context.Context, params *CancelSessionParams, reqEditors ...RequestEditorFn) (*CancelSessionResponse, error)
// ListSessionCompactionsWithResponse List durable compaction records
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/compactions (the `ListSessionCompactions` operationId).
ListSessionCompactionsWithResponse(ctx context.Context, params *ListSessionCompactionsParams, reqEditors ...RequestEditorFn) (*ListSessionCompactionsResponse, error)
// GetSessionCompactionWithResponse Read one durable compaction record
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/compactions/{compactionId} (the `GetSessionCompaction` operationId).
GetSessionCompactionWithResponse(ctx context.Context, compactionId CompactionID, params *GetSessionCompactionParams, reqEditors ...RequestEditorFn) (*GetSessionCompactionResponse, error)
// GetSessionContextSnapshotWithResponse Read a context snapshot referenced by this session
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/context-snapshots/{contextHash} (the `GetSessionContextSnapshot` operationId).
GetSessionContextSnapshotWithResponse(ctx context.Context, contextHash ContextHash, params *GetSessionContextSnapshotParams, reqEditors ...RequestEditorFn) (*GetSessionContextSnapshotResponse, error)
// ListSessionEventsWithResponse List durable protocol events
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/events (the `ListSessionEvents` operationId).
ListSessionEventsWithResponse(ctx context.Context, params *ListSessionEventsParams, reqEditors ...RequestEditorFn) (*ListSessionEventsResponse, error)
// ListSessionJobsWithResponse List the commands this session has started
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/jobs (the `ListSessionJobs` operationId).
ListSessionJobsWithResponse(ctx context.Context, params *ListSessionJobsParams, reqEditors ...RequestEditorFn) (*ListSessionJobsResponse, error)
// ReadSessionJobOutputWithResponse Read a bounded window of one job's output
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/jobs/{jobId}/output (the `ReadSessionJobOutput` operationId).
ReadSessionJobOutputWithResponse(ctx context.Context, jobId JobID, params *ReadSessionJobOutputParams, reqEditors ...RequestEditorFn) (*ReadSessionJobOutputResponse, error)
// SignalSessionJobWithBodyWithResponse Stop one running job
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /session/jobs/{jobId}/signal (the `SignalSessionJob` operationId).
SignalSessionJobWithBodyWithResponse(ctx context.Context, jobId JobID, params *SignalSessionJobParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SignalSessionJobResponse, error)
// SignalSessionJobWithResponse Stop one running job
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /session/jobs/{jobId}/signal (the `SignalSessionJob` operationId).
SignalSessionJobWithResponse(ctx context.Context, jobId JobID, params *SignalSessionJobParams, body SignalSessionJobJSONRequestBody, reqEditors ...RequestEditorFn) (*SignalSessionJobResponse, error)
// ListSessionJobSignalRequestsWithResponse List the durable signal-request history for one job
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/jobs/{jobId}/signals (the `ListSessionJobSignalRequests` operationId).
ListSessionJobSignalRequestsWithResponse(ctx context.Context, jobId JobID, params *ListSessionJobSignalRequestsParams, reqEditors ...RequestEditorFn) (*ListSessionJobSignalRequestsResponse, error)
// ListSessionModelRunsWithResponse List complete durable model invocations
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/model-runs (the `ListSessionModelRuns` operationId).
ListSessionModelRunsWithResponse(ctx context.Context, params *ListSessionModelRunsParams, reqEditors ...RequestEditorFn) (*ListSessionModelRunsResponse, error)
// ListSessionModelRunCallsWithResponse Read every provider round for one model invocation
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/model-runs/{modelRunId}/calls (the `ListSessionModelRunCalls` operationId).
ListSessionModelRunCallsWithResponse(ctx context.Context, modelRunId ModelRunID, params *ListSessionModelRunCallsParams, reqEditors ...RequestEditorFn) (*ListSessionModelRunCallsResponse, error)
// ListSessionNoticesWithResponse List durable outside and worker notices
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/notices (the `ListSessionNotices` operationId).
ListSessionNoticesWithResponse(ctx context.Context, params *ListSessionNoticesParams, reqEditors ...RequestEditorFn) (*ListSessionNoticesResponse, error)
// PublishSessionNoticeWithBodyWithResponse Report a durable notice to the session
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /session/notices (the `PublishSessionNotice` operationId).
PublishSessionNoticeWithBodyWithResponse(ctx context.Context, params *PublishSessionNoticeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PublishSessionNoticeResponse, error)
// PublishSessionNoticeWithResponse Report a durable notice to the session
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /session/notices (the `PublishSessionNotice` operationId).
PublishSessionNoticeWithResponse(ctx context.Context, params *PublishSessionNoticeParams, body PublishSessionNoticeJSONRequestBody, reqEditors ...RequestEditorFn) (*PublishSessionNoticeResponse, error)
// ListSessionProfileDecisionsWithResponse List one session's execution profile decision history
//
// Returns the durable record of every execution profile change made to one session, newest first. Each entry names the profile the session moved from, the profile it moved to, and the reason the caller gave.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/profile-decisions (the `ListSessionProfileDecisions` operationId).
ListSessionProfileDecisionsWithResponse(ctx context.Context, params *ListSessionProfileDecisionsParams, reqEditors ...RequestEditorFn) (*ListSessionProfileDecisionsResponse, error)
// GetSessionPromptSnapshotWithResponse Read a prompt snapshot referenced by this session
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/prompt-snapshots/{promptHash} (the `GetSessionPromptSnapshot` operationId).
GetSessionPromptSnapshotWithResponse(ctx context.Context, promptHash PromptHash, params *GetSessionPromptSnapshotParams, reqEditors ...RequestEditorFn) (*GetSessionPromptSnapshotResponse, error)
// ReconfigureSessionWithBodyWithResponse Move an idle session to a different execution profile
//
// Changes the operator-defined profile a session's tools run under and records the decision with the caller's reason. The named profile must be one the operator defined; an undefined name is refused with 403. A session with a turn in flight is refused with 409, because changing the environment under running work would attribute that turn's tool calls to a profile that did not run them. On success the session's current worker is stopped, so the next turn starts a new generation under the new profile. The client names only a profile and never sends an image, mount, network setting, or capability.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /session/reconfigure (the `ReconfigureSession` operationId).
ReconfigureSessionWithBodyWithResponse(ctx context.Context, params *ReconfigureSessionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReconfigureSessionResponse, error)
// ReconfigureSessionWithResponse Move an idle session to a different execution profile
//
// Changes the operator-defined profile a session's tools run under and records the decision with the caller's reason. The named profile must be one the operator defined; an undefined name is refused with 403. A session with a turn in flight is refused with 409, because changing the environment under running work would attribute that turn's tool calls to a profile that did not run them. On success the session's current worker is stopped, so the next turn starts a new generation under the new profile. The client names only a profile and never sends an image, mount, network setting, or capability.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /session/reconfigure (the `ReconfigureSession` operationId).
ReconfigureSessionWithResponse(ctx context.Context, params *ReconfigureSessionParams, body ReconfigureSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*ReconfigureSessionResponse, error)
// ListSessionTurnsWithResponse List durable turns
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/turns (the `ListSessionTurns` operationId).
ListSessionTurnsWithResponse(ctx context.Context, params *ListSessionTurnsParams, reqEditors ...RequestEditorFn) (*ListSessionTurnsResponse, error)
// ListSessionWorkersWithResponse List one session's worker generations
//
// Returns the durable worker generations for one session, newest first. A generation records the worker process that ran a set of turns, the profile revision it started under, and for a Docker generation its container and repository image digest when one is available.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /session/workers (the `ListSessionWorkers` operationId).
ListSessionWorkersWithResponse(ctx context.Context, params *ListSessionWorkersParams, reqEditors ...RequestEditorFn) (*ListSessionWorkersResponse, error)
// ListSessionsWithResponse List durable workspace sessions
//
// Lists every session this control surface holds. It takes no session header because it is how a client discovers which sessions exist.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /sessions (the `ListSessions` operationId).
ListSessionsWithResponse(ctx context.Context, params *ListSessionsParams, reqEditors ...RequestEditorFn) (*ListSessionsResponse, error)
// OpenSessionWithBodyWithResponse Open or resume the session for a workspace
//
// Resolves a workspace path to its one durable session, creating that session the first time the directory is opened. This is the only operation that creates a session, so a control surface starts with none and a client must name the workspace it wants. Opening the same directory again, by any of its names, resumes the existing session. A path outside every configured workspace root is refused with 403 and no session is created. A path beneath a configured root whose directory does not exist returns 404 WORKSPACE_NOT_FOUND.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /sessions/open (the `OpenSession` operationId).
OpenSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OpenSessionResponse, error)
// OpenSessionWithResponse Open or resume the session for a workspace
//
// Resolves a workspace path to its one durable session, creating that session the first time the directory is opened. This is the only operation that creates a session, so a control surface starts with none and a client must name the workspace it wants. Opening the same directory again, by any of its names, resumes the existing session. A path outside every configured workspace root is refused with 403 and no session is created. A path beneath a configured root whose directory does not exist returns 404 WORKSPACE_NOT_FOUND.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /sessions/open (the `OpenSession` operationId).
OpenSessionWithResponse(ctx context.Context, body OpenSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*OpenSessionResponse, error)
// ListWorkspaceRootsWithResponse List workspace roots this controller may open
//
// Lists the operator-configured workspace roots available to this authenticated control surface. A client selects one of these roots when it opens its first session instead of guessing a host path. This is the deliberate, authenticated disclosure of the controller's workspace boundary; rejected workspace opens still disclose no roots.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /workspace-roots (the `ListWorkspaceRoots` operationId).
ListWorkspaceRootsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListWorkspaceRootsResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Compaction ¶ added in v0.4.0
type Compaction struct {
CreatedAt time.Time `json:"createdAt"`
FromMessageId openapi_types.UUID `json:"fromMessageId"`
FromSequence int64 `json:"fromSequence"`
Id openapi_types.UUID `json:"id"`
InputTokenCount int64 `json:"inputTokenCount"`
Model string `json:"model"`
ParentCompactionId *openapi_types.UUID `json:"parentCompactionId,omitempty"`
PromptHash string `json:"promptHash"`
SessionId openapi_types.UUID `json:"sessionId"`
SourceMessageCount int64 `json:"sourceMessageCount"`
Summary string `json:"summary"`
SummaryTokenCount int64 `json:"summaryTokenCount"`
ToMessageId openapi_types.UUID `json:"toMessageId"`
ToSequence int64 `json:"toSequence"`
}
Compaction defines model for Compaction.
type CompactionID ¶ added in v0.4.0
type CompactionID = openapi_types.UUID
CompactionID defines model for CompactionID.
type CompactionPage ¶ added in v0.4.0
type CompactionPage struct {
Compactions []Compaction `json:"compactions"`
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
CompactionPage defines model for CompactionPage.
type ContextHash ¶ added in v0.4.0
type ContextHash = string
ContextHash defines model for ContextHash.
type ContextManifestEntry ¶ added in v0.8.0
type ContextManifestEntry struct {
Hash string `json:"hash"`
Kind string `json:"kind"`
Name string `json:"name"`
Priority int32 `json:"priority"`
Source string `json:"source"`
}
ContextManifestEntry defines model for ContextManifestEntry.
type ContextSnapshot ¶ added in v0.4.0
type ContextSnapshot struct {
CreatedAt time.Time `json:"createdAt"`
Hash string `json:"hash"`
// Manifest The layered sources this context was assembled from, in resolution order. It is a list because the harness contributes one entry per file from the filesystem root down to the workspace, and the same name may appear at more than one layer.
Manifest []ContextManifestEntry `json:"manifest"`
ResolvedContent string `json:"resolvedContent"`
}
ContextSnapshot defines model for ContextSnapshot.
type Error ¶
type Error struct {
Code string `json:"code"`
Details *map[string]interface{} `json:"details,omitempty"`
Message string `json:"message"`
}
Error defines model for Error.
type ErrorBadRequest ¶
type ErrorBadRequest = Error
ErrorBadRequest defines model for ErrorBadRequest.
type ErrorForbidden ¶ added in v0.8.0
type ErrorForbidden = Error
ErrorForbidden defines model for ErrorForbidden.
type ErrorUnauthorized ¶
type ErrorUnauthorized = Error
ErrorUnauthorized defines model for ErrorUnauthorized.
type ExecutionProfile ¶ added in v0.8.0
type ExecutionProfile struct {
AllowDockerSocket bool `json:"allowDockerSocket"`
AllowNetwork bool `json:"allowNetwork"`
AllowPrivilegeEscalation bool `json:"allowPrivilegeEscalation"`
// CapabilityWarning Operator-facing warning for a host-root-equivalent profile. Empty for a profile that grants no such access.
CapabilityWarning *string `json:"capabilityWarning,omitempty"`
// HostRootEquivalent True when this profile grants access that is effectively host root, such as a writable Docker socket.
HostRootEquivalent bool `json:"hostRootEquivalent"`
Kind ExecutionProfileKind `json:"kind"`
Name string `json:"name"`
Revision int64 `json:"revision"`
}
ExecutionProfile defines model for ExecutionProfile.
type ExecutionProfileKind ¶ added in v0.8.0
type ExecutionProfileKind string
ExecutionProfileKind defines model for ExecutionProfile.Kind.
const ( ExecutionProfileKindDocker ExecutionProfileKind = "docker" ExecutionProfileKindNative ExecutionProfileKind = "native" )
Defines values for ExecutionProfileKind.
func (ExecutionProfileKind) Valid ¶ added in v0.8.0
func (e ExecutionProfileKind) Valid() bool
Valid indicates whether the value is a known member of the ExecutionProfileKind enum.
type ExecutionProfileList ¶ added in v0.8.0
type ExecutionProfileList struct {
// Default The profile a session opened without naming one uses.
Default string `json:"default"`
Items []ExecutionProfile `json:"items"`
}
ExecutionProfileList defines model for ExecutionProfileList.
type GetSessionAgentRunCompactionParams ¶ added in v0.11.0
type GetSessionAgentRunCompactionParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
GetSessionAgentRunCompactionParams defines parameters for GetSessionAgentRunCompaction.
type GetSessionAgentRunCompactionResponse ¶ added in v0.11.0
type GetSessionAgentRunCompactionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AgentRunCompaction
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetSessionAgentRunCompactionResponse200Headers
}
func ParseGetSessionAgentRunCompactionResponse ¶ added in v0.11.0
func ParseGetSessionAgentRunCompactionResponse(rsp *http.Response) (*GetSessionAgentRunCompactionResponse, error)
ParseGetSessionAgentRunCompactionResponse parses an HTTP response from a GetSessionAgentRunCompactionWithResponse call
func (GetSessionAgentRunCompactionResponse) ContentType ¶ added in v0.11.0
func (r GetSessionAgentRunCompactionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSessionAgentRunCompactionResponse) GetBody ¶ added in v0.11.0
func (r GetSessionAgentRunCompactionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSessionAgentRunCompactionResponse) GetJSON200 ¶ added in v0.11.0
func (r GetSessionAgentRunCompactionResponse) GetJSON200() *AgentRunCompaction
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetSessionAgentRunCompactionResponse) GetJSON400 ¶ added in v0.11.0
func (r GetSessionAgentRunCompactionResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetSessionAgentRunCompactionResponse) GetJSON401 ¶ added in v0.11.0
func (r GetSessionAgentRunCompactionResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetSessionAgentRunCompactionResponse) GetJSON404 ¶ added in v0.11.0
func (r GetSessionAgentRunCompactionResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetSessionAgentRunCompactionResponse) GetJSON500 ¶ added in v0.11.0
func (r GetSessionAgentRunCompactionResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetSessionAgentRunCompactionResponse) Status ¶ added in v0.11.0
func (r GetSessionAgentRunCompactionResponse) Status() string
Status returns HTTPResponse.Status
func (GetSessionAgentRunCompactionResponse) StatusCode ¶ added in v0.11.0
func (r GetSessionAgentRunCompactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSessionAgentRunCompactionResponse200Headers ¶ added in v0.11.0
type GetSessionAgentRunCompactionResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
GetSessionAgentRunCompactionResponse200Headers the declared response headers of an HTTP 200 response for GetSessionAgentRunCompaction
type GetSessionAgentRunParams ¶ added in v0.4.0
type GetSessionAgentRunParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
GetSessionAgentRunParams defines parameters for GetSessionAgentRun.
type GetSessionAgentRunResponse ¶ added in v0.4.0
type GetSessionAgentRunResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AgentRun
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetSessionAgentRunResponse200Headers
}
func ParseGetSessionAgentRunResponse ¶ added in v0.4.0
func ParseGetSessionAgentRunResponse(rsp *http.Response) (*GetSessionAgentRunResponse, error)
ParseGetSessionAgentRunResponse parses an HTTP response from a GetSessionAgentRunWithResponse call
func (GetSessionAgentRunResponse) ContentType ¶ added in v0.4.0
func (r GetSessionAgentRunResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSessionAgentRunResponse) GetBody ¶ added in v0.4.0
func (r GetSessionAgentRunResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSessionAgentRunResponse) GetJSON200 ¶ added in v0.4.0
func (r GetSessionAgentRunResponse) GetJSON200() *AgentRun
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetSessionAgentRunResponse) GetJSON400 ¶ added in v0.4.0
func (r GetSessionAgentRunResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetSessionAgentRunResponse) GetJSON401 ¶ added in v0.4.0
func (r GetSessionAgentRunResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetSessionAgentRunResponse) GetJSON404 ¶ added in v0.4.0
func (r GetSessionAgentRunResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetSessionAgentRunResponse) GetJSON500 ¶ added in v0.4.0
func (r GetSessionAgentRunResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetSessionAgentRunResponse) Status ¶ added in v0.4.0
func (r GetSessionAgentRunResponse) Status() string
Status returns HTTPResponse.Status
func (GetSessionAgentRunResponse) StatusCode ¶ added in v0.4.0
func (r GetSessionAgentRunResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSessionAgentRunResponse200Headers ¶ added in v0.4.0
type GetSessionAgentRunResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
GetSessionAgentRunResponse200Headers the declared response headers of an HTTP 200 response for GetSessionAgentRun
type GetSessionCompactionParams ¶ added in v0.4.0
type GetSessionCompactionParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
GetSessionCompactionParams defines parameters for GetSessionCompaction.
type GetSessionCompactionResponse ¶ added in v0.4.0
type GetSessionCompactionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Compaction
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetSessionCompactionResponse200Headers
}
func ParseGetSessionCompactionResponse ¶ added in v0.4.0
func ParseGetSessionCompactionResponse(rsp *http.Response) (*GetSessionCompactionResponse, error)
ParseGetSessionCompactionResponse parses an HTTP response from a GetSessionCompactionWithResponse call
func (GetSessionCompactionResponse) ContentType ¶ added in v0.4.0
func (r GetSessionCompactionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSessionCompactionResponse) GetBody ¶ added in v0.4.0
func (r GetSessionCompactionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSessionCompactionResponse) GetJSON200 ¶ added in v0.4.0
func (r GetSessionCompactionResponse) GetJSON200() *Compaction
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetSessionCompactionResponse) GetJSON400 ¶ added in v0.4.0
func (r GetSessionCompactionResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetSessionCompactionResponse) GetJSON401 ¶ added in v0.4.0
func (r GetSessionCompactionResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetSessionCompactionResponse) GetJSON404 ¶ added in v0.4.0
func (r GetSessionCompactionResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetSessionCompactionResponse) GetJSON500 ¶ added in v0.4.0
func (r GetSessionCompactionResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetSessionCompactionResponse) Status ¶ added in v0.4.0
func (r GetSessionCompactionResponse) Status() string
Status returns HTTPResponse.Status
func (GetSessionCompactionResponse) StatusCode ¶ added in v0.4.0
func (r GetSessionCompactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSessionCompactionResponse200Headers ¶ added in v0.4.0
type GetSessionCompactionResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
GetSessionCompactionResponse200Headers the declared response headers of an HTTP 200 response for GetSessionCompaction
type GetSessionContextSnapshotParams ¶ added in v0.4.0
type GetSessionContextSnapshotParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
GetSessionContextSnapshotParams defines parameters for GetSessionContextSnapshot.
type GetSessionContextSnapshotResponse ¶ added in v0.4.0
type GetSessionContextSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ContextSnapshot
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetSessionContextSnapshotResponse200Headers
}
func ParseGetSessionContextSnapshotResponse ¶ added in v0.4.0
func ParseGetSessionContextSnapshotResponse(rsp *http.Response) (*GetSessionContextSnapshotResponse, error)
ParseGetSessionContextSnapshotResponse parses an HTTP response from a GetSessionContextSnapshotWithResponse call
func (GetSessionContextSnapshotResponse) ContentType ¶ added in v0.4.0
func (r GetSessionContextSnapshotResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSessionContextSnapshotResponse) GetBody ¶ added in v0.4.0
func (r GetSessionContextSnapshotResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSessionContextSnapshotResponse) GetJSON200 ¶ added in v0.4.0
func (r GetSessionContextSnapshotResponse) GetJSON200() *ContextSnapshot
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetSessionContextSnapshotResponse) GetJSON400 ¶ added in v0.4.0
func (r GetSessionContextSnapshotResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetSessionContextSnapshotResponse) GetJSON401 ¶ added in v0.4.0
func (r GetSessionContextSnapshotResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetSessionContextSnapshotResponse) GetJSON404 ¶ added in v0.4.0
func (r GetSessionContextSnapshotResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetSessionContextSnapshotResponse) GetJSON500 ¶ added in v0.4.0
func (r GetSessionContextSnapshotResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetSessionContextSnapshotResponse) Status ¶ added in v0.4.0
func (r GetSessionContextSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (GetSessionContextSnapshotResponse) StatusCode ¶ added in v0.4.0
func (r GetSessionContextSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSessionContextSnapshotResponse200Headers ¶ added in v0.4.0
type GetSessionContextSnapshotResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
GetSessionContextSnapshotResponse200Headers the declared response headers of an HTTP 200 response for GetSessionContextSnapshot
type GetSessionParams ¶
type GetSessionParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
GetSessionParams defines parameters for GetSession.
type GetSessionPromptSnapshotParams ¶ added in v0.4.0
type GetSessionPromptSnapshotParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
GetSessionPromptSnapshotParams defines parameters for GetSessionPromptSnapshot.
type GetSessionPromptSnapshotResponse ¶ added in v0.4.0
type GetSessionPromptSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PromptSnapshot
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetSessionPromptSnapshotResponse200Headers
}
func ParseGetSessionPromptSnapshotResponse ¶ added in v0.4.0
func ParseGetSessionPromptSnapshotResponse(rsp *http.Response) (*GetSessionPromptSnapshotResponse, error)
ParseGetSessionPromptSnapshotResponse parses an HTTP response from a GetSessionPromptSnapshotWithResponse call
func (GetSessionPromptSnapshotResponse) ContentType ¶ added in v0.4.0
func (r GetSessionPromptSnapshotResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSessionPromptSnapshotResponse) GetBody ¶ added in v0.4.0
func (r GetSessionPromptSnapshotResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSessionPromptSnapshotResponse) GetJSON200 ¶ added in v0.4.0
func (r GetSessionPromptSnapshotResponse) GetJSON200() *PromptSnapshot
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetSessionPromptSnapshotResponse) GetJSON400 ¶ added in v0.4.0
func (r GetSessionPromptSnapshotResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetSessionPromptSnapshotResponse) GetJSON401 ¶ added in v0.4.0
func (r GetSessionPromptSnapshotResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetSessionPromptSnapshotResponse) GetJSON404 ¶ added in v0.4.0
func (r GetSessionPromptSnapshotResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetSessionPromptSnapshotResponse) GetJSON500 ¶ added in v0.4.0
func (r GetSessionPromptSnapshotResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetSessionPromptSnapshotResponse) Status ¶ added in v0.4.0
func (r GetSessionPromptSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (GetSessionPromptSnapshotResponse) StatusCode ¶ added in v0.4.0
func (r GetSessionPromptSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSessionPromptSnapshotResponse200Headers ¶ added in v0.4.0
type GetSessionPromptSnapshotResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
GetSessionPromptSnapshotResponse200Headers the declared response headers of an HTTP 200 response for GetSessionPromptSnapshot
type GetSessionResponse ¶
type GetSessionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Session
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetSessionResponse200Headers
}
func ParseGetSessionResponse ¶
func ParseGetSessionResponse(rsp *http.Response) (*GetSessionResponse, error)
ParseGetSessionResponse parses an HTTP response from a GetSessionWithResponse call
func (GetSessionResponse) ContentType ¶
func (r GetSessionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSessionResponse) GetBody ¶
func (r GetSessionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetSessionResponse) GetJSON200 ¶
func (r GetSessionResponse) GetJSON200() *Session
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetSessionResponse) GetJSON400 ¶
func (r GetSessionResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetSessionResponse) GetJSON401 ¶
func (r GetSessionResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetSessionResponse) GetJSON404 ¶
func (r GetSessionResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetSessionResponse) GetJSON500 ¶
func (r GetSessionResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (GetSessionResponse) Status ¶
func (r GetSessionResponse) Status() string
Status returns HTTPResponse.Status
func (GetSessionResponse) StatusCode ¶
func (r GetSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSessionResponse200Headers ¶
type GetSessionResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
GetSessionResponse200Headers the declared response headers of an HTTP 200 response for GetSession
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Job ¶
type Job struct {
Command string `json:"command"`
Directory string `json:"directory"`
EndedAt *time.Time `json:"endedAt,omitempty"`
// ExitCode Exit status once known, or -1 while it is not.
ExitCode int64 `json:"exitCode"`
// FailureDetail Empty unless Peen recorded a terminal failure detail.
FailureDetail string `json:"failureDetail"`
JobId openapi_types.UUID `json:"jobId"`
// Pid Operating-system process ID of the job's shell.
Pid int64 `json:"pid"`
// Purpose Why the agent said it was running this command.
Purpose string `json:"purpose"`
SessionId openapi_types.UUID `json:"sessionId"`
StartedAt time.Time `json:"startedAt"`
State JobState `json:"state"`
// ToolCallId The tool call that started this job.
ToolCallId *string `json:"toolCallId,omitempty"`
// TurnId The durable turn that launched this process.
TurnId openapi_types.UUID `json:"turnId"`
// WorkerGenerationId Worker generation that launched this process.
WorkerGenerationId *string `json:"workerGenerationId,omitempty"`
}
Job defines model for Job.
type JobOutput ¶
type JobOutput struct {
HasMore bool `json:"hasMore"`
JobId openapi_types.UUID `json:"jobId"`
// Lines Ordered immutable stdout and stderr records from SQLite.
Lines []JobOutputLine `json:"lines"`
// NextCursor Pass back as cursor to continue from this durable sequence.
NextCursor int64 `json:"nextCursor"`
State JobOutputState `json:"state"`
}
JobOutput defines model for JobOutput.
type JobOutputLine ¶ added in v0.4.0
type JobOutputLine struct {
Content string `json:"content"`
CreatedAt time.Time `json:"createdAt"`
Id openapi_types.UUID `json:"id"`
JobId openapi_types.UUID `json:"jobId"`
Sequence int64 `json:"sequence"`
SessionId openapi_types.UUID `json:"sessionId"`
Stream JobOutputLineStream `json:"stream"`
}
JobOutputLine defines model for JobOutputLine.
type JobOutputLineStream ¶ added in v0.4.0
type JobOutputLineStream string
JobOutputLineStream defines model for JobOutputLine.Stream.
const ( JobOutputLineStreamStderr JobOutputLineStream = "stderr" JobOutputLineStreamStdout JobOutputLineStream = "stdout" )
Defines values for JobOutputLineStream.
func (JobOutputLineStream) Valid ¶ added in v0.4.0
func (e JobOutputLineStream) Valid() bool
Valid indicates whether the value is a known member of the JobOutputLineStream enum.
type JobOutputState ¶
type JobOutputState string
JobOutputState defines model for JobOutput.State.
const ( JobOutputStateExited JobOutputState = "exited" JobOutputStateFailed JobOutputState = "failed" JobOutputStateInterrupted JobOutputState = "interrupted" JobOutputStateRunning JobOutputState = "running" JobOutputStateSignalled JobOutputState = "signalled" )
Defines values for JobOutputState.
func (JobOutputState) Valid ¶
func (e JobOutputState) Valid() bool
Valid indicates whether the value is a known member of the JobOutputState enum.
type JobPage ¶
type JobPage struct {
HasMore bool `json:"hasMore"`
Jobs []Job `json:"jobs"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
JobPage defines model for JobPage.
type JobSignalRecord ¶ added in v0.4.0
type JobSignalRecord struct {
Accepted bool `json:"accepted"`
Id openapi_types.UUID `json:"id"`
JobId openapi_types.UUID `json:"jobId"`
RequestedAt time.Time `json:"requestedAt"`
SessionId openapi_types.UUID `json:"sessionId"`
Signal JobSignalRecordSignal `json:"signal"`
StateAtRequest JobSignalRecordStateAtRequest `json:"stateAtRequest"`
}
JobSignalRecord defines model for JobSignalRecord.
type JobSignalRecordPage ¶ added in v0.4.0
type JobSignalRecordPage struct {
HasMore bool `json:"hasMore"`
Job Job `json:"job"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
SignalRequests []JobSignalRecord `json:"signalRequests"`
}
JobSignalRecordPage defines model for JobSignalRecordPage.
type JobSignalRecordSignal ¶ added in v0.4.0
type JobSignalRecordSignal string
JobSignalRecordSignal defines model for JobSignalRecord.Signal.
const ( JobSignalRecordSignalKill JobSignalRecordSignal = "kill" JobSignalRecordSignalStop JobSignalRecordSignal = "stop" )
Defines values for JobSignalRecordSignal.
func (JobSignalRecordSignal) Valid ¶ added in v0.4.0
func (e JobSignalRecordSignal) Valid() bool
Valid indicates whether the value is a known member of the JobSignalRecordSignal enum.
type JobSignalRecordStateAtRequest ¶ added in v0.4.0
type JobSignalRecordStateAtRequest string
JobSignalRecordStateAtRequest defines model for JobSignalRecord.StateAtRequest.
const ( JobSignalRecordStateAtRequestExited JobSignalRecordStateAtRequest = "exited" JobSignalRecordStateAtRequestFailed JobSignalRecordStateAtRequest = "failed" JobSignalRecordStateAtRequestInterrupted JobSignalRecordStateAtRequest = "interrupted" JobSignalRecordStateAtRequestRunning JobSignalRecordStateAtRequest = "running" JobSignalRecordStateAtRequestSignalled JobSignalRecordStateAtRequest = "signalled" )
Defines values for JobSignalRecordStateAtRequest.
func (JobSignalRecordStateAtRequest) Valid ¶ added in v0.4.0
func (e JobSignalRecordStateAtRequest) Valid() bool
Valid indicates whether the value is a known member of the JobSignalRecordStateAtRequest enum.
type JobSignalRequest ¶
type JobSignalRequest struct {
// Signal stop sends SIGTERM to the process group then escalates to SIGKILL. kill goes straight to SIGKILL.
Signal JobSignalRequestSignal `json:"signal"`
}
JobSignalRequest defines model for JobSignalRequest.
type JobSignalRequestSignal ¶
type JobSignalRequestSignal string
JobSignalRequestSignal stop sends SIGTERM to the process group then escalates to SIGKILL. kill goes straight to SIGKILL.
const ( JobSignalRequestSignalKill JobSignalRequestSignal = "kill" JobSignalRequestSignalStop JobSignalRequestSignal = "stop" )
Defines values for JobSignalRequestSignal.
func (JobSignalRequestSignal) Valid ¶
func (e JobSignalRequestSignal) Valid() bool
Valid indicates whether the value is a known member of the JobSignalRequestSignal enum.
type JobSignalResponse ¶
type JobSignalResponse struct {
JobId openapi_types.UUID `json:"jobId"`
// Signalled True when this request found a running job and signalled it. Signalling an unknown, exited, or already signalled job is not an error and reports false with the current state.
Signalled bool `json:"signalled"`
State JobSignalResponseState `json:"state"`
}
JobSignalResponse defines model for JobSignalResponse.
type JobSignalResponseState ¶
type JobSignalResponseState string
JobSignalResponseState defines model for JobSignalResponse.State.
const ( JobSignalResponseStateExited JobSignalResponseState = "exited" JobSignalResponseStateFailed JobSignalResponseState = "failed" JobSignalResponseStateInterrupted JobSignalResponseState = "interrupted" JobSignalResponseStateRunning JobSignalResponseState = "running" JobSignalResponseStateSignalled JobSignalResponseState = "signalled" )
Defines values for JobSignalResponseState.
func (JobSignalResponseState) Valid ¶
func (e JobSignalResponseState) Valid() bool
Valid indicates whether the value is a known member of the JobSignalResponseState enum.
type JobState ¶
type JobState string
JobState defines model for Job.State.
type ListExecutionProfilesResponse ¶ added in v0.8.0
type ListExecutionProfilesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ExecutionProfileList
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListExecutionProfilesResponse200Headers
}
func ParseListExecutionProfilesResponse ¶ added in v0.8.0
func ParseListExecutionProfilesResponse(rsp *http.Response) (*ListExecutionProfilesResponse, error)
ParseListExecutionProfilesResponse parses an HTTP response from a ListExecutionProfilesWithResponse call
func (ListExecutionProfilesResponse) ContentType ¶ added in v0.8.0
func (r ListExecutionProfilesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListExecutionProfilesResponse) GetBody ¶ added in v0.8.0
func (r ListExecutionProfilesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListExecutionProfilesResponse) GetJSON200 ¶ added in v0.8.0
func (r ListExecutionProfilesResponse) GetJSON200() *ExecutionProfileList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListExecutionProfilesResponse) GetJSON401 ¶ added in v0.8.0
func (r ListExecutionProfilesResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListExecutionProfilesResponse) GetJSON500 ¶ added in v0.8.0
func (r ListExecutionProfilesResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListExecutionProfilesResponse) Status ¶ added in v0.8.0
func (r ListExecutionProfilesResponse) Status() string
Status returns HTTPResponse.Status
func (ListExecutionProfilesResponse) StatusCode ¶ added in v0.8.0
func (r ListExecutionProfilesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListExecutionProfilesResponse200Headers ¶ added in v0.8.0
type ListExecutionProfilesResponse200Headers struct {
XRequestID openapi_types.UUID
}
ListExecutionProfilesResponse200Headers the declared response headers of an HTTP 200 response for ListExecutionProfiles
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 ListMessagesResponse ¶
type ListMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *MessagePage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListMessagesResponse200Headers
}
func ParseListMessagesResponse ¶
func ParseListMessagesResponse(rsp *http.Response) (*ListMessagesResponse, error)
ParseListMessagesResponse parses an HTTP response from a ListMessagesWithResponse call
func (ListMessagesResponse) ContentType ¶
func (r ListMessagesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListMessagesResponse) GetBody ¶
func (r ListMessagesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListMessagesResponse) GetJSON200 ¶
func (r ListMessagesResponse) GetJSON200() *MessagePage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListMessagesResponse) GetJSON400 ¶
func (r ListMessagesResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListMessagesResponse) GetJSON401 ¶
func (r ListMessagesResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListMessagesResponse) GetJSON404 ¶
func (r ListMessagesResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListMessagesResponse) GetJSON500 ¶
func (r ListMessagesResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListMessagesResponse) Status ¶
func (r ListMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (ListMessagesResponse) StatusCode ¶
func (r ListMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMessagesResponse200Headers ¶
type ListMessagesResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ListMessagesResponse200Headers the declared response headers of an HTTP 200 response for ListMessages
type ListModelsResponse ¶ added in v0.12.0
type ListModelsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ModelList
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListModelsResponse200Headers
}
func ParseListModelsResponse ¶ added in v0.12.0
func ParseListModelsResponse(rsp *http.Response) (*ListModelsResponse, error)
ParseListModelsResponse parses an HTTP response from a ListModelsWithResponse call
func (ListModelsResponse) ContentType ¶ added in v0.12.0
func (r ListModelsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListModelsResponse) GetBody ¶ added in v0.12.0
func (r ListModelsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListModelsResponse) GetJSON200 ¶ added in v0.12.0
func (r ListModelsResponse) GetJSON200() *ModelList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListModelsResponse) GetJSON401 ¶ added in v0.12.0
func (r ListModelsResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListModelsResponse) GetJSON500 ¶ added in v0.12.0
func (r ListModelsResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListModelsResponse) Status ¶ added in v0.12.0
func (r ListModelsResponse) Status() string
Status returns HTTPResponse.Status
func (ListModelsResponse) StatusCode ¶ added in v0.12.0
func (r ListModelsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListModelsResponse200Headers ¶ added in v0.12.0
type ListModelsResponse200Headers struct {
XRequestID openapi_types.UUID
}
ListModelsResponse200Headers the declared response headers of an HTTP 200 response for ListModels
type ListSessionAgentRunCompactionsParams ¶ added in v0.11.0
type ListSessionAgentRunCompactionsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionAgentRunCompactionsParams defines parameters for ListSessionAgentRunCompactions.
type ListSessionAgentRunCompactionsResponse ¶ added in v0.11.0
type ListSessionAgentRunCompactionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AgentRunCompactionPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListSessionAgentRunCompactionsResponse200Headers
}
func ParseListSessionAgentRunCompactionsResponse ¶ added in v0.11.0
func ParseListSessionAgentRunCompactionsResponse(rsp *http.Response) (*ListSessionAgentRunCompactionsResponse, error)
ParseListSessionAgentRunCompactionsResponse parses an HTTP response from a ListSessionAgentRunCompactionsWithResponse call
func (ListSessionAgentRunCompactionsResponse) ContentType ¶ added in v0.11.0
func (r ListSessionAgentRunCompactionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionAgentRunCompactionsResponse) GetBody ¶ added in v0.11.0
func (r ListSessionAgentRunCompactionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionAgentRunCompactionsResponse) GetJSON200 ¶ added in v0.11.0
func (r ListSessionAgentRunCompactionsResponse) GetJSON200() *AgentRunCompactionPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionAgentRunCompactionsResponse) GetJSON400 ¶ added in v0.11.0
func (r ListSessionAgentRunCompactionsResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionAgentRunCompactionsResponse) GetJSON401 ¶ added in v0.11.0
func (r ListSessionAgentRunCompactionsResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionAgentRunCompactionsResponse) GetJSON404 ¶ added in v0.11.0
func (r ListSessionAgentRunCompactionsResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSessionAgentRunCompactionsResponse) GetJSON500 ¶ added in v0.11.0
func (r ListSessionAgentRunCompactionsResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSessionAgentRunCompactionsResponse) Status ¶ added in v0.11.0
func (r ListSessionAgentRunCompactionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionAgentRunCompactionsResponse) StatusCode ¶ added in v0.11.0
func (r ListSessionAgentRunCompactionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSessionAgentRunCompactionsResponse200Headers ¶ added in v0.11.0
type ListSessionAgentRunCompactionsResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ListSessionAgentRunCompactionsResponse200Headers the declared response headers of an HTTP 200 response for ListSessionAgentRunCompactions
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 ListSessionAgentRunEventsResponse ¶
type ListSessionAgentRunEventsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AgentRunEventPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListSessionAgentRunEventsResponse200Headers
}
func ParseListSessionAgentRunEventsResponse ¶
func ParseListSessionAgentRunEventsResponse(rsp *http.Response) (*ListSessionAgentRunEventsResponse, error)
ParseListSessionAgentRunEventsResponse parses an HTTP response from a ListSessionAgentRunEventsWithResponse call
func (ListSessionAgentRunEventsResponse) ContentType ¶
func (r ListSessionAgentRunEventsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionAgentRunEventsResponse) GetBody ¶
func (r ListSessionAgentRunEventsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionAgentRunEventsResponse) GetJSON200 ¶
func (r ListSessionAgentRunEventsResponse) GetJSON200() *AgentRunEventPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionAgentRunEventsResponse) GetJSON400 ¶
func (r ListSessionAgentRunEventsResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionAgentRunEventsResponse) GetJSON401 ¶
func (r ListSessionAgentRunEventsResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionAgentRunEventsResponse) GetJSON404 ¶
func (r ListSessionAgentRunEventsResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSessionAgentRunEventsResponse) GetJSON500 ¶
func (r ListSessionAgentRunEventsResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSessionAgentRunEventsResponse) Status ¶
func (r ListSessionAgentRunEventsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionAgentRunEventsResponse) StatusCode ¶
func (r ListSessionAgentRunEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSessionAgentRunEventsResponse200Headers ¶
type ListSessionAgentRunEventsResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ListSessionAgentRunEventsResponse200Headers the declared response headers of an HTTP 200 response for ListSessionAgentRunEvents
type ListSessionAgentRunMessagesParams ¶ added in v0.11.0
type ListSessionAgentRunMessagesParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionAgentRunMessagesParams defines parameters for ListSessionAgentRunMessages.
type ListSessionAgentRunMessagesResponse ¶ added in v0.11.0
type ListSessionAgentRunMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AgentRunMessagePage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListSessionAgentRunMessagesResponse200Headers
}
func ParseListSessionAgentRunMessagesResponse ¶ added in v0.11.0
func ParseListSessionAgentRunMessagesResponse(rsp *http.Response) (*ListSessionAgentRunMessagesResponse, error)
ParseListSessionAgentRunMessagesResponse parses an HTTP response from a ListSessionAgentRunMessagesWithResponse call
func (ListSessionAgentRunMessagesResponse) ContentType ¶ added in v0.11.0
func (r ListSessionAgentRunMessagesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionAgentRunMessagesResponse) GetBody ¶ added in v0.11.0
func (r ListSessionAgentRunMessagesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionAgentRunMessagesResponse) GetJSON200 ¶ added in v0.11.0
func (r ListSessionAgentRunMessagesResponse) GetJSON200() *AgentRunMessagePage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionAgentRunMessagesResponse) GetJSON400 ¶ added in v0.11.0
func (r ListSessionAgentRunMessagesResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionAgentRunMessagesResponse) GetJSON401 ¶ added in v0.11.0
func (r ListSessionAgentRunMessagesResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionAgentRunMessagesResponse) GetJSON404 ¶ added in v0.11.0
func (r ListSessionAgentRunMessagesResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSessionAgentRunMessagesResponse) GetJSON500 ¶ added in v0.11.0
func (r ListSessionAgentRunMessagesResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSessionAgentRunMessagesResponse) Status ¶ added in v0.11.0
func (r ListSessionAgentRunMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionAgentRunMessagesResponse) StatusCode ¶ added in v0.11.0
func (r ListSessionAgentRunMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSessionAgentRunMessagesResponse200Headers ¶ added in v0.11.0
type ListSessionAgentRunMessagesResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ListSessionAgentRunMessagesResponse200Headers the declared response headers of an HTTP 200 response for ListSessionAgentRunMessages
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 ListSessionAgentRunsResponse ¶
type ListSessionAgentRunsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *AgentRunPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListSessionAgentRunsResponse200Headers
}
func ParseListSessionAgentRunsResponse ¶
func ParseListSessionAgentRunsResponse(rsp *http.Response) (*ListSessionAgentRunsResponse, error)
ParseListSessionAgentRunsResponse parses an HTTP response from a ListSessionAgentRunsWithResponse call
func (ListSessionAgentRunsResponse) ContentType ¶
func (r ListSessionAgentRunsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionAgentRunsResponse) GetBody ¶
func (r ListSessionAgentRunsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionAgentRunsResponse) GetJSON200 ¶
func (r ListSessionAgentRunsResponse) GetJSON200() *AgentRunPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionAgentRunsResponse) GetJSON400 ¶
func (r ListSessionAgentRunsResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionAgentRunsResponse) GetJSON401 ¶
func (r ListSessionAgentRunsResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionAgentRunsResponse) GetJSON404 ¶
func (r ListSessionAgentRunsResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSessionAgentRunsResponse) GetJSON500 ¶
func (r ListSessionAgentRunsResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSessionAgentRunsResponse) Status ¶
func (r ListSessionAgentRunsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionAgentRunsResponse) StatusCode ¶
func (r ListSessionAgentRunsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSessionAgentRunsResponse200Headers ¶
type ListSessionAgentRunsResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ListSessionAgentRunsResponse200Headers the declared response headers of an HTTP 200 response for ListSessionAgentRuns
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 ListSessionCompactionsResponse ¶ added in v0.4.0
type ListSessionCompactionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CompactionPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListSessionCompactionsResponse200Headers
}
func ParseListSessionCompactionsResponse ¶ added in v0.4.0
func ParseListSessionCompactionsResponse(rsp *http.Response) (*ListSessionCompactionsResponse, error)
ParseListSessionCompactionsResponse parses an HTTP response from a ListSessionCompactionsWithResponse call
func (ListSessionCompactionsResponse) ContentType ¶ added in v0.4.0
func (r ListSessionCompactionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionCompactionsResponse) GetBody ¶ added in v0.4.0
func (r ListSessionCompactionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionCompactionsResponse) GetJSON200 ¶ added in v0.4.0
func (r ListSessionCompactionsResponse) GetJSON200() *CompactionPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionCompactionsResponse) GetJSON400 ¶ added in v0.4.0
func (r ListSessionCompactionsResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionCompactionsResponse) GetJSON401 ¶ added in v0.4.0
func (r ListSessionCompactionsResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionCompactionsResponse) GetJSON404 ¶ added in v0.4.0
func (r ListSessionCompactionsResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSessionCompactionsResponse) GetJSON500 ¶ added in v0.4.0
func (r ListSessionCompactionsResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSessionCompactionsResponse) Status ¶ added in v0.4.0
func (r ListSessionCompactionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionCompactionsResponse) StatusCode ¶ added in v0.4.0
func (r ListSessionCompactionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSessionCompactionsResponse200Headers ¶ added in v0.4.0
type ListSessionCompactionsResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ListSessionCompactionsResponse200Headers the declared response headers of an HTTP 200 response for ListSessionCompactions
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 ListSessionEventsResponse ¶
type ListSessionEventsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TranscriptEventPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListSessionEventsResponse200Headers
}
func ParseListSessionEventsResponse ¶
func ParseListSessionEventsResponse(rsp *http.Response) (*ListSessionEventsResponse, error)
ParseListSessionEventsResponse parses an HTTP response from a ListSessionEventsWithResponse call
func (ListSessionEventsResponse) ContentType ¶
func (r ListSessionEventsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionEventsResponse) GetBody ¶
func (r ListSessionEventsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionEventsResponse) GetJSON200 ¶
func (r ListSessionEventsResponse) GetJSON200() *TranscriptEventPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionEventsResponse) GetJSON400 ¶
func (r ListSessionEventsResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionEventsResponse) GetJSON401 ¶
func (r ListSessionEventsResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionEventsResponse) GetJSON404 ¶
func (r ListSessionEventsResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSessionEventsResponse) GetJSON500 ¶
func (r ListSessionEventsResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSessionEventsResponse) Status ¶
func (r ListSessionEventsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionEventsResponse) StatusCode ¶
func (r ListSessionEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSessionEventsResponse200Headers ¶
type ListSessionEventsResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ListSessionEventsResponse200Headers the declared response headers of an HTTP 200 response for ListSessionEvents
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 ListSessionJobSignalRequestsResponse ¶ added in v0.4.0
type ListSessionJobSignalRequestsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *JobSignalRecordPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListSessionJobSignalRequestsResponse200Headers
}
func ParseListSessionJobSignalRequestsResponse ¶ added in v0.4.0
func ParseListSessionJobSignalRequestsResponse(rsp *http.Response) (*ListSessionJobSignalRequestsResponse, error)
ParseListSessionJobSignalRequestsResponse parses an HTTP response from a ListSessionJobSignalRequestsWithResponse call
func (ListSessionJobSignalRequestsResponse) ContentType ¶ added in v0.4.0
func (r ListSessionJobSignalRequestsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionJobSignalRequestsResponse) GetBody ¶ added in v0.4.0
func (r ListSessionJobSignalRequestsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionJobSignalRequestsResponse) GetJSON200 ¶ added in v0.4.0
func (r ListSessionJobSignalRequestsResponse) GetJSON200() *JobSignalRecordPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionJobSignalRequestsResponse) GetJSON400 ¶ added in v0.4.0
func (r ListSessionJobSignalRequestsResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionJobSignalRequestsResponse) GetJSON401 ¶ added in v0.4.0
func (r ListSessionJobSignalRequestsResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionJobSignalRequestsResponse) GetJSON404 ¶ added in v0.4.0
func (r ListSessionJobSignalRequestsResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSessionJobSignalRequestsResponse) GetJSON500 ¶ added in v0.4.0
func (r ListSessionJobSignalRequestsResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSessionJobSignalRequestsResponse) Status ¶ added in v0.4.0
func (r ListSessionJobSignalRequestsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionJobSignalRequestsResponse) StatusCode ¶ added in v0.4.0
func (r ListSessionJobSignalRequestsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSessionJobSignalRequestsResponse200Headers ¶ added in v0.4.0
type ListSessionJobSignalRequestsResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ListSessionJobSignalRequestsResponse200Headers the declared response headers of an HTTP 200 response for ListSessionJobSignalRequests
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 ListSessionJobsResponse ¶
type ListSessionJobsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *JobPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListSessionJobsResponse200Headers
}
func ParseListSessionJobsResponse ¶
func ParseListSessionJobsResponse(rsp *http.Response) (*ListSessionJobsResponse, error)
ParseListSessionJobsResponse parses an HTTP response from a ListSessionJobsWithResponse call
func (ListSessionJobsResponse) ContentType ¶
func (r ListSessionJobsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionJobsResponse) GetBody ¶
func (r ListSessionJobsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionJobsResponse) GetJSON200 ¶
func (r ListSessionJobsResponse) GetJSON200() *JobPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionJobsResponse) GetJSON400 ¶
func (r ListSessionJobsResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionJobsResponse) GetJSON401 ¶
func (r ListSessionJobsResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionJobsResponse) GetJSON404 ¶
func (r ListSessionJobsResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSessionJobsResponse) GetJSON500 ¶
func (r ListSessionJobsResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSessionJobsResponse) Status ¶
func (r ListSessionJobsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionJobsResponse) StatusCode ¶
func (r ListSessionJobsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSessionJobsResponse200Headers ¶
type ListSessionJobsResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ListSessionJobsResponse200Headers the declared response headers of an HTTP 200 response for ListSessionJobs
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 ListSessionModelRunCallsResponse ¶ added in v0.4.0
type ListSessionModelRunCallsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ModelCallPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListSessionModelRunCallsResponse200Headers
}
func ParseListSessionModelRunCallsResponse ¶ added in v0.4.0
func ParseListSessionModelRunCallsResponse(rsp *http.Response) (*ListSessionModelRunCallsResponse, error)
ParseListSessionModelRunCallsResponse parses an HTTP response from a ListSessionModelRunCallsWithResponse call
func (ListSessionModelRunCallsResponse) ContentType ¶ added in v0.4.0
func (r ListSessionModelRunCallsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionModelRunCallsResponse) GetBody ¶ added in v0.4.0
func (r ListSessionModelRunCallsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionModelRunCallsResponse) GetJSON200 ¶ added in v0.4.0
func (r ListSessionModelRunCallsResponse) GetJSON200() *ModelCallPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionModelRunCallsResponse) GetJSON400 ¶ added in v0.4.0
func (r ListSessionModelRunCallsResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionModelRunCallsResponse) GetJSON401 ¶ added in v0.4.0
func (r ListSessionModelRunCallsResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionModelRunCallsResponse) GetJSON404 ¶ added in v0.4.0
func (r ListSessionModelRunCallsResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSessionModelRunCallsResponse) GetJSON500 ¶ added in v0.4.0
func (r ListSessionModelRunCallsResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSessionModelRunCallsResponse) Status ¶ added in v0.4.0
func (r ListSessionModelRunCallsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionModelRunCallsResponse) StatusCode ¶ added in v0.4.0
func (r ListSessionModelRunCallsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSessionModelRunCallsResponse200Headers ¶ added in v0.4.0
type ListSessionModelRunCallsResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ListSessionModelRunCallsResponse200Headers the declared response headers of an HTTP 200 response for ListSessionModelRunCalls
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 ListSessionModelRunsResponse ¶ added in v0.4.0
type ListSessionModelRunsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ModelRunPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListSessionModelRunsResponse200Headers
}
func ParseListSessionModelRunsResponse ¶ added in v0.4.0
func ParseListSessionModelRunsResponse(rsp *http.Response) (*ListSessionModelRunsResponse, error)
ParseListSessionModelRunsResponse parses an HTTP response from a ListSessionModelRunsWithResponse call
func (ListSessionModelRunsResponse) ContentType ¶ added in v0.4.0
func (r ListSessionModelRunsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionModelRunsResponse) GetBody ¶ added in v0.4.0
func (r ListSessionModelRunsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionModelRunsResponse) GetJSON200 ¶ added in v0.4.0
func (r ListSessionModelRunsResponse) GetJSON200() *ModelRunPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionModelRunsResponse) GetJSON400 ¶ added in v0.4.0
func (r ListSessionModelRunsResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionModelRunsResponse) GetJSON401 ¶ added in v0.4.0
func (r ListSessionModelRunsResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionModelRunsResponse) GetJSON404 ¶ added in v0.4.0
func (r ListSessionModelRunsResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSessionModelRunsResponse) GetJSON500 ¶ added in v0.4.0
func (r ListSessionModelRunsResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSessionModelRunsResponse) Status ¶ added in v0.4.0
func (r ListSessionModelRunsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionModelRunsResponse) StatusCode ¶ added in v0.4.0
func (r ListSessionModelRunsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSessionModelRunsResponse200Headers ¶ added in v0.4.0
type ListSessionModelRunsResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ListSessionModelRunsResponse200Headers the declared response headers of an HTTP 200 response for ListSessionModelRuns
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 ListSessionNoticesResponse ¶ added in v0.4.0
type ListSessionNoticesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SessionNoticePage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListSessionNoticesResponse200Headers
}
func ParseListSessionNoticesResponse ¶ added in v0.4.0
func ParseListSessionNoticesResponse(rsp *http.Response) (*ListSessionNoticesResponse, error)
ParseListSessionNoticesResponse parses an HTTP response from a ListSessionNoticesWithResponse call
func (ListSessionNoticesResponse) ContentType ¶ added in v0.4.0
func (r ListSessionNoticesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionNoticesResponse) GetBody ¶ added in v0.4.0
func (r ListSessionNoticesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionNoticesResponse) GetJSON200 ¶ added in v0.4.0
func (r ListSessionNoticesResponse) GetJSON200() *SessionNoticePage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionNoticesResponse) GetJSON400 ¶ added in v0.4.0
func (r ListSessionNoticesResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionNoticesResponse) GetJSON401 ¶ added in v0.4.0
func (r ListSessionNoticesResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionNoticesResponse) GetJSON404 ¶ added in v0.4.0
func (r ListSessionNoticesResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSessionNoticesResponse) GetJSON500 ¶ added in v0.4.0
func (r ListSessionNoticesResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSessionNoticesResponse) Status ¶ added in v0.4.0
func (r ListSessionNoticesResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionNoticesResponse) StatusCode ¶ added in v0.4.0
func (r ListSessionNoticesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSessionNoticesResponse200Headers ¶ added in v0.4.0
type ListSessionNoticesResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ListSessionNoticesResponse200Headers the declared response headers of an HTTP 200 response for ListSessionNotices
type ListSessionProfileDecisionsParams ¶ added in v0.8.0
type ListSessionProfileDecisionsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionProfileDecisionsParams defines parameters for ListSessionProfileDecisions.
type ListSessionProfileDecisionsResponse ¶ added in v0.8.0
type ListSessionProfileDecisionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SessionProfileDecisionPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListSessionProfileDecisionsResponse200Headers
}
func ParseListSessionProfileDecisionsResponse ¶ added in v0.8.0
func ParseListSessionProfileDecisionsResponse(rsp *http.Response) (*ListSessionProfileDecisionsResponse, error)
ParseListSessionProfileDecisionsResponse parses an HTTP response from a ListSessionProfileDecisionsWithResponse call
func (ListSessionProfileDecisionsResponse) ContentType ¶ added in v0.8.0
func (r ListSessionProfileDecisionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionProfileDecisionsResponse) GetBody ¶ added in v0.8.0
func (r ListSessionProfileDecisionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionProfileDecisionsResponse) GetJSON200 ¶ added in v0.8.0
func (r ListSessionProfileDecisionsResponse) GetJSON200() *SessionProfileDecisionPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionProfileDecisionsResponse) GetJSON400 ¶ added in v0.8.0
func (r ListSessionProfileDecisionsResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionProfileDecisionsResponse) GetJSON401 ¶ added in v0.8.0
func (r ListSessionProfileDecisionsResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionProfileDecisionsResponse) GetJSON404 ¶ added in v0.8.0
func (r ListSessionProfileDecisionsResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSessionProfileDecisionsResponse) GetJSON500 ¶ added in v0.8.0
func (r ListSessionProfileDecisionsResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSessionProfileDecisionsResponse) Status ¶ added in v0.8.0
func (r ListSessionProfileDecisionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionProfileDecisionsResponse) StatusCode ¶ added in v0.8.0
func (r ListSessionProfileDecisionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSessionProfileDecisionsResponse200Headers ¶ added in v0.8.0
type ListSessionProfileDecisionsResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ListSessionProfileDecisionsResponse200Headers the declared response headers of an HTTP 200 response for ListSessionProfileDecisions
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 ListSessionTurnsResponse ¶ added in v0.4.0
type ListSessionTurnsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TurnPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListSessionTurnsResponse200Headers
}
func ParseListSessionTurnsResponse ¶ added in v0.4.0
func ParseListSessionTurnsResponse(rsp *http.Response) (*ListSessionTurnsResponse, error)
ParseListSessionTurnsResponse parses an HTTP response from a ListSessionTurnsWithResponse call
func (ListSessionTurnsResponse) ContentType ¶ added in v0.4.0
func (r ListSessionTurnsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionTurnsResponse) GetBody ¶ added in v0.4.0
func (r ListSessionTurnsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionTurnsResponse) GetJSON200 ¶ added in v0.4.0
func (r ListSessionTurnsResponse) GetJSON200() *TurnPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionTurnsResponse) GetJSON400 ¶ added in v0.4.0
func (r ListSessionTurnsResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionTurnsResponse) GetJSON401 ¶ added in v0.4.0
func (r ListSessionTurnsResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionTurnsResponse) GetJSON404 ¶ added in v0.4.0
func (r ListSessionTurnsResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSessionTurnsResponse) GetJSON500 ¶ added in v0.4.0
func (r ListSessionTurnsResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSessionTurnsResponse) Status ¶ added in v0.4.0
func (r ListSessionTurnsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionTurnsResponse) StatusCode ¶ added in v0.4.0
func (r ListSessionTurnsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSessionTurnsResponse200Headers ¶ added in v0.4.0
type ListSessionTurnsResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ListSessionTurnsResponse200Headers the declared response headers of an HTTP 200 response for ListSessionTurns
type ListSessionWorkersParams ¶ added in v0.8.0
type ListSessionWorkersParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ListSessionWorkersParams defines parameters for ListSessionWorkers.
type ListSessionWorkersResponse ¶ added in v0.8.0
type ListSessionWorkersResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WorkerGenerationPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListSessionWorkersResponse200Headers
}
func ParseListSessionWorkersResponse ¶ added in v0.8.0
func ParseListSessionWorkersResponse(rsp *http.Response) (*ListSessionWorkersResponse, error)
ParseListSessionWorkersResponse parses an HTTP response from a ListSessionWorkersWithResponse call
func (ListSessionWorkersResponse) ContentType ¶ added in v0.8.0
func (r ListSessionWorkersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionWorkersResponse) GetBody ¶ added in v0.8.0
func (r ListSessionWorkersResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionWorkersResponse) GetJSON200 ¶ added in v0.8.0
func (r ListSessionWorkersResponse) GetJSON200() *WorkerGenerationPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionWorkersResponse) GetJSON400 ¶ added in v0.8.0
func (r ListSessionWorkersResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionWorkersResponse) GetJSON401 ¶ added in v0.8.0
func (r ListSessionWorkersResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionWorkersResponse) GetJSON404 ¶ added in v0.8.0
func (r ListSessionWorkersResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListSessionWorkersResponse) GetJSON500 ¶ added in v0.8.0
func (r ListSessionWorkersResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSessionWorkersResponse) Status ¶ added in v0.8.0
func (r ListSessionWorkersResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionWorkersResponse) StatusCode ¶ added in v0.8.0
func (r ListSessionWorkersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSessionWorkersResponse200Headers ¶ added in v0.8.0
type ListSessionWorkersResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ListSessionWorkersResponse200Headers the declared response headers of an HTTP 200 response for ListSessionWorkers
type ListSessionsParams ¶ added in v0.8.0
type ListSessionsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
}
ListSessionsParams defines parameters for ListSessions.
type ListSessionsResponse ¶ added in v0.8.0
type ListSessionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SessionPage
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListSessionsResponse200Headers
}
func ParseListSessionsResponse ¶ added in v0.8.0
func ParseListSessionsResponse(rsp *http.Response) (*ListSessionsResponse, error)
ParseListSessionsResponse parses an HTTP response from a ListSessionsWithResponse call
func (ListSessionsResponse) ContentType ¶ added in v0.8.0
func (r ListSessionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSessionsResponse) GetBody ¶ added in v0.8.0
func (r ListSessionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSessionsResponse) GetJSON200 ¶ added in v0.8.0
func (r ListSessionsResponse) GetJSON200() *SessionPage
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSessionsResponse) GetJSON400 ¶ added in v0.8.0
func (r ListSessionsResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListSessionsResponse) GetJSON401 ¶ added in v0.8.0
func (r ListSessionsResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListSessionsResponse) GetJSON500 ¶ added in v0.8.0
func (r ListSessionsResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListSessionsResponse) Status ¶ added in v0.8.0
func (r ListSessionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSessionsResponse) StatusCode ¶ added in v0.8.0
func (r ListSessionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSessionsResponse200Headers ¶ added in v0.8.0
type ListSessionsResponse200Headers struct {
XRequestID openapi_types.UUID
}
ListSessionsResponse200Headers the declared response headers of an HTTP 200 response for ListSessions
type ListWorkspaceRootsResponse ¶ added in v0.13.0
type ListWorkspaceRootsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WorkspaceRootList
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListWorkspaceRootsResponse200Headers
}
func ParseListWorkspaceRootsResponse ¶ added in v0.13.0
func ParseListWorkspaceRootsResponse(rsp *http.Response) (*ListWorkspaceRootsResponse, error)
ParseListWorkspaceRootsResponse parses an HTTP response from a ListWorkspaceRootsWithResponse call
func (ListWorkspaceRootsResponse) ContentType ¶ added in v0.13.0
func (r ListWorkspaceRootsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListWorkspaceRootsResponse) GetBody ¶ added in v0.13.0
func (r ListWorkspaceRootsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListWorkspaceRootsResponse) GetJSON200 ¶ added in v0.13.0
func (r ListWorkspaceRootsResponse) GetJSON200() *WorkspaceRootList
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListWorkspaceRootsResponse) GetJSON401 ¶ added in v0.13.0
func (r ListWorkspaceRootsResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListWorkspaceRootsResponse) GetJSON500 ¶ added in v0.13.0
func (r ListWorkspaceRootsResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ListWorkspaceRootsResponse) Status ¶ added in v0.13.0
func (r ListWorkspaceRootsResponse) Status() string
Status returns HTTPResponse.Status
func (ListWorkspaceRootsResponse) StatusCode ¶ added in v0.13.0
func (r ListWorkspaceRootsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListWorkspaceRootsResponse200Headers ¶ added in v0.13.0
type ListWorkspaceRootsResponse200Headers struct {
XRequestID openapi_types.UUID
}
ListWorkspaceRootsResponse200Headers the declared response headers of an HTTP 200 response for ListWorkspaceRoots
type Message ¶
type Message struct {
CompactionId *openapi_types.UUID `json:"compactionId,omitempty"`
Content string `json:"content"`
CreatedAt time.Time `json:"createdAt"`
Id openapi_types.UUID `json:"id"`
Incomplete *bool `json:"incomplete,omitempty"`
// Injected True when Peen added this message to the conversation itself, such as a report of session events delivered during a turn or the instructions of an event handler that started a turn, rather than a person or the model writing it.
Injected *bool `json:"injected,omitempty"`
// InjectedKind What an injected message is, when it is more than a generic update. `skill` marks a skill the user invoked with `:name`, delivered as its own message after the message that named it, or the note that the skill was already loaded. Absent for every other message.
InjectedKind *MessageInjectedKind `json:"injectedKind,omitempty"`
IsError *bool `json:"isError,omitempty"`
Model *string `json:"model,omitempty"`
Role MessageRole `json:"role"`
Sequence int64 `json:"sequence"`
Thinking *string `json:"thinking,omitempty"`
ToolCallId *string `json:"toolCallId,omitempty"`
ToolCalls *[]MessageToolCall `json:"toolCalls,omitempty"`
// TurnId The turn that wrote this message. Messages that share it belong to one turn.
TurnId *openapi_types.UUID `json:"turnId,omitempty"`
Workspace string `json:"workspace"`
}
Message defines model for Message.
type MessageInjectedKind ¶ added in v0.18.0
type MessageInjectedKind string
MessageInjectedKind What an injected message is, when it is more than a generic update. `skill` marks a skill the user invoked with `:name`, delivered as its own message after the message that named it, or the note that the skill was already loaded. Absent for every other message.
const (
MessageInjectedKindSkill MessageInjectedKind = "skill"
)
Defines values for MessageInjectedKind.
func (MessageInjectedKind) Valid ¶ added in v0.18.0
func (e MessageInjectedKind) Valid() bool
Valid indicates whether the value is a known member of the MessageInjectedKind enum.
type MessagePage ¶
type MessagePage struct {
HasMore bool `json:"hasMore"`
Items []Message `json:"items"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
MessagePage defines model for MessagePage.
type MessageRole ¶
type MessageRole string
MessageRole defines model for Message.Role.
const ( MessageRoleAssistant MessageRole = "assistant" MessageRoleTool MessageRole = "tool" MessageRoleUser MessageRole = "user" )
Defines values for MessageRole.
func (MessageRole) Valid ¶
func (e MessageRole) Valid() bool
Valid indicates whether the value is a known member of the MessageRole enum.
type MessageToolCall ¶
type MessageToolCall struct {
Arguments map[string]interface{} `json:"arguments"`
Id string `json:"id"`
Name string `json:"name"`
}
MessageToolCall defines model for MessageToolCall.
type Model ¶ added in v0.12.0
type Model struct {
// ConnectionName The configured connection portion of name.
ConnectionName string `json:"connectionName"`
// ContextWindowTokens The model context window Peen will enforce. For an upstream that publishes no window, this is the deployment context budget.
ContextWindowTokens int64 `json:"contextWindowTokens"`
// ModelId The raw model identifier the upstream accepted.
ModelId string `json:"modelId"`
// Name Exact connection/model reference accepted by message.send for a one-turn model override.
Name string `json:"name"`
}
Model defines model for Model.
type ModelCall ¶ added in v0.4.0
type ModelCall struct {
BilledCostAmount string `json:"billedCostAmount"`
CacheReadTokens int64 `json:"cacheReadTokens"`
CacheWriteLongTtlTokens int64 `json:"cacheWriteLongTtlTokens"`
CacheWriteTokens int64 `json:"cacheWriteTokens"`
CompletedAt *time.Time `json:"completedAt,omitempty"`
CompletionTokens int64 `json:"completionTokens"`
CostKnown bool `json:"costKnown"`
FailureClassification string `json:"failureClassification"`
FailureDetail string `json:"failureDetail"`
FinishReason string `json:"finishReason"`
Id openapi_types.UUID `json:"id"`
ModelRunId openapi_types.UUID `json:"modelRunId"`
PromptTokens int64 `json:"promptTokens"`
ReasoningTokens int64 `json:"reasoningTokens"`
RequestMessages []interface{} `json:"requestMessages"`
RequestTools []interface{} `json:"requestTools"`
ResponseCostAmount string `json:"responseCostAmount"`
ResponseMessage *map[string]interface{} `json:"responseMessage"`
ResponseModelId string `json:"responseModelId"`
ResponseUsage map[string]interface{} `json:"responseUsage"`
RetryAttemptCount int64 `json:"retryAttemptCount"`
RetryAttempts []map[string]interface{} `json:"retryAttempts"`
RetryCostAmount string `json:"retryCostAmount"`
Round int64 `json:"round"`
SessionId openapi_types.UUID `json:"sessionId"`
StartedAt time.Time `json:"startedAt"`
State ModelCallState `json:"state"`
TotalAttempts int64 `json:"totalAttempts"`
TotalTokens int64 `json:"totalTokens"`
WastedCompletionTokens int64 `json:"wastedCompletionTokens"`
WastedPromptTokens int64 `json:"wastedPromptTokens"`
WastedTotalTokens int64 `json:"wastedTotalTokens"`
}
ModelCall defines model for ModelCall.
type ModelCallPage ¶ added in v0.4.0
type ModelCallPage struct {
Calls []ModelCall `json:"calls"`
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
ModelRun ModelRun `json:"modelRun"`
Offset int32 `json:"offset"`
}
ModelCallPage defines model for ModelCallPage.
type ModelCallState ¶ added in v0.4.0
type ModelCallState string
ModelCallState defines model for ModelCall.State.
const ( ModelCallStateCancelled ModelCallState = "cancelled" ModelCallStateCompleted ModelCallState = "completed" ModelCallStateFailed ModelCallState = "failed" ModelCallStateInterrupted ModelCallState = "interrupted" ModelCallStateRunning ModelCallState = "running" )
Defines values for ModelCallState.
func (ModelCallState) Valid ¶ added in v0.4.0
func (e ModelCallState) Valid() bool
Valid indicates whether the value is a known member of the ModelCallState enum.
type ModelList ¶ added in v0.12.0
type ModelList struct {
// Models Models available to this authenticated controller.
Models []Model `json:"models"`
}
ModelList defines model for ModelList.
type ModelRun ¶ added in v0.4.0
type ModelRun struct {
AgentRunId *openapi_types.UUID `json:"agentRunId,omitempty"`
BilledCostAmount string `json:"billedCostAmount"`
CompletedAt *time.Time `json:"completedAt,omitempty"`
ConnectionName string `json:"connectionName"`
CostKnown bool `json:"costKnown"`
FailureClassification string `json:"failureClassification"`
FailureDetail string `json:"failureDetail"`
FinishReason string `json:"finishReason"`
Id openapi_types.UUID `json:"id"`
ModelReference string `json:"modelReference"`
RequestSettings map[string]interface{} `json:"requestSettings"`
RequestedModelId string `json:"requestedModelId"`
ResponseCostAmount string `json:"responseCostAmount"`
ResponseInjections []interface{} `json:"responseInjections"`
ResponseMessages []interface{} `json:"responseMessages"`
ResponseModelId string `json:"responseModelId"`
ResponseText string `json:"responseText"`
ResponseThinking string `json:"responseThinking"`
ResponseUsage map[string]interface{} `json:"responseUsage"`
RetryCostAmount string `json:"retryCostAmount"`
SessionId openapi_types.UUID `json:"sessionId"`
Stage ModelRunStage `json:"stage"`
StartedAt time.Time `json:"startedAt"`
State ModelRunState `json:"state"`
TurnId openapi_types.UUID `json:"turnId"`
}
ModelRun defines model for ModelRun.
type ModelRunID ¶ added in v0.4.0
type ModelRunID = openapi_types.UUID
ModelRunID defines model for ModelRunID.
type ModelRunPage ¶ added in v0.4.0
type ModelRunPage struct {
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
ModelRuns []ModelRun `json:"modelRuns"`
Offset int32 `json:"offset"`
}
ModelRunPage defines model for ModelRunPage.
type ModelRunStage ¶ added in v0.4.0
type ModelRunStage string
ModelRunStage defines model for ModelRun.Stage.
const ( ModelRunStageChild ModelRunStage = "child" ModelRunStageCompaction ModelRunStage = "compaction" ModelRunStageTurn ModelRunStage = "turn" )
Defines values for ModelRunStage.
func (ModelRunStage) Valid ¶ added in v0.4.0
func (e ModelRunStage) Valid() bool
Valid indicates whether the value is a known member of the ModelRunStage enum.
type ModelRunState ¶ added in v0.4.0
type ModelRunState string
ModelRunState defines model for ModelRun.State.
const ( ModelRunStateCancelled ModelRunState = "cancelled" ModelRunStateCompleted ModelRunState = "completed" ModelRunStateFailed ModelRunState = "failed" ModelRunStateInterrupted ModelRunState = "interrupted" ModelRunStateRunning ModelRunState = "running" )
Defines values for ModelRunState.
func (ModelRunState) Valid ¶ added in v0.4.0
func (e ModelRunState) Valid() bool
Valid indicates whether the value is a known member of the ModelRunState enum.
type OpenSessionJSONRequestBody ¶ added in v0.8.0
type OpenSessionJSONRequestBody = OpenSessionRequest
OpenSessionJSONRequestBody defines body for OpenSession for application/json ContentType.
type OpenSessionRequest ¶ added in v0.8.0
type OpenSessionRequest struct {
// Profile Name of an operator-defined execution profile. Empty takes the deployment default. A name the operator did not define is refused with 403. This is the only environment choice a client makes: images, mounts, network, and capabilities come from deployment configuration alone. It applies only when this call creates the session; opening an existing session never changes its profile.
Profile *string `json:"profile,omitempty"`
// Workspace Absolute host path of the workspace directory. It is resolved through its symlinks and must fall under a configured workspace root.
Workspace string `json:"workspace"`
}
OpenSessionRequest defines model for OpenSessionRequest.
type OpenSessionResponse ¶ added in v0.8.0
type OpenSessionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *OpenedSession
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorForbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *OpenSessionResponse200Headers
}
func ParseOpenSessionResponse ¶ added in v0.8.0
func ParseOpenSessionResponse(rsp *http.Response) (*OpenSessionResponse, error)
ParseOpenSessionResponse parses an HTTP response from a OpenSessionWithResponse call
func (OpenSessionResponse) ContentType ¶ added in v0.8.0
func (r OpenSessionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (OpenSessionResponse) GetBody ¶ added in v0.8.0
func (r OpenSessionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (OpenSessionResponse) GetJSON200 ¶ added in v0.8.0
func (r OpenSessionResponse) GetJSON200() *OpenedSession
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (OpenSessionResponse) GetJSON400 ¶ added in v0.8.0
func (r OpenSessionResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (OpenSessionResponse) GetJSON401 ¶ added in v0.8.0
func (r OpenSessionResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (OpenSessionResponse) GetJSON403 ¶ added in v0.8.0
func (r OpenSessionResponse) GetJSON403() *ErrorForbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (OpenSessionResponse) GetJSON404 ¶ added in v0.13.0
func (r OpenSessionResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (OpenSessionResponse) GetJSON500 ¶ added in v0.8.0
func (r OpenSessionResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (OpenSessionResponse) Status ¶ added in v0.8.0
func (r OpenSessionResponse) Status() string
Status returns HTTPResponse.Status
func (OpenSessionResponse) StatusCode ¶ added in v0.8.0
func (r OpenSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OpenSessionResponse200Headers ¶ added in v0.8.0
type OpenSessionResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
OpenSessionResponse200Headers the declared response headers of an HTTP 200 response for OpenSession
type OpenedSession ¶ added in v0.8.0
type OpenedSession struct {
// Created True when this call created the session, false when it resumed an existing one.
Created bool `json:"created"`
Session Session `json:"session"`
}
OpenedSession defines model for OpenedSession.
type PromptSnapshot ¶ added in v0.4.0
type PromptSnapshot struct {
CreatedAt time.Time `json:"createdAt"`
EffectivePrompt string `json:"effectivePrompt"`
Hash string `json:"hash"`
}
PromptSnapshot defines model for PromptSnapshot.
type 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 PublishSessionNoticeResponse ¶ added in v0.4.0
type PublishSessionNoticeResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *SessionNotice
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers202 the parsed response headers for an HTTP 202 response
Headers202 *PublishSessionNoticeResponse202Headers
}
func ParsePublishSessionNoticeResponse ¶ added in v0.4.0
func ParsePublishSessionNoticeResponse(rsp *http.Response) (*PublishSessionNoticeResponse, error)
ParsePublishSessionNoticeResponse parses an HTTP response from a PublishSessionNoticeWithResponse call
func (PublishSessionNoticeResponse) ContentType ¶ added in v0.4.0
func (r PublishSessionNoticeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PublishSessionNoticeResponse) GetBody ¶ added in v0.4.0
func (r PublishSessionNoticeResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (PublishSessionNoticeResponse) GetJSON202 ¶ added in v0.4.0
func (r PublishSessionNoticeResponse) GetJSON202() *SessionNotice
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (PublishSessionNoticeResponse) GetJSON400 ¶ added in v0.4.0
func (r PublishSessionNoticeResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (PublishSessionNoticeResponse) GetJSON401 ¶ added in v0.4.0
func (r PublishSessionNoticeResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (PublishSessionNoticeResponse) GetJSON404 ¶ added in v0.4.0
func (r PublishSessionNoticeResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (PublishSessionNoticeResponse) GetJSON500 ¶ added in v0.4.0
func (r PublishSessionNoticeResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (PublishSessionNoticeResponse) Status ¶ added in v0.4.0
func (r PublishSessionNoticeResponse) Status() string
Status returns HTTPResponse.Status
func (PublishSessionNoticeResponse) StatusCode ¶ added in v0.4.0
func (r PublishSessionNoticeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PublishSessionNoticeResponse202Headers ¶ added in v0.4.0
type PublishSessionNoticeResponse202Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
PublishSessionNoticeResponse202Headers the declared response headers of an HTTP 202 response for PublishSessionNotice
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 ReadSessionJobOutputResponse ¶
type ReadSessionJobOutputResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *JobOutput
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ReadSessionJobOutputResponse200Headers
}
func ParseReadSessionJobOutputResponse ¶
func ParseReadSessionJobOutputResponse(rsp *http.Response) (*ReadSessionJobOutputResponse, error)
ParseReadSessionJobOutputResponse parses an HTTP response from a ReadSessionJobOutputWithResponse call
func (ReadSessionJobOutputResponse) ContentType ¶
func (r ReadSessionJobOutputResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ReadSessionJobOutputResponse) GetBody ¶
func (r ReadSessionJobOutputResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ReadSessionJobOutputResponse) GetJSON200 ¶
func (r ReadSessionJobOutputResponse) GetJSON200() *JobOutput
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ReadSessionJobOutputResponse) GetJSON400 ¶
func (r ReadSessionJobOutputResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ReadSessionJobOutputResponse) GetJSON401 ¶
func (r ReadSessionJobOutputResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ReadSessionJobOutputResponse) GetJSON404 ¶
func (r ReadSessionJobOutputResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ReadSessionJobOutputResponse) GetJSON500 ¶
func (r ReadSessionJobOutputResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ReadSessionJobOutputResponse) Status ¶
func (r ReadSessionJobOutputResponse) Status() string
Status returns HTTPResponse.Status
func (ReadSessionJobOutputResponse) StatusCode ¶
func (r ReadSessionJobOutputResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReadSessionJobOutputResponse200Headers ¶
type ReadSessionJobOutputResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ReadSessionJobOutputResponse200Headers the declared response headers of an HTTP 200 response for ReadSessionJobOutput
type ReconfigureSessionJSONRequestBody ¶ added in v0.8.0
type ReconfigureSessionJSONRequestBody = ReconfigureSessionRequest
ReconfigureSessionJSONRequestBody defines body for ReconfigureSession for application/json ContentType.
type ReconfigureSessionParams ¶ added in v0.8.0
type ReconfigureSessionParams struct {
XSessionID SessionIDRequired `json:"X-Session-ID"`
}
ReconfigureSessionParams defines parameters for ReconfigureSession.
type ReconfigureSessionRequest ¶ added in v0.8.0
type ReconfigureSessionRequest struct {
// Profile The operator-defined profile to move this session to. An undefined name is refused. This is the only environment choice a client makes.
Profile string `json:"profile"`
// Reason Why the profile changed, kept in the durable decision history.
Reason string `json:"reason"`
}
ReconfigureSessionRequest defines model for ReconfigureSessionRequest.
type ReconfigureSessionResponse ¶ added in v0.8.0
type ReconfigureSessionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SessionProfileDecision
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *ErrorForbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON409 the response for an HTTP 409 `application/json` response
JSON409 *ErrorConflict
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ReconfigureSessionResponse200Headers
}
func ParseReconfigureSessionResponse ¶ added in v0.8.0
func ParseReconfigureSessionResponse(rsp *http.Response) (*ReconfigureSessionResponse, error)
ParseReconfigureSessionResponse parses an HTTP response from a ReconfigureSessionWithResponse call
func (ReconfigureSessionResponse) ContentType ¶ added in v0.8.0
func (r ReconfigureSessionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ReconfigureSessionResponse) GetBody ¶ added in v0.8.0
func (r ReconfigureSessionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ReconfigureSessionResponse) GetJSON200 ¶ added in v0.8.0
func (r ReconfigureSessionResponse) GetJSON200() *SessionProfileDecision
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ReconfigureSessionResponse) GetJSON400 ¶ added in v0.8.0
func (r ReconfigureSessionResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ReconfigureSessionResponse) GetJSON401 ¶ added in v0.8.0
func (r ReconfigureSessionResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ReconfigureSessionResponse) GetJSON403 ¶ added in v0.8.0
func (r ReconfigureSessionResponse) GetJSON403() *ErrorForbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ReconfigureSessionResponse) GetJSON404 ¶ added in v0.8.0
func (r ReconfigureSessionResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ReconfigureSessionResponse) GetJSON409 ¶ added in v0.8.0
func (r ReconfigureSessionResponse) GetJSON409() *ErrorConflict
GetJSON409 returns the response for an HTTP 409 `application/json` response
func (ReconfigureSessionResponse) GetJSON500 ¶ added in v0.8.0
func (r ReconfigureSessionResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (ReconfigureSessionResponse) Status ¶ added in v0.8.0
func (r ReconfigureSessionResponse) Status() string
Status returns HTTPResponse.Status
func (ReconfigureSessionResponse) StatusCode ¶ added in v0.8.0
func (r ReconfigureSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReconfigureSessionResponse200Headers ¶ added in v0.8.0
type ReconfigureSessionResponse200Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
ReconfigureSessionResponse200Headers the declared response headers of an HTTP 200 response for ReconfigureSession
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type Session ¶
type Session struct {
ActiveTurn bool `json:"activeTurn"`
Agent string `json:"agent"`
CompletedTurnCount int64 `json:"completedTurnCount"`
CreatedAt time.Time `json:"createdAt"`
// ExecutionProfile The operator-defined profile this session's tools run under. Empty for a session recorded before profiles existed, which the controller reads as the deployment default.
ExecutionProfile *string `json:"executionProfile,omitempty"`
Id openapi_types.UUID `json:"id"`
LastMessageAt *time.Time `json:"lastMessageAt,omitempty"`
MessageCount int64 `json:"messageCount"`
Model string `json:"model"`
UpdatedAt time.Time `json:"updatedAt"`
Workspace string `json:"workspace"`
}
Session defines model for Session.
type SessionIDRequired ¶
type SessionIDRequired = openapi_types.UUID
SessionIDRequired defines model for SessionIDRequired.
type SessionNotice ¶ added in v0.4.0
type SessionNotice struct {
CreatedAt time.Time `json:"createdAt"`
Data *map[string]interface{} `json:"data,omitempty"`
Delivery SessionNoticeDelivery `json:"delivery"`
Id openapi_types.UUID `json:"id"`
Source string `json:"source"`
Summary string `json:"summary"`
Type string `json:"type"`
}
SessionNotice defines model for SessionNotice.
type SessionNoticeDelivery ¶ added in v0.4.0
type SessionNoticeDelivery string
SessionNoticeDelivery defines model for SessionNotice.Delivery.
const ( SessionNoticeDeliveryQueue SessionNoticeDelivery = "queue" SessionNoticeDeliveryWake SessionNoticeDelivery = "wake" )
Defines values for SessionNoticeDelivery.
func (SessionNoticeDelivery) Valid ¶ added in v0.4.0
func (e SessionNoticeDelivery) Valid() bool
Valid indicates whether the value is a known member of the SessionNoticeDelivery enum.
type SessionNoticePage ¶ added in v0.4.0
type SessionNoticePage struct {
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
Notices []SessionNotice `json:"notices"`
Offset int32 `json:"offset"`
}
SessionNoticePage defines model for SessionNoticePage.
type SessionNoticeRequest ¶ added in v0.4.0
type SessionNoticeRequest struct {
// Data Structured payload for programmatic consumers.
Data *map[string]interface{} `json:"data,omitempty"`
// Delivery queue waits for the next turn. wake starts a turn when the session is idle and .agents/events declares a handler for this type.
Delivery *SessionNoticeRequestDelivery `json:"delivery,omitempty"`
// Summary The one line describing what happened.
Summary string `json:"summary"`
// Type Dotted lowercase namespaced type. The job. and agent. prefixes are reserved for Peen's own producers and are rejected here.
Type string `json:"type"`
}
SessionNoticeRequest defines model for SessionNoticeRequest.
type SessionNoticeRequestDelivery ¶ added in v0.4.0
type SessionNoticeRequestDelivery string
SessionNoticeRequestDelivery queue waits for the next turn. wake starts a turn when the session is idle and .agents/events declares a handler for this type.
const ( SessionNoticeRequestDeliveryQueue SessionNoticeRequestDelivery = "queue" SessionNoticeRequestDeliveryWake SessionNoticeRequestDelivery = "wake" )
Defines values for SessionNoticeRequestDelivery.
func (SessionNoticeRequestDelivery) Valid ¶ added in v0.4.0
func (e SessionNoticeRequestDelivery) Valid() bool
Valid indicates whether the value is a known member of the SessionNoticeRequestDelivery enum.
type SessionPage ¶ added in v0.8.0
type SessionPage struct {
HasMore bool `json:"hasMore"`
Items []Session `json:"items"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
SessionPage defines model for SessionPage.
type SessionProfileDecision ¶ added in v0.8.0
type SessionProfileDecision struct {
DecidedAt time.Time `json:"decidedAt"`
// FromProfile The profile the session ran under before this decision. Absent when the session had no recorded profile.
FromProfile *string `json:"fromProfile,omitempty"`
Id openapi_types.UUID `json:"id"`
Reason string `json:"reason"`
SessionId openapi_types.UUID `json:"sessionId"`
ToProfile string `json:"toProfile"`
}
SessionProfileDecision defines model for SessionProfileDecision.
type SessionProfileDecisionPage ¶ added in v0.8.0
type SessionProfileDecisionPage struct {
HasMore bool `json:"hasMore"`
Items []SessionProfileDecision `json:"items"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
SessionProfileDecisionPage defines model for SessionProfileDecisionPage.
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 SignalSessionJobResponse ¶
type SignalSessionJobResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON202 the response for an HTTP 202 `application/json` response
JSON202 *JobSignalResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *ErrorBadRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *ErrorUnauthorized
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *ErrorNotFound
// JSON500 the response for an HTTP 500 `application/json` response
JSON500 *ErrorInternal
// Headers202 the parsed response headers for an HTTP 202 response
Headers202 *SignalSessionJobResponse202Headers
}
func ParseSignalSessionJobResponse ¶
func ParseSignalSessionJobResponse(rsp *http.Response) (*SignalSessionJobResponse, error)
ParseSignalSessionJobResponse parses an HTTP response from a SignalSessionJobWithResponse call
func (SignalSessionJobResponse) ContentType ¶
func (r SignalSessionJobResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SignalSessionJobResponse) GetBody ¶
func (r SignalSessionJobResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SignalSessionJobResponse) GetJSON202 ¶
func (r SignalSessionJobResponse) GetJSON202() *JobSignalResponse
GetJSON202 returns the response for an HTTP 202 `application/json` response
func (SignalSessionJobResponse) GetJSON400 ¶
func (r SignalSessionJobResponse) GetJSON400() *ErrorBadRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (SignalSessionJobResponse) GetJSON401 ¶
func (r SignalSessionJobResponse) GetJSON401() *ErrorUnauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (SignalSessionJobResponse) GetJSON404 ¶
func (r SignalSessionJobResponse) GetJSON404() *ErrorNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (SignalSessionJobResponse) GetJSON500 ¶
func (r SignalSessionJobResponse) GetJSON500() *ErrorInternal
GetJSON500 returns the response for an HTTP 500 `application/json` response
func (SignalSessionJobResponse) Status ¶
func (r SignalSessionJobResponse) Status() string
Status returns HTTPResponse.Status
func (SignalSessionJobResponse) StatusCode ¶
func (r SignalSessionJobResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SignalSessionJobResponse202Headers ¶
type SignalSessionJobResponse202Headers struct {
XRequestID openapi_types.UUID
XSessionID openapi_types.UUID
}
SignalSessionJobResponse202Headers the declared response headers of an HTTP 202 response for SignalSessionJob
type TranscriptEvent ¶ added in v0.4.0
type TranscriptEvent struct {
CreatedAt time.Time `json:"createdAt"`
Id openapi_types.UUID `json:"id"`
ParentToolCallId *string `json:"parentToolCallId,omitempty"`
Payload map[string]interface{} `json:"payload"`
RequestId openapi_types.UUID `json:"requestId"`
Sequence int64 `json:"sequence"`
SessionId openapi_types.UUID `json:"sessionId"`
TurnId openapi_types.UUID `json:"turnId"`
Type string `json:"type"`
// WorkerGenerationId Worker generation that produced this event, if started.
WorkerGenerationId *string `json:"workerGenerationId,omitempty"`
}
TranscriptEvent defines model for TranscriptEvent.
type TranscriptEventPage ¶ added in v0.4.0
type TranscriptEventPage struct {
Events []TranscriptEvent `json:"events"`
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
TranscriptEventPage defines model for TranscriptEventPage.
type Turn ¶ added in v0.4.0
type Turn struct {
CancelRequested bool `json:"cancelRequested"`
CompletedAt *time.Time `json:"completedAt,omitempty"`
ContextSnapshotHash *string `json:"contextSnapshotHash,omitempty"`
FailureClassification string `json:"failureClassification"`
Id openapi_types.UUID `json:"id"`
PromptSnapshotHash *string `json:"promptSnapshotHash,omitempty"`
RequestId openapi_types.UUID `json:"requestId"`
SessionId openapi_types.UUID `json:"sessionId"`
StartedAt time.Time `json:"startedAt"`
State TurnState `json:"state"`
Workspace string `json:"workspace"`
}
Turn defines model for Turn.
type TurnPage ¶ added in v0.4.0
type TurnPage struct {
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
Turns []Turn `json:"turns"`
}
TurnPage defines model for TurnPage.
type TurnState ¶ added in v0.4.0
type TurnState string
TurnState defines model for Turn.State.
type WorkerGeneration ¶ added in v0.8.0
type WorkerGeneration struct {
// ContainerId Set only for a Docker generation.
ContainerId *string `json:"containerId,omitempty"`
CreatedAt time.Time `json:"createdAt"`
EndedAt *time.Time `json:"endedAt,omitempty"`
// FailureDetail Why a generation failed or was replaced. Never carries credentials.
FailureDetail *string `json:"failureDetail,omitempty"`
Id openapi_types.UUID `json:"id"`
// ImageDigest Immutable image identity for a Docker generation, never a moving tag.
ImageDigest *string `json:"imageDigest,omitempty"`
Kind WorkerGenerationKind `json:"kind"`
Profile string `json:"profile"`
ProfileRevision int64 `json:"profileRevision"`
SessionId openapi_types.UUID `json:"sessionId"`
StartedAt *time.Time `json:"startedAt,omitempty"`
State WorkerGenerationState `json:"state"`
Workspace string `json:"workspace"`
}
WorkerGeneration defines model for WorkerGeneration.
type WorkerGenerationKind ¶ added in v0.8.0
type WorkerGenerationKind string
WorkerGenerationKind defines model for WorkerGeneration.Kind.
const ( WorkerGenerationKindDocker WorkerGenerationKind = "docker" WorkerGenerationKindNative WorkerGenerationKind = "native" )
Defines values for WorkerGenerationKind.
func (WorkerGenerationKind) Valid ¶ added in v0.8.0
func (e WorkerGenerationKind) Valid() bool
Valid indicates whether the value is a known member of the WorkerGenerationKind enum.
type WorkerGenerationPage ¶ added in v0.8.0
type WorkerGenerationPage struct {
HasMore bool `json:"hasMore"`
Items []WorkerGeneration `json:"items"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
WorkerGenerationPage defines model for WorkerGenerationPage.
type WorkerGenerationState ¶ added in v0.8.0
type WorkerGenerationState string
WorkerGenerationState defines model for WorkerGeneration.State.
const ( WorkerGenerationStateFailed WorkerGenerationState = "failed" WorkerGenerationStateReady WorkerGenerationState = "ready" WorkerGenerationStateRequested WorkerGenerationState = "requested" WorkerGenerationStateStarting WorkerGenerationState = "starting" WorkerGenerationStateStopped WorkerGenerationState = "stopped" WorkerGenerationStateStopping WorkerGenerationState = "stopping" )
Defines values for WorkerGenerationState.
func (WorkerGenerationState) Valid ¶ added in v0.8.0
func (e WorkerGenerationState) Valid() bool
Valid indicates whether the value is a known member of the WorkerGenerationState enum.
type WorkspaceRootList ¶ added in v0.13.0
type WorkspaceRootList struct {
// Roots Canonical absolute directories the authenticated controller will accept as workspace roots.
Roots []string `json:"roots"`
}
WorkspaceRootList defines model for WorkspaceRootList.