Skip to content

Latest commit

 

History

History
executable file
·
75 lines (51 loc) · 4.53 KB

api.md

File metadata and controls

executable file
·
75 lines (51 loc) · 4.53 KB

Completion

Types:

Methods:

  • client.completion.create(id, { ...params }) -> CompletionCreateResponse

Prompts

Types:

Methods:

  • client.prompts.create({ ...params }) -> PromptConfiguration
  • client.prompts.update(id, { ...params }) -> PromptConfiguration
  • client.prompts.list() -> PromptListResponse
  • client.prompts.delete(id) -> PromptDeleteResponse
  • client.prompts.get(id) -> PromptConfiguration
  • client.prompts.getParameters(id, { ...params }) -> Parameters

Tools

Types:

Methods:

  • client.tools.create({ ...params }) -> Tool
  • client.tools.update(id, { ...params }) -> Tool
  • client.tools.list() -> ToolListResponse
  • client.tools.delete(id) -> ToolDeleteResponse
  • client.tools.get(id) -> Tool

EvaluationAssertions

Types:

Methods:

  • client.evaluationAssertions.create({ ...params }) -> EvaluationAssertion
  • client.evaluationAssertions.update(id, { ...params }) -> EvaluationAssertion
  • client.evaluationAssertions.list({ ...params }) -> EvaluationAssertionListResponse
  • client.evaluationAssertions.delete(id) -> EvaluationAssertionDeleteResponse
  • client.evaluationAssertions.get(id) -> EvaluationAssertion

Evaluations

Types:

Methods:

  • client.evaluations.create({ ...params }) -> Evaluation
  • client.evaluations.update(id, { ...params }) -> Evaluation
  • client.evaluations.list() -> EvaluationListResponse
  • client.evaluations.delete(id) -> EvaluationDeleteResponse
  • client.evaluations.get(id) -> Evaluation