optimization-jobs

Create a new log entry for a prompt optimization job.

post/api/v1/repos/{owner}/{repo}/optimization-jobs/{job_id}/logs

Request

  • Base URL
    https://api.smith.langchain.com
  • URL
    https://api.smith.langchain.com/api/v1/repos/{owner}/{repo}/optimization-jobs/{job_id}/logs
  • Auth
    • API key in header X-API-Key
    • or API key in header X-Tenant-Id
    • or HTTP bearer

Path parameters

job_idstring uuid required

Request body

log_type'info' | 'result' | 'error' | 'link' required
messagestring required
dataobject nullable

Response

Successful Response

log_type'info' | 'result' | 'error' | 'link' required
messagestring required
dataobject nullable
idstring uuid required
job_idstring uuid required
created_atstring date-time required

Changes

    • breaking

      the / response's property type changed from object to string for status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status