Interface PromptService
-
- All Implemented Interfaces:
public interface PromptService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfacePromptService.WithRawResponseA view of PromptService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract PromptService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. Promptcreate(PromptCreateParams params)Create a new prompt. abstract Promptcreate(PromptCreateParams params, RequestOptions requestOptions)Promptretrieve(PromptRetrieveParams params)Get a prompt object by its id abstract Promptretrieve(PromptRetrieveParams params, RequestOptions requestOptions)Promptupdate(PromptUpdateParams params)Partially update a prompt object. abstract Promptupdate(PromptUpdateParams params, RequestOptions requestOptions)PromptListPagelist()List out all prompts. abstract PromptListPagelist(PromptListParams params, RequestOptions requestOptions)PromptListPagelist(PromptListParams params)PromptListPagelist(RequestOptions requestOptions)Promptdelete(PromptDeleteParams params)Delete a prompt object by its id abstract Promptdelete(PromptDeleteParams params, RequestOptions requestOptions)Promptreplace(PromptReplaceParams params)Create or replace prompt. abstract Promptreplace(PromptReplaceParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract PromptService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
create
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 Prompt create(PromptCreateParams params, RequestOptions requestOptions)
-
retrieve
Prompt retrieve(PromptRetrieveParams params)
Get a prompt object by its id
-
retrieve
abstract Prompt retrieve(PromptRetrieveParams params, RequestOptions requestOptions)
-
update
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 Prompt update(PromptUpdateParams params, RequestOptions requestOptions)
-
list
PromptListPage list()
List out all prompts. The prompts are sorted by creation date, with the most recently-created prompts coming first
-
list
abstract PromptListPage list(PromptListParams params, RequestOptions requestOptions)
-
list
PromptListPage list(PromptListParams params)
-
list
PromptListPage list(RequestOptions requestOptions)
-
delete
Prompt delete(PromptDeleteParams params)
Delete a prompt object by its id
-
delete
abstract Prompt delete(PromptDeleteParams params, RequestOptions requestOptions)
-
replace
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 Prompt replace(PromptReplaceParams params, RequestOptions requestOptions)
-
-
-
-