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.4.1 DO NOT EDIT.
Index ¶
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error)
- func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateRunRequest(server string, taskId openapi_types.UUID) (*http.Request, error)
- func NewCreateRunToolRequest(server string, runId openapi_types.UUID, body CreateRunToolJSONRequestBody) (*http.Request, error)
- func NewCreateRunToolRequestWithBody(server string, runId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSupervisionRequestRequest(server string, requestGroupId openapi_types.UUID, chainId openapi_types.UUID, ...) (*http.Request, error)
- func NewCreateSupervisionRequestRequestWithBody(server string, requestGroupId openapi_types.UUID, chainId openapi_types.UUID, ...) (*http.Request, error)
- func NewCreateSupervisionResultRequest(server string, supervisionRequestId openapi_types.UUID, ...) (*http.Request, error)
- func NewCreateSupervisionResultRequestWithBody(server string, supervisionRequestId openapi_types.UUID, contentType string, ...) (*http.Request, error)
- func NewCreateSupervisorRequest(server string, projectId openapi_types.UUID, ...) (*http.Request, error)
- func NewCreateSupervisorRequestWithBody(server string, projectId openapi_types.UUID, contentType string, ...) (*http.Request, error)
- func NewCreateTaskRequest(server string, projectId openapi_types.UUID, body CreateTaskJSONRequestBody) (*http.Request, error)
- func NewCreateTaskRequestWithBody(server string, projectId openapi_types.UUID, contentType string, ...) (*http.Request, error)
- func NewCreateToolRequestGroupRequest(server string, toolId openapi_types.UUID, ...) (*http.Request, error)
- func NewCreateToolRequestGroupRequestWithBody(server string, toolId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateToolRequestRequest(server string, requestGroupId openapi_types.UUID, ...) (*http.Request, error)
- func NewCreateToolRequestRequestWithBody(server string, requestGroupId openapi_types.UUID, contentType string, ...) (*http.Request, error)
- func NewCreateToolSupervisorChainsRequest(server string, toolId openapi_types.UUID, ...) (*http.Request, error)
- func NewCreateToolSupervisorChainsRequestWithBody(server string, toolId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewGetHubStatsRequest(server string) (*http.Request, error)
- func NewGetOpenAPIRequest(server string) (*http.Request, error)
- func NewGetProjectRequest(server string, projectId openapi_types.UUID) (*http.Request, error)
- func NewGetProjectTasksRequest(server string, projectId openapi_types.UUID) (*http.Request, error)
- func NewGetProjectToolsRequest(server string, projectId openapi_types.UUID) (*http.Request, error)
- func NewGetProjectsRequest(server string) (*http.Request, error)
- func NewGetRequestGroupRequest(server string, requestGroupId openapi_types.UUID) (*http.Request, error)
- func NewGetRequestGroupStatusRequest(server string, requestGroupId openapi_types.UUID) (*http.Request, error)
- func NewGetRunRequestGroupsRequest(server string, runId openapi_types.UUID) (*http.Request, error)
- func NewGetRunStateRequest(server string, runId openapi_types.UUID) (*http.Request, error)
- func NewGetRunStatusRequest(server string, runId openapi_types.UUID) (*http.Request, error)
- func NewGetRunToolsRequest(server string, runId openapi_types.UUID) (*http.Request, error)
- func NewGetSupervisionRequestStatusRequest(server string, supervisionRequestId openapi_types.UUID) (*http.Request, error)
- func NewGetSupervisionResultRequest(server string, supervisionRequestId openapi_types.UUID) (*http.Request, error)
- func NewGetSupervisionReviewPayloadRequest(server string, supervisionRequestId openapi_types.UUID) (*http.Request, error)
- func NewGetSupervisorRequest(server string, supervisorId openapi_types.UUID) (*http.Request, error)
- func NewGetSupervisorsRequest(server string, projectId openapi_types.UUID) (*http.Request, error)
- func NewGetSwaggerDocsRequest(server string) (*http.Request, error)
- func NewGetTaskRequest(server string, taskId openapi_types.UUID) (*http.Request, error)
- func NewGetTaskRunsRequest(server string, taskId openapi_types.UUID) (*http.Request, error)
- func NewGetToolRequest(server string, toolId openapi_types.UUID) (*http.Request, error)
- func NewGetToolSupervisorChainsRequest(server string, toolId openapi_types.UUID) (*http.Request, error)
- func NewUpdateRunResultRequest(server string, runId openapi_types.UUID, body UpdateRunResultJSONRequestBody) (*http.Request, error)
- func NewUpdateRunResultRequestWithBody(server string, runId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateRunStatusRequest(server string, runId openapi_types.UUID, body UpdateRunStatusJSONRequestBody) (*http.Request, error)
- func NewUpdateRunStatusRequestWithBody(server string, runId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type Arguments
- type ChainExecution
- type ChainExecutionState
- type ChainRequest
- type Choice
- type Client
- func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateRun(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateRunTool(ctx context.Context, runId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) CreateRunToolWithBody(ctx context.Context, runId openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateSupervisionRequest(ctx context.Context, requestGroupId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) CreateSupervisionRequestWithBody(ctx context.Context, requestGroupId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) CreateSupervisionResult(ctx context.Context, supervisionRequestId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) CreateSupervisionResultWithBody(ctx context.Context, supervisionRequestId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) CreateSupervisor(ctx context.Context, projectId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) CreateSupervisorWithBody(ctx context.Context, projectId openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateTask(ctx context.Context, projectId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) CreateTaskWithBody(ctx context.Context, projectId openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateToolRequest(ctx context.Context, requestGroupId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) CreateToolRequestGroup(ctx context.Context, toolId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) CreateToolRequestGroupWithBody(ctx context.Context, toolId openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateToolRequestWithBody(ctx context.Context, requestGroupId openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateToolSupervisorChains(ctx context.Context, toolId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) CreateToolSupervisorChainsWithBody(ctx context.Context, toolId openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *Client) GetHubStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOpenAPI(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProject(ctx context.Context, projectId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetProjectTasks(ctx context.Context, projectId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetProjectTools(ctx context.Context, projectId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetProjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetRequestGroup(ctx context.Context, requestGroupId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetRequestGroupStatus(ctx context.Context, requestGroupId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetRunRequestGroups(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetRunState(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetRunStatus(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetRunTools(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSupervisionRequestStatus(ctx context.Context, supervisionRequestId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetSupervisionResult(ctx context.Context, supervisionRequestId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetSupervisionReviewPayload(ctx context.Context, supervisionRequestId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetSupervisor(ctx context.Context, supervisorId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetSupervisors(ctx context.Context, projectId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetSwaggerDocs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTask(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTaskRuns(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTool(ctx context.Context, toolId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetToolSupervisorChains(ctx context.Context, toolId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateRunResult(ctx context.Context, runId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) UpdateRunResultWithBody(ctx context.Context, runId openapi_types.UUID, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateRunStatus(ctx context.Context, runId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) UpdateRunStatusWithBody(ctx context.Context, runId openapi_types.UUID, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateProjectResponse, error)
- func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, ...) (*CreateProjectResponse, error)
- func (c *ClientWithResponses) CreateRunToolWithBodyWithResponse(ctx context.Context, runId openapi_types.UUID, contentType string, ...) (*CreateRunToolResponse, error)
- func (c *ClientWithResponses) CreateRunToolWithResponse(ctx context.Context, runId openapi_types.UUID, ...) (*CreateRunToolResponse, error)
- func (c *ClientWithResponses) CreateRunWithResponse(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*CreateRunResponse, error)
- func (c *ClientWithResponses) CreateSupervisionRequestWithBodyWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, ...) (*CreateSupervisionRequestResponse, error)
- func (c *ClientWithResponses) CreateSupervisionRequestWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, ...) (*CreateSupervisionRequestResponse, error)
- func (c *ClientWithResponses) CreateSupervisionResultWithBodyWithResponse(ctx context.Context, supervisionRequestId openapi_types.UUID, ...) (*CreateSupervisionResultResponse, error)
- func (c *ClientWithResponses) CreateSupervisionResultWithResponse(ctx context.Context, supervisionRequestId openapi_types.UUID, ...) (*CreateSupervisionResultResponse, error)
- func (c *ClientWithResponses) CreateSupervisorWithBodyWithResponse(ctx context.Context, projectId openapi_types.UUID, contentType string, ...) (*CreateSupervisorResponse, error)
- func (c *ClientWithResponses) CreateSupervisorWithResponse(ctx context.Context, projectId openapi_types.UUID, ...) (*CreateSupervisorResponse, error)
- func (c *ClientWithResponses) CreateTaskWithBodyWithResponse(ctx context.Context, projectId openapi_types.UUID, contentType string, ...) (*CreateTaskResponse, error)
- func (c *ClientWithResponses) CreateTaskWithResponse(ctx context.Context, projectId openapi_types.UUID, ...) (*CreateTaskResponse, error)
- func (c *ClientWithResponses) CreateToolRequestGroupWithBodyWithResponse(ctx context.Context, toolId openapi_types.UUID, contentType string, ...) (*CreateToolRequestGroupResponse, error)
- func (c *ClientWithResponses) CreateToolRequestGroupWithResponse(ctx context.Context, toolId openapi_types.UUID, ...) (*CreateToolRequestGroupResponse, error)
- func (c *ClientWithResponses) CreateToolRequestWithBodyWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, contentType string, ...) (*CreateToolRequestResponse, error)
- func (c *ClientWithResponses) CreateToolRequestWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, ...) (*CreateToolRequestResponse, error)
- func (c *ClientWithResponses) CreateToolSupervisorChainsWithBodyWithResponse(ctx context.Context, toolId openapi_types.UUID, contentType string, ...) (*CreateToolSupervisorChainsResponse, error)
- func (c *ClientWithResponses) CreateToolSupervisorChainsWithResponse(ctx context.Context, toolId openapi_types.UUID, ...) (*CreateToolSupervisorChainsResponse, error)
- func (c *ClientWithResponses) GetHubStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHubStatsResponse, error)
- func (c *ClientWithResponses) GetOpenAPIWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIResponse, error)
- func (c *ClientWithResponses) GetProjectTasksWithResponse(ctx context.Context, projectId openapi_types.UUID, ...) (*GetProjectTasksResponse, error)
- func (c *ClientWithResponses) GetProjectToolsWithResponse(ctx context.Context, projectId openapi_types.UUID, ...) (*GetProjectToolsResponse, error)
- func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, projectId openapi_types.UUID, ...) (*GetProjectResponse, error)
- func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
- func (c *ClientWithResponses) GetRequestGroupStatusWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, ...) (*GetRequestGroupStatusResponse, error)
- func (c *ClientWithResponses) GetRequestGroupWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, ...) (*GetRequestGroupResponse, error)
- func (c *ClientWithResponses) GetRunRequestGroupsWithResponse(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRunRequestGroupsResponse, error)
- func (c *ClientWithResponses) GetRunStateWithResponse(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRunStateResponse, error)
- func (c *ClientWithResponses) GetRunStatusWithResponse(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRunStatusResponse, error)
- func (c *ClientWithResponses) GetRunToolsWithResponse(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRunToolsResponse, error)
- func (c *ClientWithResponses) GetSupervisionRequestStatusWithResponse(ctx context.Context, supervisionRequestId openapi_types.UUID, ...) (*GetSupervisionRequestStatusResponse, error)
- func (c *ClientWithResponses) GetSupervisionResultWithResponse(ctx context.Context, supervisionRequestId openapi_types.UUID, ...) (*GetSupervisionResultResponse, error)
- func (c *ClientWithResponses) GetSupervisionReviewPayloadWithResponse(ctx context.Context, supervisionRequestId openapi_types.UUID, ...) (*GetSupervisionReviewPayloadResponse, error)
- func (c *ClientWithResponses) GetSupervisorWithResponse(ctx context.Context, supervisorId openapi_types.UUID, ...) (*GetSupervisorResponse, error)
- func (c *ClientWithResponses) GetSupervisorsWithResponse(ctx context.Context, projectId openapi_types.UUID, ...) (*GetSupervisorsResponse, error)
- func (c *ClientWithResponses) GetSwaggerDocsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSwaggerDocsResponse, error)
- func (c *ClientWithResponses) GetTaskRunsWithResponse(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTaskRunsResponse, error)
- func (c *ClientWithResponses) GetTaskWithResponse(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTaskResponse, error)
- func (c *ClientWithResponses) GetToolSupervisorChainsWithResponse(ctx context.Context, toolId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetToolSupervisorChainsResponse, error)
- func (c *ClientWithResponses) GetToolWithResponse(ctx context.Context, toolId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetToolResponse, error)
- func (c *ClientWithResponses) UpdateRunResultWithBodyWithResponse(ctx context.Context, runId openapi_types.UUID, contentType string, ...) (*UpdateRunResultResponse, error)
- func (c *ClientWithResponses) UpdateRunResultWithResponse(ctx context.Context, runId openapi_types.UUID, ...) (*UpdateRunResultResponse, error)
- func (c *ClientWithResponses) UpdateRunStatusWithBodyWithResponse(ctx context.Context, runId openapi_types.UUID, contentType string, ...) (*UpdateRunStatusResponse, error)
- func (c *ClientWithResponses) UpdateRunStatusWithResponse(ctx context.Context, runId openapi_types.UUID, ...) (*UpdateRunStatusResponse, error)
- type ClientWithResponsesInterface
- type CreateProjectJSONBody
- type CreateProjectJSONRequestBody
- type CreateProjectResponse
- type CreateRunResponse
- type CreateRunToolJSONBody
- type CreateRunToolJSONRequestBody
- type CreateRunToolResponse
- type CreateSupervisionRequestJSONRequestBody
- type CreateSupervisionRequestResponse
- type CreateSupervisionResultJSONRequestBody
- type CreateSupervisionResultResponse
- type CreateSupervisorJSONRequestBody
- type CreateSupervisorResponse
- type CreateTaskJSONBody
- type CreateTaskJSONRequestBody
- type CreateTaskResponse
- type CreateToolRequestGroupJSONRequestBody
- type CreateToolRequestGroupResponse
- type CreateToolRequestJSONRequestBody
- type CreateToolRequestResponse
- type CreateToolSupervisorChainsJSONBody
- type CreateToolSupervisorChainsJSONRequestBody
- type CreateToolSupervisorChainsResponse
- type Decision
- type ErrorResponse
- type GetHubStatsResponse
- type GetOpenAPIResponse
- type GetProjectResponse
- type GetProjectTasksResponse
- type GetProjectToolsResponse
- type GetProjectsResponse
- type GetRequestGroupResponse
- type GetRequestGroupStatusResponse
- type GetRunRequestGroupsResponse
- type GetRunStateResponse
- type GetRunStatusResponse
- type GetRunToolsResponse
- type GetSupervisionRequestStatusResponse
- type GetSupervisionResultResponse
- type GetSupervisionReviewPayloadResponse
- type GetSupervisorResponse
- type GetSupervisorsResponse
- type GetSwaggerDocsResponse
- type GetTaskResponse
- type GetTaskRunsResponse
- type GetToolResponse
- type GetToolSupervisorChainsResponse
- type HttpRequestDoer
- type HubStats
- type InvalidParamFormatError
- type Message
- type MessageRole
- type MessageType
- type MiddlewareFunc
- type Output
- type Project
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type ReviewPayload
- type Run
- type RunExecution
- type RunState
- type ServeMux
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) CreateProject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateRun(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateRunTool(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateSupervisionRequest(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateSupervisionResult(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateSupervisor(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateTask(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateToolRequest(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateToolRequestGroup(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateToolSupervisorChains(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHubStats(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOpenAPI(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProjectTasks(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProjectTools(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetProjects(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRequestGroup(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRequestGroupStatus(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRunRequestGroups(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRunState(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRunStatus(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRunTools(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSupervisionRequestStatus(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSupervisionResult(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSupervisionReviewPayload(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSupervisor(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSupervisors(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSwaggerDocs(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTask(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTaskRuns(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetTool(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetToolSupervisorChains(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateRunResult(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateRunStatus(w http.ResponseWriter, r *http.Request)
- type Status
- type StdHTTPServerOptions
- type SupervisionRequest
- type SupervisionRequestState
- type SupervisionResult
- type SupervisionStatus
- type Supervisor
- type SupervisorChain
- type SupervisorType
- type Task
- type TaskState
- type TooManyValuesForParamError
- type Tool
- type ToolCall
- type ToolChoice
- type ToolRequest
- type ToolRequestGroup
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type UpdateRunResultJSONBody
- type UpdateRunResultJSONRequestBody
- type UpdateRunResultResponse
- type UpdateRunStatusJSONRequestBody
- type UpdateRunStatusResponse
- type Usage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func NewCreateProjectRequest ¶
func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error)
NewCreateProjectRequest calls the generic CreateProject builder with application/json body
func NewCreateProjectRequestWithBody ¶
func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateProjectRequestWithBody generates requests for CreateProject with any type of body
func NewCreateRunRequest ¶
NewCreateRunRequest generates requests for CreateRun
func NewCreateRunToolRequest ¶
func NewCreateRunToolRequest(server string, runId openapi_types.UUID, body CreateRunToolJSONRequestBody) (*http.Request, error)
NewCreateRunToolRequest calls the generic CreateRunTool builder with application/json body
func NewCreateRunToolRequestWithBody ¶
func NewCreateRunToolRequestWithBody(server string, runId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewCreateRunToolRequestWithBody generates requests for CreateRunTool with any type of body
func NewCreateSupervisionRequestRequest ¶
func NewCreateSupervisionRequestRequest(server string, requestGroupId openapi_types.UUID, chainId openapi_types.UUID, supervisorId openapi_types.UUID, body CreateSupervisionRequestJSONRequestBody) (*http.Request, error)
NewCreateSupervisionRequestRequest calls the generic CreateSupervisionRequest builder with application/json body
func NewCreateSupervisionRequestRequestWithBody ¶
func NewCreateSupervisionRequestRequestWithBody(server string, requestGroupId openapi_types.UUID, chainId openapi_types.UUID, supervisorId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewCreateSupervisionRequestRequestWithBody generates requests for CreateSupervisionRequest with any type of body
func NewCreateSupervisionResultRequest ¶
func NewCreateSupervisionResultRequest(server string, supervisionRequestId openapi_types.UUID, body CreateSupervisionResultJSONRequestBody) (*http.Request, error)
NewCreateSupervisionResultRequest calls the generic CreateSupervisionResult builder with application/json body
func NewCreateSupervisionResultRequestWithBody ¶
func NewCreateSupervisionResultRequestWithBody(server string, supervisionRequestId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewCreateSupervisionResultRequestWithBody generates requests for CreateSupervisionResult with any type of body
func NewCreateSupervisorRequest ¶
func NewCreateSupervisorRequest(server string, projectId openapi_types.UUID, body CreateSupervisorJSONRequestBody) (*http.Request, error)
NewCreateSupervisorRequest calls the generic CreateSupervisor builder with application/json body
func NewCreateSupervisorRequestWithBody ¶
func NewCreateSupervisorRequestWithBody(server string, projectId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewCreateSupervisorRequestWithBody generates requests for CreateSupervisor with any type of body
func NewCreateTaskRequest ¶
func NewCreateTaskRequest(server string, projectId openapi_types.UUID, body CreateTaskJSONRequestBody) (*http.Request, error)
NewCreateTaskRequest calls the generic CreateTask builder with application/json body
func NewCreateTaskRequestWithBody ¶
func NewCreateTaskRequestWithBody(server string, projectId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewCreateTaskRequestWithBody generates requests for CreateTask with any type of body
func NewCreateToolRequestGroupRequest ¶
func NewCreateToolRequestGroupRequest(server string, toolId openapi_types.UUID, body CreateToolRequestGroupJSONRequestBody) (*http.Request, error)
NewCreateToolRequestGroupRequest calls the generic CreateToolRequestGroup builder with application/json body
func NewCreateToolRequestGroupRequestWithBody ¶
func NewCreateToolRequestGroupRequestWithBody(server string, toolId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewCreateToolRequestGroupRequestWithBody generates requests for CreateToolRequestGroup with any type of body
func NewCreateToolRequestRequest ¶
func NewCreateToolRequestRequest(server string, requestGroupId openapi_types.UUID, body CreateToolRequestJSONRequestBody) (*http.Request, error)
NewCreateToolRequestRequest calls the generic CreateToolRequest builder with application/json body
func NewCreateToolRequestRequestWithBody ¶
func NewCreateToolRequestRequestWithBody(server string, requestGroupId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewCreateToolRequestRequestWithBody generates requests for CreateToolRequest with any type of body
func NewCreateToolSupervisorChainsRequest ¶
func NewCreateToolSupervisorChainsRequest(server string, toolId openapi_types.UUID, body CreateToolSupervisorChainsJSONRequestBody) (*http.Request, error)
NewCreateToolSupervisorChainsRequest calls the generic CreateToolSupervisorChains builder with application/json body
func NewCreateToolSupervisorChainsRequestWithBody ¶
func NewCreateToolSupervisorChainsRequestWithBody(server string, toolId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewCreateToolSupervisorChainsRequestWithBody generates requests for CreateToolSupervisorChains with any type of body
func NewGetHubStatsRequest ¶
NewGetHubStatsRequest generates requests for GetHubStats
func NewGetOpenAPIRequest ¶
NewGetOpenAPIRequest generates requests for GetOpenAPI
func NewGetProjectRequest ¶
NewGetProjectRequest generates requests for GetProject
func NewGetProjectTasksRequest ¶
NewGetProjectTasksRequest generates requests for GetProjectTasks
func NewGetProjectToolsRequest ¶
NewGetProjectToolsRequest generates requests for GetProjectTools
func NewGetProjectsRequest ¶
NewGetProjectsRequest generates requests for GetProjects
func NewGetRequestGroupRequest ¶
func NewGetRequestGroupRequest(server string, requestGroupId openapi_types.UUID) (*http.Request, error)
NewGetRequestGroupRequest generates requests for GetRequestGroup
func NewGetRequestGroupStatusRequest ¶
func NewGetRequestGroupStatusRequest(server string, requestGroupId openapi_types.UUID) (*http.Request, error)
NewGetRequestGroupStatusRequest generates requests for GetRequestGroupStatus
func NewGetRunRequestGroupsRequest ¶
NewGetRunRequestGroupsRequest generates requests for GetRunRequestGroups
func NewGetRunStateRequest ¶
NewGetRunStateRequest generates requests for GetRunState
func NewGetRunStatusRequest ¶
NewGetRunStatusRequest generates requests for GetRunStatus
func NewGetRunToolsRequest ¶
NewGetRunToolsRequest generates requests for GetRunTools
func NewGetSupervisionRequestStatusRequest ¶
func NewGetSupervisionRequestStatusRequest(server string, supervisionRequestId openapi_types.UUID) (*http.Request, error)
NewGetSupervisionRequestStatusRequest generates requests for GetSupervisionRequestStatus
func NewGetSupervisionResultRequest ¶
func NewGetSupervisionResultRequest(server string, supervisionRequestId openapi_types.UUID) (*http.Request, error)
NewGetSupervisionResultRequest generates requests for GetSupervisionResult
func NewGetSupervisionReviewPayloadRequest ¶
func NewGetSupervisionReviewPayloadRequest(server string, supervisionRequestId openapi_types.UUID) (*http.Request, error)
NewGetSupervisionReviewPayloadRequest generates requests for GetSupervisionReviewPayload
func NewGetSupervisorRequest ¶
NewGetSupervisorRequest generates requests for GetSupervisor
func NewGetSupervisorsRequest ¶
NewGetSupervisorsRequest generates requests for GetSupervisors
func NewGetSwaggerDocsRequest ¶
NewGetSwaggerDocsRequest generates requests for GetSwaggerDocs
func NewGetTaskRequest ¶
NewGetTaskRequest generates requests for GetTask
func NewGetTaskRunsRequest ¶
NewGetTaskRunsRequest generates requests for GetTaskRuns
func NewGetToolRequest ¶
NewGetToolRequest generates requests for GetTool
func NewGetToolSupervisorChainsRequest ¶
func NewGetToolSupervisorChainsRequest(server string, toolId openapi_types.UUID) (*http.Request, error)
NewGetToolSupervisorChainsRequest generates requests for GetToolSupervisorChains
func NewUpdateRunResultRequest ¶
func NewUpdateRunResultRequest(server string, runId openapi_types.UUID, body UpdateRunResultJSONRequestBody) (*http.Request, error)
NewUpdateRunResultRequest calls the generic UpdateRunResult builder with application/json body
func NewUpdateRunResultRequestWithBody ¶
func NewUpdateRunResultRequestWithBody(server string, runId openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateRunResultRequestWithBody generates requests for UpdateRunResult with any type of body
func NewUpdateRunStatusRequest ¶
func NewUpdateRunStatusRequest(server string, runId openapi_types.UUID, body UpdateRunStatusJSONRequestBody) (*http.Request, error)
NewUpdateRunStatusRequest calls the generic UpdateRunStatus builder with application/json body
Types ¶
type ChainExecution ¶
type ChainExecution struct { ChainId openapi_types.UUID `json:"chain_id"` CreatedAt time.Time `json:"created_at"` Id openapi_types.UUID `json:"id"` RequestGroupId openapi_types.UUID `json:"request_group_id"` }
ChainExecution defines model for ChainExecution.
type ChainExecutionState ¶
type ChainExecutionState struct { Chain SupervisorChain `json:"chain"` ChainExecution ChainExecution `json:"chain_execution"` SupervisionRequests []SupervisionRequestState `json:"supervision_requests"` }
ChainExecutionState defines model for ChainExecutionState.
type ChainRequest ¶
type ChainRequest struct { // SupervisorIds Array of supervisor IDs to create chains with SupervisorIds *[]openapi_types.UUID `json:"supervisor_ids,omitempty"` }
ChainRequest defines model for ChainRequest.
type Choice ¶
type Choice struct { Message Message `json:"message"` StopReason *string `json:"stop_reason,omitempty"` }
Choice defines model for Choice.
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) CreateProject ¶
func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateProjectWithBody ¶
func (*Client) CreateRun ¶
func (c *Client) CreateRun(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateRunTool ¶
func (c *Client) CreateRunTool(ctx context.Context, runId openapi_types.UUID, body CreateRunToolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateRunToolWithBody ¶
func (*Client) CreateSupervisionRequest ¶
func (c *Client) CreateSupervisionRequest(ctx context.Context, requestGroupId openapi_types.UUID, chainId openapi_types.UUID, supervisorId openapi_types.UUID, body CreateSupervisionRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSupervisionRequestWithBody ¶
func (c *Client) CreateSupervisionRequestWithBody(ctx context.Context, requestGroupId openapi_types.UUID, chainId openapi_types.UUID, supervisorId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSupervisionResult ¶
func (c *Client) CreateSupervisionResult(ctx context.Context, supervisionRequestId openapi_types.UUID, body CreateSupervisionResultJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSupervisionResultWithBody ¶
func (*Client) CreateSupervisor ¶
func (c *Client) CreateSupervisor(ctx context.Context, projectId openapi_types.UUID, body CreateSupervisorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSupervisorWithBody ¶
func (*Client) CreateTask ¶
func (c *Client) CreateTask(ctx context.Context, projectId openapi_types.UUID, body CreateTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateTaskWithBody ¶
func (*Client) CreateToolRequest ¶
func (c *Client) CreateToolRequest(ctx context.Context, requestGroupId openapi_types.UUID, body CreateToolRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateToolRequestGroup ¶
func (c *Client) CreateToolRequestGroup(ctx context.Context, toolId openapi_types.UUID, body CreateToolRequestGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateToolRequestGroupWithBody ¶
func (*Client) CreateToolRequestWithBody ¶
func (*Client) CreateToolSupervisorChains ¶
func (c *Client) CreateToolSupervisorChains(ctx context.Context, toolId openapi_types.UUID, body CreateToolSupervisorChainsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateToolSupervisorChainsWithBody ¶
func (*Client) GetHubStats ¶
func (*Client) GetOpenAPI ¶
func (*Client) GetProject ¶
func (c *Client) GetProject(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetProjectTasks ¶
func (c *Client) GetProjectTasks(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetProjectTools ¶
func (c *Client) GetProjectTools(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetProjects ¶
func (*Client) GetRequestGroup ¶
func (c *Client) GetRequestGroup(ctx context.Context, requestGroupId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetRequestGroupStatus ¶
func (c *Client) GetRequestGroupStatus(ctx context.Context, requestGroupId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetRunRequestGroups ¶
func (c *Client) GetRunRequestGroups(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetRunState ¶
func (c *Client) GetRunState(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetRunStatus ¶
func (c *Client) GetRunStatus(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetRunTools ¶
func (c *Client) GetRunTools(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSupervisionRequestStatus ¶
func (c *Client) GetSupervisionRequestStatus(ctx context.Context, supervisionRequestId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSupervisionResult ¶
func (c *Client) GetSupervisionResult(ctx context.Context, supervisionRequestId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSupervisionReviewPayload ¶
func (c *Client) GetSupervisionReviewPayload(ctx context.Context, supervisionRequestId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSupervisor ¶
func (c *Client) GetSupervisor(ctx context.Context, supervisorId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSupervisors ¶
func (c *Client) GetSupervisors(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSwaggerDocs ¶
func (*Client) GetTask ¶
func (c *Client) GetTask(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTaskRuns ¶
func (c *Client) GetTaskRuns(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTool ¶
func (c *Client) GetTool(ctx context.Context, toolId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetToolSupervisorChains ¶
func (c *Client) GetToolSupervisorChains(ctx context.Context, toolId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateRunResult ¶
func (c *Client) UpdateRunResult(ctx context.Context, runId openapi_types.UUID, body UpdateRunResultJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateRunResultWithBody ¶
func (*Client) UpdateRunStatus ¶
func (c *Client) UpdateRunStatus(ctx context.Context, runId openapi_types.UUID, body UpdateRunStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateRunStatusWithBody ¶
type ClientInterface ¶
type ClientInterface interface { // GetOpenAPI request GetOpenAPI(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjects request GetProjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateProjectWithBody request with any body CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProject request GetProject(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSupervisors request GetSupervisors(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateSupervisorWithBody request with any body CreateSupervisorWithBody(ctx context.Context, projectId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateSupervisor(ctx context.Context, projectId openapi_types.UUID, body CreateSupervisorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjectTasks request GetProjectTasks(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateTaskWithBody request with any body CreateTaskWithBody(ctx context.Context, projectId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateTask(ctx context.Context, projectId openapi_types.UUID, body CreateTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjectTools request GetProjectTools(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetRequestGroup request GetRequestGroup(ctx context.Context, requestGroupId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateSupervisionRequestWithBody request with any body CreateSupervisionRequestWithBody(ctx context.Context, requestGroupId openapi_types.UUID, chainId openapi_types.UUID, supervisorId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateSupervisionRequest(ctx context.Context, requestGroupId openapi_types.UUID, chainId openapi_types.UUID, supervisorId openapi_types.UUID, body CreateSupervisionRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetRequestGroupStatus request GetRequestGroupStatus(ctx context.Context, requestGroupId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateToolRequestWithBody request with any body CreateToolRequestWithBody(ctx context.Context, requestGroupId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateToolRequest(ctx context.Context, requestGroupId openapi_types.UUID, body CreateToolRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetRunRequestGroups request GetRunRequestGroups(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateRunResultWithBody request with any body UpdateRunResultWithBody(ctx context.Context, runId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateRunResult(ctx context.Context, runId openapi_types.UUID, body UpdateRunResultJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetRunState request GetRunState(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetRunStatus request GetRunStatus(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateRunStatusWithBody request with any body UpdateRunStatusWithBody(ctx context.Context, runId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateRunStatus(ctx context.Context, runId openapi_types.UUID, body UpdateRunStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetRunTools request GetRunTools(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateRunToolWithBody request with any body CreateRunToolWithBody(ctx context.Context, runId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateRunTool(ctx context.Context, runId openapi_types.UUID, body CreateRunToolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetHubStats request GetHubStats(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSupervisionResult request GetSupervisionResult(ctx context.Context, supervisionRequestId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateSupervisionResultWithBody request with any body CreateSupervisionResultWithBody(ctx context.Context, supervisionRequestId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateSupervisionResult(ctx context.Context, supervisionRequestId openapi_types.UUID, body CreateSupervisionResultJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSupervisionReviewPayload request GetSupervisionReviewPayload(ctx context.Context, supervisionRequestId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSupervisionRequestStatus request GetSupervisionRequestStatus(ctx context.Context, supervisionRequestId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSupervisor request GetSupervisor(ctx context.Context, supervisorId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSwaggerDocs request GetSwaggerDocs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTask request GetTask(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTaskRuns request GetTaskRuns(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateRun request CreateRun(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTool request GetTool(ctx context.Context, toolId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateToolRequestGroupWithBody request with any body CreateToolRequestGroupWithBody(ctx context.Context, toolId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateToolRequestGroup(ctx context.Context, toolId openapi_types.UUID, body CreateToolRequestGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetToolSupervisorChains request GetToolSupervisorChains(ctx context.Context, toolId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateToolSupervisorChainsWithBody request with any body CreateToolSupervisorChainsWithBody(ctx context.Context, toolId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateToolSupervisorChains(ctx context.Context, toolId openapi_types.UUID, body CreateToolSupervisorChainsJSONRequestBody, 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) CreateProjectWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectResponse
func (*ClientWithResponses) CreateProjectWithResponse ¶
func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
func (*ClientWithResponses) CreateRunToolWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateRunToolWithBodyWithResponse(ctx context.Context, runId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRunToolResponse, error)
CreateRunToolWithBodyWithResponse request with arbitrary body returning *CreateRunToolResponse
func (*ClientWithResponses) CreateRunToolWithResponse ¶
func (c *ClientWithResponses) CreateRunToolWithResponse(ctx context.Context, runId openapi_types.UUID, body CreateRunToolJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRunToolResponse, error)
func (*ClientWithResponses) CreateRunWithResponse ¶
func (c *ClientWithResponses) CreateRunWithResponse(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*CreateRunResponse, error)
CreateRunWithResponse request returning *CreateRunResponse
func (*ClientWithResponses) CreateSupervisionRequestWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSupervisionRequestWithBodyWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, chainId openapi_types.UUID, supervisorId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSupervisionRequestResponse, error)
CreateSupervisionRequestWithBodyWithResponse request with arbitrary body returning *CreateSupervisionRequestResponse
func (*ClientWithResponses) CreateSupervisionRequestWithResponse ¶
func (c *ClientWithResponses) CreateSupervisionRequestWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, chainId openapi_types.UUID, supervisorId openapi_types.UUID, body CreateSupervisionRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSupervisionRequestResponse, error)
func (*ClientWithResponses) CreateSupervisionResultWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSupervisionResultWithBodyWithResponse(ctx context.Context, supervisionRequestId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSupervisionResultResponse, error)
CreateSupervisionResultWithBodyWithResponse request with arbitrary body returning *CreateSupervisionResultResponse
func (*ClientWithResponses) CreateSupervisionResultWithResponse ¶
func (c *ClientWithResponses) CreateSupervisionResultWithResponse(ctx context.Context, supervisionRequestId openapi_types.UUID, body CreateSupervisionResultJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSupervisionResultResponse, error)
func (*ClientWithResponses) CreateSupervisorWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSupervisorWithBodyWithResponse(ctx context.Context, projectId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSupervisorResponse, error)
CreateSupervisorWithBodyWithResponse request with arbitrary body returning *CreateSupervisorResponse
func (*ClientWithResponses) CreateSupervisorWithResponse ¶
func (c *ClientWithResponses) CreateSupervisorWithResponse(ctx context.Context, projectId openapi_types.UUID, body CreateSupervisorJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSupervisorResponse, error)
func (*ClientWithResponses) CreateTaskWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateTaskWithBodyWithResponse(ctx context.Context, projectId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTaskResponse, error)
CreateTaskWithBodyWithResponse request with arbitrary body returning *CreateTaskResponse
func (*ClientWithResponses) CreateTaskWithResponse ¶
func (c *ClientWithResponses) CreateTaskWithResponse(ctx context.Context, projectId openapi_types.UUID, body CreateTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTaskResponse, error)
func (*ClientWithResponses) CreateToolRequestGroupWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateToolRequestGroupWithBodyWithResponse(ctx context.Context, toolId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateToolRequestGroupResponse, error)
CreateToolRequestGroupWithBodyWithResponse request with arbitrary body returning *CreateToolRequestGroupResponse
func (*ClientWithResponses) CreateToolRequestGroupWithResponse ¶
func (c *ClientWithResponses) CreateToolRequestGroupWithResponse(ctx context.Context, toolId openapi_types.UUID, body CreateToolRequestGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateToolRequestGroupResponse, error)
func (*ClientWithResponses) CreateToolRequestWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateToolRequestWithBodyWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateToolRequestResponse, error)
CreateToolRequestWithBodyWithResponse request with arbitrary body returning *CreateToolRequestResponse
func (*ClientWithResponses) CreateToolRequestWithResponse ¶
func (c *ClientWithResponses) CreateToolRequestWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, body CreateToolRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateToolRequestResponse, error)
func (*ClientWithResponses) CreateToolSupervisorChainsWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateToolSupervisorChainsWithBodyWithResponse(ctx context.Context, toolId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateToolSupervisorChainsResponse, error)
CreateToolSupervisorChainsWithBodyWithResponse request with arbitrary body returning *CreateToolSupervisorChainsResponse
func (*ClientWithResponses) CreateToolSupervisorChainsWithResponse ¶
func (c *ClientWithResponses) CreateToolSupervisorChainsWithResponse(ctx context.Context, toolId openapi_types.UUID, body CreateToolSupervisorChainsJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateToolSupervisorChainsResponse, error)
func (*ClientWithResponses) GetHubStatsWithResponse ¶
func (c *ClientWithResponses) GetHubStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHubStatsResponse, error)
GetHubStatsWithResponse request returning *GetHubStatsResponse
func (*ClientWithResponses) GetOpenAPIWithResponse ¶
func (c *ClientWithResponses) GetOpenAPIWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIResponse, error)
GetOpenAPIWithResponse request returning *GetOpenAPIResponse
func (*ClientWithResponses) GetProjectTasksWithResponse ¶
func (c *ClientWithResponses) GetProjectTasksWithResponse(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectTasksResponse, error)
GetProjectTasksWithResponse request returning *GetProjectTasksResponse
func (*ClientWithResponses) GetProjectToolsWithResponse ¶
func (c *ClientWithResponses) GetProjectToolsWithResponse(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectToolsResponse, error)
GetProjectToolsWithResponse request returning *GetProjectToolsResponse
func (*ClientWithResponses) GetProjectWithResponse ¶
func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)
GetProjectWithResponse request returning *GetProjectResponse
func (*ClientWithResponses) GetProjectsWithResponse ¶
func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
GetProjectsWithResponse request returning *GetProjectsResponse
func (*ClientWithResponses) GetRequestGroupStatusWithResponse ¶
func (c *ClientWithResponses) GetRequestGroupStatusWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRequestGroupStatusResponse, error)
GetRequestGroupStatusWithResponse request returning *GetRequestGroupStatusResponse
func (*ClientWithResponses) GetRequestGroupWithResponse ¶
func (c *ClientWithResponses) GetRequestGroupWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRequestGroupResponse, error)
GetRequestGroupWithResponse request returning *GetRequestGroupResponse
func (*ClientWithResponses) GetRunRequestGroupsWithResponse ¶
func (c *ClientWithResponses) GetRunRequestGroupsWithResponse(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRunRequestGroupsResponse, error)
GetRunRequestGroupsWithResponse request returning *GetRunRequestGroupsResponse
func (*ClientWithResponses) GetRunStateWithResponse ¶
func (c *ClientWithResponses) GetRunStateWithResponse(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRunStateResponse, error)
GetRunStateWithResponse request returning *GetRunStateResponse
func (*ClientWithResponses) GetRunStatusWithResponse ¶
func (c *ClientWithResponses) GetRunStatusWithResponse(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRunStatusResponse, error)
GetRunStatusWithResponse request returning *GetRunStatusResponse
func (*ClientWithResponses) GetRunToolsWithResponse ¶
func (c *ClientWithResponses) GetRunToolsWithResponse(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRunToolsResponse, error)
GetRunToolsWithResponse request returning *GetRunToolsResponse
func (*ClientWithResponses) GetSupervisionRequestStatusWithResponse ¶
func (c *ClientWithResponses) GetSupervisionRequestStatusWithResponse(ctx context.Context, supervisionRequestId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSupervisionRequestStatusResponse, error)
GetSupervisionRequestStatusWithResponse request returning *GetSupervisionRequestStatusResponse
func (*ClientWithResponses) GetSupervisionResultWithResponse ¶
func (c *ClientWithResponses) GetSupervisionResultWithResponse(ctx context.Context, supervisionRequestId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSupervisionResultResponse, error)
GetSupervisionResultWithResponse request returning *GetSupervisionResultResponse
func (*ClientWithResponses) GetSupervisionReviewPayloadWithResponse ¶
func (c *ClientWithResponses) GetSupervisionReviewPayloadWithResponse(ctx context.Context, supervisionRequestId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSupervisionReviewPayloadResponse, error)
GetSupervisionReviewPayloadWithResponse request returning *GetSupervisionReviewPayloadResponse
func (*ClientWithResponses) GetSupervisorWithResponse ¶
func (c *ClientWithResponses) GetSupervisorWithResponse(ctx context.Context, supervisorId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSupervisorResponse, error)
GetSupervisorWithResponse request returning *GetSupervisorResponse
func (*ClientWithResponses) GetSupervisorsWithResponse ¶
func (c *ClientWithResponses) GetSupervisorsWithResponse(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSupervisorsResponse, error)
GetSupervisorsWithResponse request returning *GetSupervisorsResponse
func (*ClientWithResponses) GetSwaggerDocsWithResponse ¶
func (c *ClientWithResponses) GetSwaggerDocsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSwaggerDocsResponse, error)
GetSwaggerDocsWithResponse request returning *GetSwaggerDocsResponse
func (*ClientWithResponses) GetTaskRunsWithResponse ¶
func (c *ClientWithResponses) GetTaskRunsWithResponse(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTaskRunsResponse, error)
GetTaskRunsWithResponse request returning *GetTaskRunsResponse
func (*ClientWithResponses) GetTaskWithResponse ¶
func (c *ClientWithResponses) GetTaskWithResponse(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTaskResponse, error)
GetTaskWithResponse request returning *GetTaskResponse
func (*ClientWithResponses) GetToolSupervisorChainsWithResponse ¶
func (c *ClientWithResponses) GetToolSupervisorChainsWithResponse(ctx context.Context, toolId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetToolSupervisorChainsResponse, error)
GetToolSupervisorChainsWithResponse request returning *GetToolSupervisorChainsResponse
func (*ClientWithResponses) GetToolWithResponse ¶
func (c *ClientWithResponses) GetToolWithResponse(ctx context.Context, toolId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetToolResponse, error)
GetToolWithResponse request returning *GetToolResponse
func (*ClientWithResponses) UpdateRunResultWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateRunResultWithBodyWithResponse(ctx context.Context, runId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRunResultResponse, error)
UpdateRunResultWithBodyWithResponse request with arbitrary body returning *UpdateRunResultResponse
func (*ClientWithResponses) UpdateRunResultWithResponse ¶
func (c *ClientWithResponses) UpdateRunResultWithResponse(ctx context.Context, runId openapi_types.UUID, body UpdateRunResultJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRunResultResponse, error)
func (*ClientWithResponses) UpdateRunStatusWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateRunStatusWithBodyWithResponse(ctx context.Context, runId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRunStatusResponse, error)
UpdateRunStatusWithBodyWithResponse request with arbitrary body returning *UpdateRunStatusResponse
func (*ClientWithResponses) UpdateRunStatusWithResponse ¶
func (c *ClientWithResponses) UpdateRunStatusWithResponse(ctx context.Context, runId openapi_types.UUID, body UpdateRunStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRunStatusResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetOpenAPIWithResponse request GetOpenAPIWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOpenAPIResponse, error) // GetProjectsWithResponse request GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error) // CreateProjectWithBodyWithResponse request with any body CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) // GetProjectWithResponse request GetProjectWithResponse(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) // GetSupervisorsWithResponse request GetSupervisorsWithResponse(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSupervisorsResponse, error) // CreateSupervisorWithBodyWithResponse request with any body CreateSupervisorWithBodyWithResponse(ctx context.Context, projectId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSupervisorResponse, error) CreateSupervisorWithResponse(ctx context.Context, projectId openapi_types.UUID, body CreateSupervisorJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSupervisorResponse, error) // GetProjectTasksWithResponse request GetProjectTasksWithResponse(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectTasksResponse, error) // CreateTaskWithBodyWithResponse request with any body CreateTaskWithBodyWithResponse(ctx context.Context, projectId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTaskResponse, error) CreateTaskWithResponse(ctx context.Context, projectId openapi_types.UUID, body CreateTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTaskResponse, error) // GetProjectToolsWithResponse request GetProjectToolsWithResponse(ctx context.Context, projectId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetProjectToolsResponse, error) // GetRequestGroupWithResponse request GetRequestGroupWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRequestGroupResponse, error) // CreateSupervisionRequestWithBodyWithResponse request with any body CreateSupervisionRequestWithBodyWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, chainId openapi_types.UUID, supervisorId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSupervisionRequestResponse, error) CreateSupervisionRequestWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, chainId openapi_types.UUID, supervisorId openapi_types.UUID, body CreateSupervisionRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSupervisionRequestResponse, error) // GetRequestGroupStatusWithResponse request GetRequestGroupStatusWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRequestGroupStatusResponse, error) // CreateToolRequestWithBodyWithResponse request with any body CreateToolRequestWithBodyWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateToolRequestResponse, error) CreateToolRequestWithResponse(ctx context.Context, requestGroupId openapi_types.UUID, body CreateToolRequestJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateToolRequestResponse, error) // GetRunRequestGroupsWithResponse request GetRunRequestGroupsWithResponse(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRunRequestGroupsResponse, error) // UpdateRunResultWithBodyWithResponse request with any body UpdateRunResultWithBodyWithResponse(ctx context.Context, runId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRunResultResponse, error) UpdateRunResultWithResponse(ctx context.Context, runId openapi_types.UUID, body UpdateRunResultJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRunResultResponse, error) // GetRunStateWithResponse request GetRunStateWithResponse(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRunStateResponse, error) // GetRunStatusWithResponse request GetRunStatusWithResponse(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRunStatusResponse, error) // UpdateRunStatusWithBodyWithResponse request with any body UpdateRunStatusWithBodyWithResponse(ctx context.Context, runId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRunStatusResponse, error) UpdateRunStatusWithResponse(ctx context.Context, runId openapi_types.UUID, body UpdateRunStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRunStatusResponse, error) // GetRunToolsWithResponse request GetRunToolsWithResponse(ctx context.Context, runId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetRunToolsResponse, error) // CreateRunToolWithBodyWithResponse request with any body CreateRunToolWithBodyWithResponse(ctx context.Context, runId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRunToolResponse, error) CreateRunToolWithResponse(ctx context.Context, runId openapi_types.UUID, body CreateRunToolJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRunToolResponse, error) // GetHubStatsWithResponse request GetHubStatsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHubStatsResponse, error) // GetSupervisionResultWithResponse request GetSupervisionResultWithResponse(ctx context.Context, supervisionRequestId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSupervisionResultResponse, error) // CreateSupervisionResultWithBodyWithResponse request with any body CreateSupervisionResultWithBodyWithResponse(ctx context.Context, supervisionRequestId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSupervisionResultResponse, error) CreateSupervisionResultWithResponse(ctx context.Context, supervisionRequestId openapi_types.UUID, body CreateSupervisionResultJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSupervisionResultResponse, error) // GetSupervisionReviewPayloadWithResponse request GetSupervisionReviewPayloadWithResponse(ctx context.Context, supervisionRequestId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSupervisionReviewPayloadResponse, error) // GetSupervisionRequestStatusWithResponse request GetSupervisionRequestStatusWithResponse(ctx context.Context, supervisionRequestId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSupervisionRequestStatusResponse, error) // GetSupervisorWithResponse request GetSupervisorWithResponse(ctx context.Context, supervisorId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetSupervisorResponse, error) // GetSwaggerDocsWithResponse request GetSwaggerDocsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSwaggerDocsResponse, error) // GetTaskWithResponse request GetTaskWithResponse(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTaskResponse, error) // GetTaskRunsWithResponse request GetTaskRunsWithResponse(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTaskRunsResponse, error) // CreateRunWithResponse request CreateRunWithResponse(ctx context.Context, taskId openapi_types.UUID, reqEditors ...RequestEditorFn) (*CreateRunResponse, error) // GetToolWithResponse request GetToolWithResponse(ctx context.Context, toolId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetToolResponse, error) // CreateToolRequestGroupWithBodyWithResponse request with any body CreateToolRequestGroupWithBodyWithResponse(ctx context.Context, toolId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateToolRequestGroupResponse, error) CreateToolRequestGroupWithResponse(ctx context.Context, toolId openapi_types.UUID, body CreateToolRequestGroupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateToolRequestGroupResponse, error) // GetToolSupervisorChainsWithResponse request GetToolSupervisorChainsWithResponse(ctx context.Context, toolId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetToolSupervisorChainsResponse, error) // CreateToolSupervisorChainsWithBodyWithResponse request with any body CreateToolSupervisorChainsWithBodyWithResponse(ctx context.Context, toolId openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateToolSupervisorChainsResponse, error) CreateToolSupervisorChainsWithResponse(ctx context.Context, toolId openapi_types.UUID, body CreateToolSupervisorChainsJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateToolSupervisorChainsResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateProjectJSONBody ¶
type CreateProjectJSONBody struct { Name string `json:"name"` RunResultTags []string `json:"run_result_tags"` }
CreateProjectJSONBody defines parameters for CreateProject.
type CreateProjectJSONRequestBody ¶
type CreateProjectJSONRequestBody CreateProjectJSONBody
CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.
type CreateProjectResponse ¶
type CreateProjectResponse struct { Body []byte HTTPResponse *http.Response JSON200 *openapi_types.UUID JSON201 *openapi_types.UUID JSON400 *ErrorResponse }
func ParseCreateProjectResponse ¶
func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, error)
ParseCreateProjectResponse parses an HTTP response from a CreateProjectWithResponse call
func (CreateProjectResponse) Status ¶
func (r CreateProjectResponse) Status() string
Status returns HTTPResponse.Status
func (CreateProjectResponse) StatusCode ¶
func (r CreateProjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateRunResponse ¶
type CreateRunResponse struct { Body []byte HTTPResponse *http.Response JSON201 *openapi_types.UUID }
func ParseCreateRunResponse ¶
func ParseCreateRunResponse(rsp *http.Response) (*CreateRunResponse, error)
ParseCreateRunResponse parses an HTTP response from a CreateRunWithResponse call
func (CreateRunResponse) Status ¶
func (r CreateRunResponse) Status() string
Status returns HTTPResponse.Status
func (CreateRunResponse) StatusCode ¶
func (r CreateRunResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateRunToolJSONBody ¶
type CreateRunToolJSONBody struct { Attributes map[string]interface{} `json:"attributes"` Code string `json:"code"` Description string `json:"description"` IgnoredAttributes *[]string `json:"ignored_attributes,omitempty"` Name string `json:"name"` }
CreateRunToolJSONBody defines parameters for CreateRunTool.
type CreateRunToolJSONRequestBody ¶
type CreateRunToolJSONRequestBody CreateRunToolJSONBody
CreateRunToolJSONRequestBody defines body for CreateRunTool for application/json ContentType.
type CreateRunToolResponse ¶
type CreateRunToolResponse struct { Body []byte HTTPResponse *http.Response JSON200 *openapi_types.UUID JSON201 *openapi_types.UUID }
func ParseCreateRunToolResponse ¶
func ParseCreateRunToolResponse(rsp *http.Response) (*CreateRunToolResponse, error)
ParseCreateRunToolResponse parses an HTTP response from a CreateRunToolWithResponse call
func (CreateRunToolResponse) Status ¶
func (r CreateRunToolResponse) Status() string
Status returns HTTPResponse.Status
func (CreateRunToolResponse) StatusCode ¶
func (r CreateRunToolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSupervisionRequestJSONRequestBody ¶
type CreateSupervisionRequestJSONRequestBody = SupervisionRequest
CreateSupervisionRequestJSONRequestBody defines body for CreateSupervisionRequest for application/json ContentType.
type CreateSupervisionRequestResponse ¶
type CreateSupervisionRequestResponse struct { Body []byte HTTPResponse *http.Response JSON201 *openapi_types.UUID JSON400 *ErrorResponse JSON404 *ErrorResponse }
func ParseCreateSupervisionRequestResponse ¶
func ParseCreateSupervisionRequestResponse(rsp *http.Response) (*CreateSupervisionRequestResponse, error)
ParseCreateSupervisionRequestResponse parses an HTTP response from a CreateSupervisionRequestWithResponse call
func (CreateSupervisionRequestResponse) Status ¶
func (r CreateSupervisionRequestResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSupervisionRequestResponse) StatusCode ¶
func (r CreateSupervisionRequestResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSupervisionResultJSONRequestBody ¶
type CreateSupervisionResultJSONRequestBody = SupervisionResult
CreateSupervisionResultJSONRequestBody defines body for CreateSupervisionResult for application/json ContentType.
type CreateSupervisionResultResponse ¶
type CreateSupervisionResultResponse struct { Body []byte HTTPResponse *http.Response JSON201 *openapi_types.UUID }
func ParseCreateSupervisionResultResponse ¶
func ParseCreateSupervisionResultResponse(rsp *http.Response) (*CreateSupervisionResultResponse, error)
ParseCreateSupervisionResultResponse parses an HTTP response from a CreateSupervisionResultWithResponse call
func (CreateSupervisionResultResponse) Status ¶
func (r CreateSupervisionResultResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSupervisionResultResponse) StatusCode ¶
func (r CreateSupervisionResultResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSupervisorJSONRequestBody ¶
type CreateSupervisorJSONRequestBody = Supervisor
CreateSupervisorJSONRequestBody defines body for CreateSupervisor for application/json ContentType.
type CreateSupervisorResponse ¶
type CreateSupervisorResponse struct { Body []byte HTTPResponse *http.Response JSON201 *openapi_types.UUID JSON400 *ErrorResponse }
func ParseCreateSupervisorResponse ¶
func ParseCreateSupervisorResponse(rsp *http.Response) (*CreateSupervisorResponse, error)
ParseCreateSupervisorResponse parses an HTTP response from a CreateSupervisorWithResponse call
func (CreateSupervisorResponse) Status ¶
func (r CreateSupervisorResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSupervisorResponse) StatusCode ¶
func (r CreateSupervisorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateTaskJSONBody ¶
type CreateTaskJSONBody struct { Description *string `json:"description,omitempty"` Name string `json:"name"` }
CreateTaskJSONBody defines parameters for CreateTask.
type CreateTaskJSONRequestBody ¶
type CreateTaskJSONRequestBody CreateTaskJSONBody
CreateTaskJSONRequestBody defines body for CreateTask for application/json ContentType.
type CreateTaskResponse ¶
type CreateTaskResponse struct { Body []byte HTTPResponse *http.Response JSON201 *openapi_types.UUID }
func ParseCreateTaskResponse ¶
func ParseCreateTaskResponse(rsp *http.Response) (*CreateTaskResponse, error)
ParseCreateTaskResponse parses an HTTP response from a CreateTaskWithResponse call
func (CreateTaskResponse) Status ¶
func (r CreateTaskResponse) Status() string
Status returns HTTPResponse.Status
func (CreateTaskResponse) StatusCode ¶
func (r CreateTaskResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateToolRequestGroupJSONRequestBody ¶
type CreateToolRequestGroupJSONRequestBody = ToolRequestGroup
CreateToolRequestGroupJSONRequestBody defines body for CreateToolRequestGroup for application/json ContentType.
type CreateToolRequestGroupResponse ¶
type CreateToolRequestGroupResponse struct { Body []byte HTTPResponse *http.Response JSON201 *ToolRequestGroup JSON400 *ErrorResponse }
func ParseCreateToolRequestGroupResponse ¶
func ParseCreateToolRequestGroupResponse(rsp *http.Response) (*CreateToolRequestGroupResponse, error)
ParseCreateToolRequestGroupResponse parses an HTTP response from a CreateToolRequestGroupWithResponse call
func (CreateToolRequestGroupResponse) Status ¶
func (r CreateToolRequestGroupResponse) Status() string
Status returns HTTPResponse.Status
func (CreateToolRequestGroupResponse) StatusCode ¶
func (r CreateToolRequestGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateToolRequestJSONRequestBody ¶
type CreateToolRequestJSONRequestBody = ToolRequest
CreateToolRequestJSONRequestBody defines body for CreateToolRequest for application/json ContentType.
type CreateToolRequestResponse ¶
type CreateToolRequestResponse struct { Body []byte HTTPResponse *http.Response JSON201 *openapi_types.UUID }
func ParseCreateToolRequestResponse ¶
func ParseCreateToolRequestResponse(rsp *http.Response) (*CreateToolRequestResponse, error)
ParseCreateToolRequestResponse parses an HTTP response from a CreateToolRequestWithResponse call
func (CreateToolRequestResponse) Status ¶
func (r CreateToolRequestResponse) Status() string
Status returns HTTPResponse.Status
func (CreateToolRequestResponse) StatusCode ¶
func (r CreateToolRequestResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateToolSupervisorChainsJSONBody ¶
type CreateToolSupervisorChainsJSONBody = []ChainRequest
CreateToolSupervisorChainsJSONBody defines parameters for CreateToolSupervisorChains.
type CreateToolSupervisorChainsJSONRequestBody ¶
type CreateToolSupervisorChainsJSONRequestBody = CreateToolSupervisorChainsJSONBody
CreateToolSupervisorChainsJSONRequestBody defines body for CreateToolSupervisorChains for application/json ContentType.
type CreateToolSupervisorChainsResponse ¶
type CreateToolSupervisorChainsResponse struct { Body []byte HTTPResponse *http.Response JSON201 *[]openapi_types.UUID }
func ParseCreateToolSupervisorChainsResponse ¶
func ParseCreateToolSupervisorChainsResponse(rsp *http.Response) (*CreateToolSupervisorChainsResponse, error)
ParseCreateToolSupervisorChainsResponse parses an HTTP response from a CreateToolSupervisorChainsWithResponse call
func (CreateToolSupervisorChainsResponse) Status ¶
func (r CreateToolSupervisorChainsResponse) Status() string
Status returns HTTPResponse.Status
func (CreateToolSupervisorChainsResponse) StatusCode ¶
func (r CreateToolSupervisorChainsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ErrorResponse ¶
type ErrorResponse struct { Details *string `json:"details,omitempty"` Error string `json:"error"` }
ErrorResponse defines model for ErrorResponse.
type GetHubStatsResponse ¶
type GetHubStatsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *HubStats JSON400 *ErrorResponse }
func ParseGetHubStatsResponse ¶
func ParseGetHubStatsResponse(rsp *http.Response) (*GetHubStatsResponse, error)
ParseGetHubStatsResponse parses an HTTP response from a GetHubStatsWithResponse call
func (GetHubStatsResponse) Status ¶
func (r GetHubStatsResponse) Status() string
Status returns HTTPResponse.Status
func (GetHubStatsResponse) StatusCode ¶
func (r GetHubStatsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOpenAPIResponse ¶
func ParseGetOpenAPIResponse ¶
func ParseGetOpenAPIResponse(rsp *http.Response) (*GetOpenAPIResponse, error)
ParseGetOpenAPIResponse parses an HTTP response from a GetOpenAPIWithResponse call
func (GetOpenAPIResponse) Status ¶
func (r GetOpenAPIResponse) Status() string
Status returns HTTPResponse.Status
func (GetOpenAPIResponse) StatusCode ¶
func (r GetOpenAPIResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectResponse ¶
type GetProjectResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Project JSON404 *ErrorResponse }
func ParseGetProjectResponse ¶
func ParseGetProjectResponse(rsp *http.Response) (*GetProjectResponse, error)
ParseGetProjectResponse parses an HTTP response from a GetProjectWithResponse call
func (GetProjectResponse) Status ¶
func (r GetProjectResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectResponse) StatusCode ¶
func (r GetProjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectTasksResponse ¶
type GetProjectTasksResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]Task JSON404 *ErrorResponse }
func ParseGetProjectTasksResponse ¶
func ParseGetProjectTasksResponse(rsp *http.Response) (*GetProjectTasksResponse, error)
ParseGetProjectTasksResponse parses an HTTP response from a GetProjectTasksWithResponse call
func (GetProjectTasksResponse) Status ¶
func (r GetProjectTasksResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectTasksResponse) StatusCode ¶
func (r GetProjectTasksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectToolsResponse ¶
func ParseGetProjectToolsResponse ¶
func ParseGetProjectToolsResponse(rsp *http.Response) (*GetProjectToolsResponse, error)
ParseGetProjectToolsResponse parses an HTTP response from a GetProjectToolsWithResponse call
func (GetProjectToolsResponse) Status ¶
func (r GetProjectToolsResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectToolsResponse) StatusCode ¶
func (r GetProjectToolsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectsResponse ¶
func ParseGetProjectsResponse ¶
func ParseGetProjectsResponse(rsp *http.Response) (*GetProjectsResponse, error)
ParseGetProjectsResponse parses an HTTP response from a GetProjectsWithResponse call
func (GetProjectsResponse) Status ¶
func (r GetProjectsResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectsResponse) StatusCode ¶
func (r GetProjectsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRequestGroupResponse ¶
type GetRequestGroupResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ToolRequestGroup }
func ParseGetRequestGroupResponse ¶
func ParseGetRequestGroupResponse(rsp *http.Response) (*GetRequestGroupResponse, error)
ParseGetRequestGroupResponse parses an HTTP response from a GetRequestGroupWithResponse call
func (GetRequestGroupResponse) Status ¶
func (r GetRequestGroupResponse) Status() string
Status returns HTTPResponse.Status
func (GetRequestGroupResponse) StatusCode ¶
func (r GetRequestGroupResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRequestGroupStatusResponse ¶
type GetRequestGroupStatusResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Status }
func ParseGetRequestGroupStatusResponse ¶
func ParseGetRequestGroupStatusResponse(rsp *http.Response) (*GetRequestGroupStatusResponse, error)
ParseGetRequestGroupStatusResponse parses an HTTP response from a GetRequestGroupStatusWithResponse call
func (GetRequestGroupStatusResponse) Status ¶
func (r GetRequestGroupStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetRequestGroupStatusResponse) StatusCode ¶
func (r GetRequestGroupStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRunRequestGroupsResponse ¶
type GetRunRequestGroupsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]ToolRequestGroup }
func ParseGetRunRequestGroupsResponse ¶
func ParseGetRunRequestGroupsResponse(rsp *http.Response) (*GetRunRequestGroupsResponse, error)
ParseGetRunRequestGroupsResponse parses an HTTP response from a GetRunRequestGroupsWithResponse call
func (GetRunRequestGroupsResponse) Status ¶
func (r GetRunRequestGroupsResponse) Status() string
Status returns HTTPResponse.Status
func (GetRunRequestGroupsResponse) StatusCode ¶
func (r GetRunRequestGroupsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRunStateResponse ¶
func ParseGetRunStateResponse ¶
func ParseGetRunStateResponse(rsp *http.Response) (*GetRunStateResponse, error)
ParseGetRunStateResponse parses an HTTP response from a GetRunStateWithResponse call
func (GetRunStateResponse) Status ¶
func (r GetRunStateResponse) Status() string
Status returns HTTPResponse.Status
func (GetRunStateResponse) StatusCode ¶
func (r GetRunStateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRunStatusResponse ¶
type GetRunStatusResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Status JSON404 *ErrorResponse }
func ParseGetRunStatusResponse ¶
func ParseGetRunStatusResponse(rsp *http.Response) (*GetRunStatusResponse, error)
ParseGetRunStatusResponse parses an HTTP response from a GetRunStatusWithResponse call
func (GetRunStatusResponse) Status ¶
func (r GetRunStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetRunStatusResponse) StatusCode ¶
func (r GetRunStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRunToolsResponse ¶
func ParseGetRunToolsResponse ¶
func ParseGetRunToolsResponse(rsp *http.Response) (*GetRunToolsResponse, error)
ParseGetRunToolsResponse parses an HTTP response from a GetRunToolsWithResponse call
func (GetRunToolsResponse) Status ¶
func (r GetRunToolsResponse) Status() string
Status returns HTTPResponse.Status
func (GetRunToolsResponse) StatusCode ¶
func (r GetRunToolsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSupervisionRequestStatusResponse ¶
type GetSupervisionRequestStatusResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SupervisionStatus }
func ParseGetSupervisionRequestStatusResponse ¶
func ParseGetSupervisionRequestStatusResponse(rsp *http.Response) (*GetSupervisionRequestStatusResponse, error)
ParseGetSupervisionRequestStatusResponse parses an HTTP response from a GetSupervisionRequestStatusWithResponse call
func (GetSupervisionRequestStatusResponse) Status ¶
func (r GetSupervisionRequestStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetSupervisionRequestStatusResponse) StatusCode ¶
func (r GetSupervisionRequestStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSupervisionResultResponse ¶
type GetSupervisionResultResponse struct { Body []byte HTTPResponse *http.Response JSON200 *SupervisionResult }
func ParseGetSupervisionResultResponse ¶
func ParseGetSupervisionResultResponse(rsp *http.Response) (*GetSupervisionResultResponse, error)
ParseGetSupervisionResultResponse parses an HTTP response from a GetSupervisionResultWithResponse call
func (GetSupervisionResultResponse) Status ¶
func (r GetSupervisionResultResponse) Status() string
Status returns HTTPResponse.Status
func (GetSupervisionResultResponse) StatusCode ¶
func (r GetSupervisionResultResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSupervisionReviewPayloadResponse ¶
type GetSupervisionReviewPayloadResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ReviewPayload JSON404 *ErrorResponse }
func ParseGetSupervisionReviewPayloadResponse ¶
func ParseGetSupervisionReviewPayloadResponse(rsp *http.Response) (*GetSupervisionReviewPayloadResponse, error)
ParseGetSupervisionReviewPayloadResponse parses an HTTP response from a GetSupervisionReviewPayloadWithResponse call
func (GetSupervisionReviewPayloadResponse) Status ¶
func (r GetSupervisionReviewPayloadResponse) Status() string
Status returns HTTPResponse.Status
func (GetSupervisionReviewPayloadResponse) StatusCode ¶
func (r GetSupervisionReviewPayloadResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSupervisorResponse ¶
type GetSupervisorResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Supervisor }
func ParseGetSupervisorResponse ¶
func ParseGetSupervisorResponse(rsp *http.Response) (*GetSupervisorResponse, error)
ParseGetSupervisorResponse parses an HTTP response from a GetSupervisorWithResponse call
func (GetSupervisorResponse) Status ¶
func (r GetSupervisorResponse) Status() string
Status returns HTTPResponse.Status
func (GetSupervisorResponse) StatusCode ¶
func (r GetSupervisorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSupervisorsResponse ¶
type GetSupervisorsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]Supervisor }
func ParseGetSupervisorsResponse ¶
func ParseGetSupervisorsResponse(rsp *http.Response) (*GetSupervisorsResponse, error)
ParseGetSupervisorsResponse parses an HTTP response from a GetSupervisorsWithResponse call
func (GetSupervisorsResponse) Status ¶
func (r GetSupervisorsResponse) Status() string
Status returns HTTPResponse.Status
func (GetSupervisorsResponse) StatusCode ¶
func (r GetSupervisorsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSwaggerDocsResponse ¶
func ParseGetSwaggerDocsResponse ¶
func ParseGetSwaggerDocsResponse(rsp *http.Response) (*GetSwaggerDocsResponse, error)
ParseGetSwaggerDocsResponse parses an HTTP response from a GetSwaggerDocsWithResponse call
func (GetSwaggerDocsResponse) Status ¶
func (r GetSwaggerDocsResponse) Status() string
Status returns HTTPResponse.Status
func (GetSwaggerDocsResponse) StatusCode ¶
func (r GetSwaggerDocsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTaskResponse ¶
func ParseGetTaskResponse ¶
func ParseGetTaskResponse(rsp *http.Response) (*GetTaskResponse, error)
ParseGetTaskResponse parses an HTTP response from a GetTaskWithResponse call
func (GetTaskResponse) Status ¶
func (r GetTaskResponse) Status() string
Status returns HTTPResponse.Status
func (GetTaskResponse) StatusCode ¶
func (r GetTaskResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTaskRunsResponse ¶
func ParseGetTaskRunsResponse ¶
func ParseGetTaskRunsResponse(rsp *http.Response) (*GetTaskRunsResponse, error)
ParseGetTaskRunsResponse parses an HTTP response from a GetTaskRunsWithResponse call
func (GetTaskRunsResponse) Status ¶
func (r GetTaskRunsResponse) Status() string
Status returns HTTPResponse.Status
func (GetTaskRunsResponse) StatusCode ¶
func (r GetTaskRunsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetToolResponse ¶
type GetToolResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Tool JSON404 *ErrorResponse }
func ParseGetToolResponse ¶
func ParseGetToolResponse(rsp *http.Response) (*GetToolResponse, error)
ParseGetToolResponse parses an HTTP response from a GetToolWithResponse call
func (GetToolResponse) Status ¶
func (r GetToolResponse) Status() string
Status returns HTTPResponse.Status
func (GetToolResponse) StatusCode ¶
func (r GetToolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetToolSupervisorChainsResponse ¶
type GetToolSupervisorChainsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *[]SupervisorChain }
func ParseGetToolSupervisorChainsResponse ¶
func ParseGetToolSupervisorChainsResponse(rsp *http.Response) (*GetToolSupervisorChainsResponse, error)
ParseGetToolSupervisorChainsResponse parses an HTTP response from a GetToolSupervisorChainsWithResponse call
func (GetToolSupervisorChainsResponse) Status ¶
func (r GetToolSupervisorChainsResponse) Status() string
Status returns HTTPResponse.Status
func (GetToolSupervisorChainsResponse) StatusCode ¶
func (r GetToolSupervisorChainsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type HubStats ¶
type HubStats struct { AssignedReviews map[string]int `json:"assigned_reviews"` AssignedReviewsCount int `json:"assigned_reviews_count"` BusyClients int `json:"busy_clients"` CompletedReviewsCount int `json:"completed_reviews_count"` ConnectedClients int `json:"connected_clients"` FreeClients int `json:"free_clients"` PendingReviewsCount int `json:"pending_reviews_count"` ReviewDistribution map[string]int `json:"review_distribution"` }
HubStats defines model for HubStats.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type Message ¶
type Message struct { Content string `json:"content"` Id *openapi_types.UUID `json:"id,omitempty"` Role MessageRole `json:"role"` Source *string `json:"source,omitempty"` ToolCalls *[]ToolCall `json:"tool_calls,omitempty"` Type *MessageType `json:"type,omitempty"` }
Message defines model for Message.
type MessageRole ¶
type MessageRole string
MessageRole defines model for MessageRole.
const ( Assistant MessageRole = "assistant" System MessageRole = "system" User MessageRole = "user" )
Defines values for MessageRole.
type MessageType ¶
type MessageType string
MessageType defines model for MessageType.
const ( Audio MessageType = "audio" Text MessageType = "text" )
Defines values for MessageType.
type Output ¶
type Output struct { Choices *[]Choice `json:"choices,omitempty"` Model *string `json:"model,omitempty"` Usage *Usage `json:"usage,omitempty"` }
Output defines model for Output.
type Project ¶
type Project struct { CreatedAt time.Time `json:"created_at"` Id openapi_types.UUID `json:"id"` Name string `json:"name"` RunResultTags []string `json:"run_result_tags"` }
Project defines model for Project.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ReviewPayload ¶
type ReviewPayload struct { ChainState ChainExecutionState `json:"chain_state"` RequestGroup ToolRequestGroup `json:"request_group"` // RunId The ID of the run this review is for RunId openapi_types.UUID `json:"run_id"` SupervisionRequest SupervisionRequest `json:"supervision_request"` }
ReviewPayload Contains all the information needed for a human reviewer to make a supervision decision
type Run ¶
type Run struct { CreatedAt time.Time `json:"created_at"` Id openapi_types.UUID `json:"id"` Result *string `json:"result,omitempty"` Status *Status `json:"status,omitempty"` TaskId openapi_types.UUID `json:"task_id"` }
Run defines model for Run.
type RunExecution ¶
type RunExecution struct { Chains []ChainExecutionState `json:"chains"` RequestGroup ToolRequestGroup `json:"request_group"` Status Status `json:"status"` }
RunExecution defines model for RunExecution.
type ServeMux ¶
type ServeMux interface { HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request)) ServeHTTP(w http.ResponseWriter, r *http.Request) }
ServeMux is an abstraction of http.ServeMux.
type ServerInterface ¶
type ServerInterface interface { // Get the OpenAPI schema // (GET /api/openapi.yaml) GetOpenAPI(w http.ResponseWriter, r *http.Request) // Get all projects // (GET /api/project) GetProjects(w http.ResponseWriter, r *http.Request) // Create a new project // (POST /api/project) CreateProject(w http.ResponseWriter, r *http.Request) // Get a project // (GET /api/project/{projectId}) GetProject(w http.ResponseWriter, r *http.Request, projectId openapi_types.UUID) // Get all supervisors // (GET /api/project/{projectId}/supervisor) GetSupervisors(w http.ResponseWriter, r *http.Request, projectId openapi_types.UUID) // Create a new supervisor // (POST /api/project/{projectId}/supervisor) CreateSupervisor(w http.ResponseWriter, r *http.Request, projectId openapi_types.UUID) // Get all tasks for a project // (GET /api/project/{projectId}/tasks) GetProjectTasks(w http.ResponseWriter, r *http.Request, projectId openapi_types.UUID) // Create a new task // (POST /api/project/{projectId}/tasks) CreateTask(w http.ResponseWriter, r *http.Request, projectId openapi_types.UUID) // Get all tools for a project // (GET /api/project/{projectId}/tools) GetProjectTools(w http.ResponseWriter, r *http.Request, projectId openapi_types.UUID) // Get a request group // (GET /api/request_group/{requestGroupId}) GetRequestGroup(w http.ResponseWriter, r *http.Request, requestGroupId openapi_types.UUID) // Create a supervision request for a supervisor in a chain on a request group // (POST /api/request_group/{requestGroupId}/chain/{chainId}/supervisor/{supervisorId}/supervision_request) CreateSupervisionRequest(w http.ResponseWriter, r *http.Request, requestGroupId openapi_types.UUID, chainId openapi_types.UUID, supervisorId openapi_types.UUID) // Get a request group status // (GET /api/request_group/{requestGroupId}/status) GetRequestGroupStatus(w http.ResponseWriter, r *http.Request, requestGroupId openapi_types.UUID) // Create a new tool request for a request group // (POST /api/request_group/{requestGroupId}/tool_requests) CreateToolRequest(w http.ResponseWriter, r *http.Request, requestGroupId openapi_types.UUID) // Get all request groups for a run // (GET /api/run/{runId}/request_groups) GetRunRequestGroups(w http.ResponseWriter, r *http.Request, runId openapi_types.UUID) // Update a run with a result // (PUT /api/run/{runId}/result) UpdateRunResult(w http.ResponseWriter, r *http.Request, runId openapi_types.UUID) // Get the state of a run // (GET /api/run/{runId}/state) GetRunState(w http.ResponseWriter, r *http.Request, runId openapi_types.UUID) // Get the status of a run // (GET /api/run/{runId}/status) GetRunStatus(w http.ResponseWriter, r *http.Request, runId openapi_types.UUID) // Update the status of a run // (PUT /api/run/{runId}/status) UpdateRunStatus(w http.ResponseWriter, r *http.Request, runId openapi_types.UUID) // Get all tools for a run // (GET /api/run/{runId}/tool) GetRunTools(w http.ResponseWriter, r *http.Request, runId openapi_types.UUID) // Create a new tool for a run // (POST /api/run/{runId}/tool) CreateRunTool(w http.ResponseWriter, r *http.Request, runId openapi_types.UUID) // Get hub stats // (GET /api/stats) GetHubStats(w http.ResponseWriter, r *http.Request) // Get a supervision result // (GET /api/supervision_request/{supervisionRequestId}/result) GetSupervisionResult(w http.ResponseWriter, r *http.Request, supervisionRequestId openapi_types.UUID) // Create a supervision result for a supervision request // (POST /api/supervision_request/{supervisionRequestId}/result) CreateSupervisionResult(w http.ResponseWriter, r *http.Request, supervisionRequestId openapi_types.UUID) // Get the review payload for a supervision request // (GET /api/supervision_request/{supervisionRequestId}/review_payload) GetSupervisionReviewPayload(w http.ResponseWriter, r *http.Request, supervisionRequestId openapi_types.UUID) // Get a supervision request status // (GET /api/supervision_request/{supervisionRequestId}/status) GetSupervisionRequestStatus(w http.ResponseWriter, r *http.Request, supervisionRequestId openapi_types.UUID) // Get a supervisor // (GET /api/supervisor/{supervisorId}) GetSupervisor(w http.ResponseWriter, r *http.Request, supervisorId openapi_types.UUID) // Get the Swagger UI // (GET /api/swagger-ui) GetSwaggerDocs(w http.ResponseWriter, r *http.Request) // Get a task // (GET /api/task/{taskId}) GetTask(w http.ResponseWriter, r *http.Request, taskId openapi_types.UUID) // Get all runs for a task // (GET /api/task/{taskId}/run) GetTaskRuns(w http.ResponseWriter, r *http.Request, taskId openapi_types.UUID) // Create a new run for a task // (POST /api/task/{taskId}/run) CreateRun(w http.ResponseWriter, r *http.Request, taskId openapi_types.UUID) // Get a tool // (GET /api/tool/{toolId}) GetTool(w http.ResponseWriter, r *http.Request, toolId openapi_types.UUID) // Create a new request group for a tool // (POST /api/tool/{toolId}/request_group) CreateToolRequestGroup(w http.ResponseWriter, r *http.Request, toolId openapi_types.UUID) // Get all supervisors for a tool, in chain format // (GET /api/tool/{toolId}/supervisors) GetToolSupervisorChains(w http.ResponseWriter, r *http.Request, toolId openapi_types.UUID) // Create new chains with supervisors for a tool // (POST /api/tool/{toolId}/supervisors) CreateToolSupervisorChains(w http.ResponseWriter, r *http.Request, toolId openapi_types.UUID) }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) CreateProject ¶
func (siw *ServerInterfaceWrapper) CreateProject(w http.ResponseWriter, r *http.Request)
CreateProject operation middleware
func (*ServerInterfaceWrapper) CreateRun ¶
func (siw *ServerInterfaceWrapper) CreateRun(w http.ResponseWriter, r *http.Request)
CreateRun operation middleware
func (*ServerInterfaceWrapper) CreateRunTool ¶
func (siw *ServerInterfaceWrapper) CreateRunTool(w http.ResponseWriter, r *http.Request)
CreateRunTool operation middleware
func (*ServerInterfaceWrapper) CreateSupervisionRequest ¶
func (siw *ServerInterfaceWrapper) CreateSupervisionRequest(w http.ResponseWriter, r *http.Request)
CreateSupervisionRequest operation middleware
func (*ServerInterfaceWrapper) CreateSupervisionResult ¶
func (siw *ServerInterfaceWrapper) CreateSupervisionResult(w http.ResponseWriter, r *http.Request)
CreateSupervisionResult operation middleware
func (*ServerInterfaceWrapper) CreateSupervisor ¶
func (siw *ServerInterfaceWrapper) CreateSupervisor(w http.ResponseWriter, r *http.Request)
CreateSupervisor operation middleware
func (*ServerInterfaceWrapper) CreateTask ¶
func (siw *ServerInterfaceWrapper) CreateTask(w http.ResponseWriter, r *http.Request)
CreateTask operation middleware
func (*ServerInterfaceWrapper) CreateToolRequest ¶
func (siw *ServerInterfaceWrapper) CreateToolRequest(w http.ResponseWriter, r *http.Request)
CreateToolRequest operation middleware
func (*ServerInterfaceWrapper) CreateToolRequestGroup ¶
func (siw *ServerInterfaceWrapper) CreateToolRequestGroup(w http.ResponseWriter, r *http.Request)
CreateToolRequestGroup operation middleware
func (*ServerInterfaceWrapper) CreateToolSupervisorChains ¶
func (siw *ServerInterfaceWrapper) CreateToolSupervisorChains(w http.ResponseWriter, r *http.Request)
CreateToolSupervisorChains operation middleware
func (*ServerInterfaceWrapper) GetHubStats ¶
func (siw *ServerInterfaceWrapper) GetHubStats(w http.ResponseWriter, r *http.Request)
GetHubStats operation middleware
func (*ServerInterfaceWrapper) GetOpenAPI ¶
func (siw *ServerInterfaceWrapper) GetOpenAPI(w http.ResponseWriter, r *http.Request)
GetOpenAPI operation middleware
func (*ServerInterfaceWrapper) GetProject ¶
func (siw *ServerInterfaceWrapper) GetProject(w http.ResponseWriter, r *http.Request)
GetProject operation middleware
func (*ServerInterfaceWrapper) GetProjectTasks ¶
func (siw *ServerInterfaceWrapper) GetProjectTasks(w http.ResponseWriter, r *http.Request)
GetProjectTasks operation middleware
func (*ServerInterfaceWrapper) GetProjectTools ¶
func (siw *ServerInterfaceWrapper) GetProjectTools(w http.ResponseWriter, r *http.Request)
GetProjectTools operation middleware
func (*ServerInterfaceWrapper) GetProjects ¶
func (siw *ServerInterfaceWrapper) GetProjects(w http.ResponseWriter, r *http.Request)
GetProjects operation middleware
func (*ServerInterfaceWrapper) GetRequestGroup ¶
func (siw *ServerInterfaceWrapper) GetRequestGroup(w http.ResponseWriter, r *http.Request)
GetRequestGroup operation middleware
func (*ServerInterfaceWrapper) GetRequestGroupStatus ¶
func (siw *ServerInterfaceWrapper) GetRequestGroupStatus(w http.ResponseWriter, r *http.Request)
GetRequestGroupStatus operation middleware
func (*ServerInterfaceWrapper) GetRunRequestGroups ¶
func (siw *ServerInterfaceWrapper) GetRunRequestGroups(w http.ResponseWriter, r *http.Request)
GetRunRequestGroups operation middleware
func (*ServerInterfaceWrapper) GetRunState ¶
func (siw *ServerInterfaceWrapper) GetRunState(w http.ResponseWriter, r *http.Request)
GetRunState operation middleware
func (*ServerInterfaceWrapper) GetRunStatus ¶
func (siw *ServerInterfaceWrapper) GetRunStatus(w http.ResponseWriter, r *http.Request)
GetRunStatus operation middleware
func (*ServerInterfaceWrapper) GetRunTools ¶
func (siw *ServerInterfaceWrapper) GetRunTools(w http.ResponseWriter, r *http.Request)
GetRunTools operation middleware
func (*ServerInterfaceWrapper) GetSupervisionRequestStatus ¶
func (siw *ServerInterfaceWrapper) GetSupervisionRequestStatus(w http.ResponseWriter, r *http.Request)
GetSupervisionRequestStatus operation middleware
func (*ServerInterfaceWrapper) GetSupervisionResult ¶
func (siw *ServerInterfaceWrapper) GetSupervisionResult(w http.ResponseWriter, r *http.Request)
GetSupervisionResult operation middleware
func (*ServerInterfaceWrapper) GetSupervisionReviewPayload ¶
func (siw *ServerInterfaceWrapper) GetSupervisionReviewPayload(w http.ResponseWriter, r *http.Request)
GetSupervisionReviewPayload operation middleware
func (*ServerInterfaceWrapper) GetSupervisor ¶
func (siw *ServerInterfaceWrapper) GetSupervisor(w http.ResponseWriter, r *http.Request)
GetSupervisor operation middleware
func (*ServerInterfaceWrapper) GetSupervisors ¶
func (siw *ServerInterfaceWrapper) GetSupervisors(w http.ResponseWriter, r *http.Request)
GetSupervisors operation middleware
func (*ServerInterfaceWrapper) GetSwaggerDocs ¶
func (siw *ServerInterfaceWrapper) GetSwaggerDocs(w http.ResponseWriter, r *http.Request)
GetSwaggerDocs operation middleware
func (*ServerInterfaceWrapper) GetTask ¶
func (siw *ServerInterfaceWrapper) GetTask(w http.ResponseWriter, r *http.Request)
GetTask operation middleware
func (*ServerInterfaceWrapper) GetTaskRuns ¶
func (siw *ServerInterfaceWrapper) GetTaskRuns(w http.ResponseWriter, r *http.Request)
GetTaskRuns operation middleware
func (*ServerInterfaceWrapper) GetTool ¶
func (siw *ServerInterfaceWrapper) GetTool(w http.ResponseWriter, r *http.Request)
GetTool operation middleware
func (*ServerInterfaceWrapper) GetToolSupervisorChains ¶
func (siw *ServerInterfaceWrapper) GetToolSupervisorChains(w http.ResponseWriter, r *http.Request)
GetToolSupervisorChains operation middleware
func (*ServerInterfaceWrapper) UpdateRunResult ¶
func (siw *ServerInterfaceWrapper) UpdateRunResult(w http.ResponseWriter, r *http.Request)
UpdateRunResult operation middleware
func (*ServerInterfaceWrapper) UpdateRunStatus ¶
func (siw *ServerInterfaceWrapper) UpdateRunStatus(w http.ResponseWriter, r *http.Request)
UpdateRunStatus operation middleware
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct { BaseURL string BaseRouter ServeMux Middlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type SupervisionRequest ¶
type SupervisionRequest struct { ChainexecutionId *openapi_types.UUID `json:"chainexecution_id,omitempty"` Id *openapi_types.UUID `json:"id,omitempty"` PositionInChain int `json:"position_in_chain"` Status *SupervisionStatus `json:"status,omitempty"` SupervisorId openapi_types.UUID `json:"supervisor_id"` }
SupervisionRequest defines model for SupervisionRequest.
type SupervisionRequestState ¶
type SupervisionRequestState struct { Result *SupervisionResult `json:"result,omitempty"` Status SupervisionStatus `json:"status"` SupervisionRequest SupervisionRequest `json:"supervision_request"` }
SupervisionRequestState defines model for SupervisionRequestState.
type SupervisionResult ¶
type SupervisionResult struct { ChosenToolrequestId *openapi_types.UUID `json:"chosen_toolrequest_id,omitempty"` CreatedAt time.Time `json:"created_at"` Decision Decision `json:"decision"` Id *openapi_types.UUID `json:"id,omitempty"` Reasoning string `json:"reasoning"` SupervisionRequestId openapi_types.UUID `json:"supervision_request_id"` }
SupervisionResult defines model for SupervisionResult.
type SupervisionStatus ¶
type SupervisionStatus struct { CreatedAt time.Time `json:"created_at"` Id int `json:"id"` Status Status `json:"status"` SupervisionRequestId *openapi_types.UUID `json:"supervision_request_id,omitempty"` }
SupervisionStatus defines model for SupervisionStatus.
type Supervisor ¶
type Supervisor struct { Attributes map[string]interface{} `json:"attributes"` Code string `json:"code"` CreatedAt time.Time `json:"created_at"` Description string `json:"description"` Id *openapi_types.UUID `json:"id,omitempty"` Name string `json:"name"` // Type The type of supervisor. ClientSupervisor means that the supervision is done client side and the server is merely informed. Other supervisor types are handled serverside, e.g. HumanSupervisor means that a human will review the request via the Sentinel UI. Type SupervisorType `json:"type"` }
Supervisor defines model for Supervisor.
type SupervisorChain ¶
type SupervisorChain struct { ChainId openapi_types.UUID `json:"chain_id"` Supervisors []Supervisor `json:"supervisors"` }
SupervisorChain defines model for SupervisorChain.
type SupervisorType ¶
type SupervisorType string
SupervisorType The type of supervisor. ClientSupervisor means that the supervision is done client side and the server is merely informed. Other supervisor types are handled serverside, e.g. HumanSupervisor means that a human will review the request via the Sentinel UI.
const ( ClientSupervisor SupervisorType = "client_supervisor" HumanSupervisor SupervisorType = "human_supervisor" NoSupervisor SupervisorType = "no_supervisor" )
Defines values for SupervisorType.
type Task ¶
type Task struct { CreatedAt time.Time `json:"created_at"` Description *string `json:"description,omitempty"` Id openapi_types.UUID `json:"id"` Name string `json:"name"` ProjectId openapi_types.UUID `json:"project_id"` }
Task defines model for Task.
type TaskState ¶
type TaskState struct { Completed bool `json:"completed"` Messages []Message `json:"messages"` Metadata *map[string]interface{} `json:"metadata,omitempty"` Output Output `json:"output"` Store *map[string]interface{} `json:"store,omitempty"` ToolChoice *ToolChoice `json:"tool_choice,omitempty"` Tools []Tool `json:"tools"` }
TaskState defines model for TaskState.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type Tool ¶
type Tool struct { Attributes map[string]interface{} `json:"attributes"` Code string `json:"code"` Description string `json:"description"` Id *openapi_types.UUID `json:"id,omitempty"` IgnoredAttributes *[]string `json:"ignored_attributes,omitempty"` Name string `json:"name"` RunId openapi_types.UUID `json:"run_id"` }
Tool defines model for Tool.
type ToolCall ¶
type ToolCall struct { Arguments map[string]interface{} `json:"arguments"` Function string `json:"function"` Id string `json:"id"` ParseError *string `json:"parse_error,omitempty"` Type string `json:"type"` }
ToolCall defines model for ToolCall.
type ToolChoice ¶
type ToolChoice struct { Arguments Arguments `json:"arguments"` Function string `json:"function"` Id string `json:"id"` Type string `json:"type"` }
ToolChoice defines model for ToolChoice.
type ToolRequest ¶
type ToolRequest struct { Arguments Arguments `json:"arguments"` Id *openapi_types.UUID `json:"id,omitempty"` Message Message `json:"message"` RequestgroupId *openapi_types.UUID `json:"requestgroup_id,omitempty"` TaskState TaskState `json:"task_state"` ToolId openapi_types.UUID `json:"tool_id"` }
ToolRequest defines model for ToolRequest.
type ToolRequestGroup ¶
type ToolRequestGroup struct { CreatedAt *time.Time `json:"created_at,omitempty"` Id *openapi_types.UUID `json:"id,omitempty"` ToolRequests []ToolRequest `json:"tool_requests"` }
ToolRequestGroup defines model for ToolRequestGroup.
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdateRunResultJSONBody ¶
type UpdateRunResultJSONBody struct {
Result *string `json:"result,omitempty"`
}
UpdateRunResultJSONBody defines parameters for UpdateRunResult.
type UpdateRunResultJSONRequestBody ¶
type UpdateRunResultJSONRequestBody UpdateRunResultJSONBody
UpdateRunResultJSONRequestBody defines body for UpdateRunResult for application/json ContentType.
type UpdateRunResultResponse ¶
type UpdateRunResultResponse struct { Body []byte HTTPResponse *http.Response JSON400 *ErrorResponse }
func ParseUpdateRunResultResponse ¶
func ParseUpdateRunResultResponse(rsp *http.Response) (*UpdateRunResultResponse, error)
ParseUpdateRunResultResponse parses an HTTP response from a UpdateRunResultWithResponse call
func (UpdateRunResultResponse) Status ¶
func (r UpdateRunResultResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateRunResultResponse) StatusCode ¶
func (r UpdateRunResultResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateRunStatusJSONRequestBody ¶
type UpdateRunStatusJSONRequestBody = Status
UpdateRunStatusJSONRequestBody defines body for UpdateRunStatus for application/json ContentType.
type UpdateRunStatusResponse ¶
func ParseUpdateRunStatusResponse ¶
func ParseUpdateRunStatusResponse(rsp *http.Response) (*UpdateRunStatusResponse, error)
ParseUpdateRunStatusResponse parses an HTTP response from a UpdateRunStatusWithResponse call
func (UpdateRunStatusResponse) Status ¶
func (r UpdateRunStatusResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateRunStatusResponse) StatusCode ¶
func (r UpdateRunStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode