Class FunctionListParams
-
- All Implemented Interfaces:
-
com.braintrustdata.api.core.Params
public final class FunctionListParams implements Params
List out all functions. The functions are sorted by creation date, with the most recently-created functions coming first
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classFunctionListParams.BuilderA builder for FunctionListParams.
public final classFunctionListParams.IdsFilter search results to a particular set of object IDs. To specify a list of IDs, include the query param multiple times
-
Method Summary
Modifier and Type Method Description final Optional<String>endingBefore()Pagination cursor id. final Optional<String>functionName()Name of the function to search for final Optional<FunctionListParams.Ids>ids()Filter search results to a particular set of object IDs. final Optional<Long>limit()Limit the number of objects to return final Optional<String>orgName()Filter search results to within a particular organization final Optional<String>projectId()Project id final Optional<String>projectName()Name of the project to search for final Optional<String>slug()Retrieve prompt with a specific slug final Optional<String>startingAfter()Pagination cursor id. final Optional<String>version()Retrieve prompt at a specific version. final Headers_additionalHeaders()final QueryParams_additionalQueryParams()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. final FunctionListParams.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static FunctionListParamsnone()final static FunctionListParams.Builderbuilder()Returns a mutable builder for constructing an instance of FunctionListParams. -
-
Method Detail
-
endingBefore
final Optional<String> endingBefore()
Pagination cursor id.
For example, if the initial item in the last page you fetched had an id of
foo, passending_before=footo fetch the previous page. Note: you may only pass one ofstarting_afterandending_before
-
functionName
final Optional<String> functionName()
Name of the function to search for
-
ids
final Optional<FunctionListParams.Ids> ids()
Filter search results to a particular set of object IDs. To specify a list of IDs, include the query param multiple times
-
projectName
final Optional<String> projectName()
Name of the project to search for
-
startingAfter
final Optional<String> startingAfter()
Pagination cursor id.
For example, if the final item in the last page you fetched had an id of
foo, passstarting_after=footo fetch the next page. Note: you may only pass one ofstarting_afterandending_before
-
version
final Optional<String> version()
Retrieve prompt at a specific version.
The version id can either be a transaction id (e.g. '1000192656880881099') or a version identifier (e.g. '81cd05ee665fdfb3').
-
_additionalHeaders
final Headers _additionalHeaders()
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
toBuilder
final FunctionListParams.Builder toBuilder()
-
none
final static FunctionListParams none()
-
builder
final static FunctionListParams.Builder builder()
Returns a mutable builder for constructing an instance of FunctionListParams.
-
-
-
-