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 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 NewListMessagesRequest(server string, params *ListMessagesParams) (*http.Request, error)
- func NewListSessionAgentRunEventsRequest(server string, agentRunId AgentRunID, params *ListSessionAgentRunEventsParams) (*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 NewListSessionTurnsRequest(server string, params *ListSessionTurnsParams) (*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 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 AgentRunDefinition
- type AgentRunEvent
- type AgentRunEventPage
- type AgentRunEventPageState
- type AgentRunID
- 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) 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) ListMessages(ctx context.Context, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListSessionAgentRunEvents(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) ListSessionTurns(ctx context.Context, params *ListSessionTurnsParams, ...) (*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) 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) 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) ListMessagesWithResponse(ctx context.Context, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*ListMessagesResponse, error)
- func (c *ClientWithResponses) ListSessionAgentRunEventsWithResponse(ctx context.Context, agentRunId AgentRunID, ...) (*ListSessionAgentRunEventsResponse, 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) ListSessionTurnsWithResponse(ctx context.Context, params *ListSessionTurnsParams, ...) (*ListSessionTurnsResponse, 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) 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 ContextSnapshot
- type Error
- type ErrorBadRequest
- type ErrorInternal
- type ErrorNotFound
- type ErrorUnauthorized
- 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 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 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 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 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 Message
- type MessagePage
- type MessageRole
- type MessageToolCall
- type ModelCall
- type ModelCallPage
- type ModelCallState
- type ModelRun
- type ModelRunID
- type ModelRunPage
- type ModelRunStage
- type ModelRunState
- type Offset
- type Order
- type PromptHash
- type PromptSnapshot
- type 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 RequestEditorFn
- type Session
- type SessionIDRequired
- type SessionNotice
- type SessionNoticeDelivery
- type SessionNoticePage
- type SessionNoticeRequest
- type SessionNoticeRequestDelivery
- 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
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 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 NewListMessagesRequest ¶
func NewListMessagesRequest(server string, params *ListMessagesParams) (*http.Request, error)
NewListMessagesRequest constructs an http.Request for the ListMessages method
func NewListSessionAgentRunEventsRequest ¶
func NewListSessionAgentRunEventsRequest(server string, agentRunId AgentRunID, params *ListSessionAgentRunEventsParams) (*http.Request, error)
NewListSessionAgentRunEventsRequest constructs an http.Request for the ListSessionAgentRunEvents 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 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 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 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"`
Workspace string `json:"workspace"`
}
AgentRun defines model for AgentRun.
type AgentRunCancelResponse ¶
type AgentRunCancelResponse struct {
AgentRunId openapi_types.UUID `json:"agentRunId"`
// CancelRequested True when this request found a running agent and signalled it. Cancelling an unknown, completed, or already cancelled run is not an error and reports false with the current state.
CancelRequested bool `json:"cancelRequested"`
State AgentRunCancelResponseState `json:"state"`
}
AgentRunCancelResponse defines model for AgentRunCancelResponse.
type AgentRunCancelResponseState ¶
type AgentRunCancelResponseState string
AgentRunCancelResponseState defines model for AgentRunCancelResponse.State.
const ( AgentRunCancelResponseStateCancelled AgentRunCancelResponseState = "cancelled" AgentRunCancelResponseStateCompleted AgentRunCancelResponseState = "completed" AgentRunCancelResponseStateFailed AgentRunCancelResponseState = "failed" AgentRunCancelResponseStateInterrupted AgentRunCancelResponseState = "interrupted" AgentRunCancelResponseStateRunning AgentRunCancelResponseState = "running" )
Defines values for AgentRunCancelResponseState.
func (AgentRunCancelResponseState) Valid ¶
func (e AgentRunCancelResponseState) Valid() bool
Valid indicates whether the value is a known member of the AgentRunCancelResponseState enum.
type AgentRunDefinition ¶
type AgentRunDefinition string
AgentRunDefinition defines model for AgentRun.Definition.
const ( AgentRunDefinitionAdHoc AgentRunDefinition = "ad-hoc" AgentRunDefinitionStored AgentRunDefinition = "stored" )
Defines values for AgentRunDefinition.
func (AgentRunDefinition) Valid ¶
func (e AgentRunDefinition) Valid() bool
Valid indicates whether the value is a known member of the AgentRunDefinition enum.
type AgentRunEvent ¶
type AgentRunEvent struct {
CreatedAt time.Time `json:"createdAt"`
Payload *map[string]interface{} `json:"payload,omitempty"`
Sequence int64 `json:"sequence"`
Type string `json:"type"`
}
AgentRunEvent defines model for AgentRunEvent.
type AgentRunEventPage ¶
type AgentRunEventPage struct {
AgentRunId openapi_types.UUID `json:"agentRunId"`
Events []AgentRunEvent `json:"events"`
HasMore bool `json:"hasMore"`
// NextCursor Pass back as cursor to continue from here.
NextCursor int64 `json:"nextCursor"`
State AgentRunEventPageState `json:"state"`
}
AgentRunEventPage defines model for AgentRunEventPage.
type AgentRunEventPageState ¶
type AgentRunEventPageState string
AgentRunEventPageState defines model for AgentRunEventPage.State.
const ( AgentRunEventPageStateCancelled AgentRunEventPageState = "cancelled" AgentRunEventPageStateCompleted AgentRunEventPageState = "completed" AgentRunEventPageStateFailed AgentRunEventPageState = "failed" AgentRunEventPageStateInterrupted AgentRunEventPageState = "interrupted" AgentRunEventPageStateRunning AgentRunEventPageState = "running" )
Defines values for AgentRunEventPageState.
func (AgentRunEventPageState) Valid ¶
func (e AgentRunEventPageState) Valid() bool
Valid indicates whether the value is a known member of the AgentRunEventPageState enum.
type AgentRunPage ¶
type AgentRunPage struct {
Agents []AgentRun `json:"agents"`
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
AgentRunPage defines model for AgentRunPage.
type AgentRunState ¶
type AgentRunState string
AgentRunState defines model for AgentRun.State.
const ( AgentRunStateCancelled AgentRunState = "cancelled" AgentRunStateCompleted AgentRunState = "completed" AgentRunStateFailed AgentRunState = "failed" AgentRunStateInterrupted AgentRunState = "interrupted" AgentRunStateRunning AgentRunState = "running" )
Defines values for AgentRunState.
func (AgentRunState) Valid ¶
func (e AgentRunState) Valid() bool
Valid indicates whether the value is a known member of the AgentRunState enum.
type CancelResponse ¶
type CancelResponse struct {
CancelRequested bool `json:"cancelRequested"`
}
CancelResponse defines model for CancelResponse.
type 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) 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) 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) 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) 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) 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) 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) 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 {
// ListMessages List stored conversation messages
//
// Corresponds with GET /messages (the `ListMessages` operationId).
ListMessages(ctx context.Context, params *ListMessagesParams, 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)
// 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)
// 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)
// 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)
// ListSessionTurns List durable turns
//
// Corresponds with GET /session/turns (the `ListSessionTurns` operationId).
ListSessionTurns(ctx context.Context, params *ListSessionTurnsParams, 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) 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) 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) 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) 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) 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) 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) 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 {
// 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)
// 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)
// 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)
// 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)
// 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)
// 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)
}
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 ContextSnapshot ¶ added in v0.4.0
type ContextSnapshot struct {
CreatedAt time.Time `json:"createdAt"`
Hash string `json:"hash"`
Manifest map[string]interface{} `json:"manifest"`
ResolvedContent string `json:"resolvedContent"`
}
ContextSnapshot defines model for ContextSnapshot.
type Error ¶
type Error struct {
Code string `json:"code"`
Details *map[string]interface{} `json:"details,omitempty"`
Message string `json:"message"`
}
Error defines model for Error.
type ErrorBadRequest ¶
type ErrorBadRequest = Error
ErrorBadRequest defines model for ErrorBadRequest.
type ErrorUnauthorized ¶
type ErrorUnauthorized = Error
ErrorUnauthorized defines model for ErrorUnauthorized.
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"`
}
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 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 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 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 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 Message ¶
type Message struct {
CompactionId *openapi_types.UUID `json:"compactionId,omitempty"`
Content string `json:"content"`
CreatedAt time.Time `json:"createdAt"`
Id openapi_types.UUID `json:"id"`
Incomplete *bool `json:"incomplete,omitempty"`
IsError *bool `json:"isError,omitempty"`
Model *string `json:"model,omitempty"`
Role MessageRole `json:"role"`
Sequence int64 `json:"sequence"`
Thinking *string `json:"thinking,omitempty"`
ToolCallId *string `json:"toolCallId,omitempty"`
ToolCalls *[]MessageToolCall `json:"toolCalls,omitempty"`
Workspace string `json:"workspace"`
}
Message defines model for Message.
type MessagePage ¶
type MessagePage struct {
HasMore bool `json:"hasMore"`
Items []Message `json:"items"`
Limit int32 `json:"limit"`
Offset int32 `json:"offset"`
}
MessagePage defines model for MessagePage.
type MessageRole ¶
type MessageRole string
MessageRole defines model for Message.Role.
const ( MessageRoleAssistant MessageRole = "assistant" MessageRoleTool MessageRole = "tool" MessageRoleUser MessageRole = "user" )
Defines values for MessageRole.
func (MessageRole) Valid ¶
func (e MessageRole) Valid() bool
Valid indicates whether the value is a known member of the MessageRole enum.
type MessageToolCall ¶
type MessageToolCall struct {
Arguments map[string]interface{} `json:"arguments"`
Id string `json:"id"`
Name string `json:"name"`
}
MessageToolCall defines model for MessageToolCall.
type ModelCall ¶ added in v0.4.0
type ModelCall struct {
BilledCostAmount string `json:"billedCostAmount"`
CacheReadTokens int64 `json:"cacheReadTokens"`
CacheWriteLongTtlTokens int64 `json:"cacheWriteLongTtlTokens"`
CacheWriteTokens int64 `json:"cacheWriteTokens"`
CompletedAt *time.Time `json:"completedAt,omitempty"`
CompletionTokens int64 `json:"completionTokens"`
CostKnown bool `json:"costKnown"`
FailureClassification string `json:"failureClassification"`
FailureDetail string `json:"failureDetail"`
FinishReason string `json:"finishReason"`
Id openapi_types.UUID `json:"id"`
ModelRunId openapi_types.UUID `json:"modelRunId"`
PromptTokens int64 `json:"promptTokens"`
ReasoningTokens int64 `json:"reasoningTokens"`
RequestMessages []interface{} `json:"requestMessages"`
RequestTools []interface{} `json:"requestTools"`
ResponseCostAmount string `json:"responseCostAmount"`
ResponseMessage *map[string]interface{} `json:"responseMessage"`
ResponseModelId string `json:"responseModelId"`
ResponseUsage map[string]interface{} `json:"responseUsage"`
RetryAttemptCount int64 `json:"retryAttemptCount"`
RetryAttempts []map[string]interface{} `json:"retryAttempts"`
RetryCostAmount string `json:"retryCostAmount"`
Round int64 `json:"round"`
SessionId openapi_types.UUID `json:"sessionId"`
StartedAt time.Time `json:"startedAt"`
State ModelCallState `json:"state"`
TotalAttempts int64 `json:"totalAttempts"`
TotalTokens int64 `json:"totalTokens"`
WastedCompletionTokens int64 `json:"wastedCompletionTokens"`
WastedPromptTokens int64 `json:"wastedPromptTokens"`
WastedTotalTokens int64 `json:"wastedTotalTokens"`
}
ModelCall defines model for ModelCall.
type ModelCallPage ¶ added in v0.4.0
type ModelCallPage struct {
Calls []ModelCall `json:"calls"`
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
ModelRun ModelRun `json:"modelRun"`
Offset int32 `json:"offset"`
}
ModelCallPage defines model for ModelCallPage.
type ModelCallState ¶ added in v0.4.0
type ModelCallState string
ModelCallState defines model for ModelCall.State.
const ( ModelCallStateCancelled ModelCallState = "cancelled" ModelCallStateCompleted ModelCallState = "completed" ModelCallStateFailed ModelCallState = "failed" ModelCallStateInterrupted ModelCallState = "interrupted" ModelCallStateRunning ModelCallState = "running" )
Defines values for ModelCallState.
func (ModelCallState) Valid ¶ added in v0.4.0
func (e ModelCallState) Valid() bool
Valid indicates whether the value is a known member of the ModelCallState enum.
type ModelRun ¶ added in v0.4.0
type ModelRun struct {
AgentRunId *openapi_types.UUID `json:"agentRunId,omitempty"`
BilledCostAmount string `json:"billedCostAmount"`
CompletedAt *time.Time `json:"completedAt,omitempty"`
ConnectionName string `json:"connectionName"`
CostKnown bool `json:"costKnown"`
FailureClassification string `json:"failureClassification"`
FailureDetail string `json:"failureDetail"`
FinishReason string `json:"finishReason"`
Id openapi_types.UUID `json:"id"`
ModelReference string `json:"modelReference"`
RequestSettings map[string]interface{} `json:"requestSettings"`
RequestedModelId string `json:"requestedModelId"`
ResponseCostAmount string `json:"responseCostAmount"`
ResponseInjections []interface{} `json:"responseInjections"`
ResponseMessages []interface{} `json:"responseMessages"`
ResponseModelId string `json:"responseModelId"`
ResponseText string `json:"responseText"`
ResponseThinking string `json:"responseThinking"`
ResponseUsage map[string]interface{} `json:"responseUsage"`
RetryCostAmount string `json:"retryCostAmount"`
SessionId openapi_types.UUID `json:"sessionId"`
Stage ModelRunStage `json:"stage"`
StartedAt time.Time `json:"startedAt"`
State ModelRunState `json:"state"`
TurnId openapi_types.UUID `json:"turnId"`
}
ModelRun defines model for ModelRun.
type ModelRunID ¶ added in v0.4.0
type ModelRunID = openapi_types.UUID
ModelRunID defines model for ModelRunID.
type ModelRunPage ¶ added in v0.4.0
type ModelRunPage struct {
HasMore bool `json:"hasMore"`
Limit int32 `json:"limit"`
ModelRuns []ModelRun `json:"modelRuns"`
Offset int32 `json:"offset"`
}
ModelRunPage defines model for ModelRunPage.
type ModelRunStage ¶ added in v0.4.0
type ModelRunStage string
ModelRunStage defines model for ModelRun.Stage.
const ( ModelRunStageChild ModelRunStage = "child" ModelRunStageCompaction ModelRunStage = "compaction" ModelRunStageTurn ModelRunStage = "turn" )
Defines values for ModelRunStage.
func (ModelRunStage) Valid ¶ added in v0.4.0
func (e ModelRunStage) Valid() bool
Valid indicates whether the value is a known member of the ModelRunStage enum.
type ModelRunState ¶ added in v0.4.0
type ModelRunState string
ModelRunState defines model for ModelRun.State.
const ( ModelRunStateCancelled ModelRunState = "cancelled" ModelRunStateCompleted ModelRunState = "completed" ModelRunStateFailed ModelRunState = "failed" ModelRunStateInterrupted ModelRunState = "interrupted" ModelRunStateRunning ModelRunState = "running" )
Defines values for ModelRunState.
func (ModelRunState) Valid ¶ added in v0.4.0
func (e ModelRunState) Valid() bool
Valid indicates whether the value is a known member of the ModelRunState enum.
type PromptSnapshot ¶ added in v0.4.0
type PromptSnapshot struct {
CreatedAt time.Time `json:"createdAt"`
EffectivePrompt string `json:"effectivePrompt"`
Hash string `json:"hash"`
}
PromptSnapshot defines model for PromptSnapshot.
type 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 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"`
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 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"`
}
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.