Interface PromptServiceAsync
-
- All Implemented Interfaces:
public interface PromptServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfacePromptServiceAsync.WithRawResponseA view of PromptServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract PromptServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
create
CompletableFuture<Prompt> create(PromptCreateParams params)
Create a new prompt. If there is an existing prompt in the project with the same slug as the one specified in the request, will return the existing prompt unmodified
-
create
abstract CompletableFuture<Prompt> create(PromptCreateParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<Prompt> retrieve(PromptRetrieveParams params)
Get a prompt object by its id
-
retrieve
abstract CompletableFuture<Prompt> retrieve(PromptRetrieveParams params, RequestOptions requestOptions)
-
update
CompletableFuture<Prompt> update(PromptUpdateParams params)
Partially update a prompt object. Specify the fields to update in the payload. Any object-type fields will be deep-merged with existing content. Currently we do not support removing fields or setting them to null.
-
update
abstract CompletableFuture<Prompt> update(PromptUpdateParams params, RequestOptions requestOptions)
-
list
CompletableFuture<PromptListPageAsync> list()
List out all prompts. The prompts are sorted by creation date, with the most recently-created prompts coming first
-
list
abstract CompletableFuture<PromptListPageAsync> list(PromptListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<PromptListPageAsync> list(PromptListParams params)
-
list
CompletableFuture<PromptListPageAsync> list(RequestOptions requestOptions)
-
delete
CompletableFuture<Prompt> delete(PromptDeleteParams params)
Delete a prompt object by its id
-
delete
abstract CompletableFuture<Prompt> delete(PromptDeleteParams params, RequestOptions requestOptions)
-
replace
CompletableFuture<Prompt> replace(PromptReplaceParams params)
Create or replace prompt. If there is an existing prompt in the project with the same slug as the one specified in the request, will replace the existing prompt with the provided fields
-
replace
abstract CompletableFuture<Prompt> replace(PromptReplaceParams params, RequestOptions requestOptions)
-
-
-
-