getPromptByNameWithHttpInfo method

Future<Response> getPromptByNameWithHttpInfo(
  1. String name
)

Get returns one of the caller org's prompts: its CURRENT template text plus the metadata of every version it has had.

Get returns one of the caller org's prompts: its CURRENT template text plus the metadata of every version it has had. The history carries version numbers, types and timestamps only — not each version's body — so a long history cannot inflate this response. A name the caller's org does not own is 404, whoever owns it.

Note: This method returns the HTTP Response.

Parameters:

  • String name (required): Name is the prompt to act on, from the path.

Implementation

Future<Response> getPromptByNameWithHttpInfo(String name,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/prompt/{name}'
    .replaceAll('{name}', name);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}