@@ -495,6 +495,120 @@ service:
495495 total_logs_count : 1
496496 inputs :
497497 - name : answer
498+ log :
499+ path : /evaluators/log
500+ method : POST
501+ auth : true
502+ docs : >-
503+ Submit evalutor judgment for an existing Log. Creates a new Log and
504+ makes evaluated one its parent.
505+ display-name : Log
506+ request :
507+ name : CreateEvaluatorLogRequest
508+ query-parameters :
509+ version_id :
510+ type : optional<string>
511+ docs : ID of the Evaluator version to log against.
512+ environment :
513+ type : optional<string>
514+ docs : Name of the Environment identifying a deployed version to log to.
515+ body :
516+ properties :
517+ path :
518+ type : optional<string>
519+ docs : >-
520+ Path of the Evaluator, including the name, which is used as a
521+ unique identifier.
522+ id :
523+ type : optional<string>
524+ docs : ID for an existing Evaluator to update.
525+ output :
526+ type : optional<string>
527+ docs : >-
528+ Generated output from the LLM. Only populated for LLM Evaluator
529+ Logs.
530+ created_at :
531+ type : optional<datetime>
532+ docs : ' User defined timestamp for when the log was created. '
533+ error :
534+ type : optional<string>
535+ docs : Error message if the log is an error.
536+ provider_latency :
537+ type : optional<double>
538+ docs : Duration of the logged event in seconds.
539+ provider_request :
540+ type : optional<map<string, unknown>>
541+ docs : >-
542+ Raw request sent to provider. Only populated for LLM Evaluator
543+ Logs.
544+ provider_response :
545+ type : optional<map<string, unknown>>
546+ docs : >-
547+ Raw response received the provider. Only populated for LLM
548+ Evaluator Logs.
549+ session_id :
550+ type : optional<string>
551+ docs : >-
552+ Unique identifier for the Session to associate the Log to.
553+ Allows you to record multiple Logs to a Session (using an ID
554+ kept by your internal systems) by passing the same `session_id`
555+ in subsequent log requests.
556+ parent_id :
557+ type : string
558+ docs : >-
559+ Identifier of the evaluated Log. The newly created Log will have
560+ this one set as parent.
561+ inputs :
562+ type : optional<map<string, unknown>>
563+ docs : The inputs passed to the prompt template.
564+ source :
565+ type : optional<string>
566+ docs : Identifies where the model was called from.
567+ metadata :
568+ type : optional<map<string, unknown>>
569+ docs : Any additional metadata to record.
570+ save :
571+ type : optional<boolean>
572+ docs : >-
573+ Whether the request/response payloads will be stored on
574+ Humanloop.
575+ default : true
576+ source_datapoint_id :
577+ type : optional<string>
578+ docs : >-
579+ Unique identifier for the Datapoint that this Log is derived
580+ from. This can be used by Humanloop to associate Logs to
581+ Evaluations. If provided, Humanloop will automatically associate
582+ this Log to Evaluations that require a Log for this
583+ Datapoint-Version pair.
584+ batches :
585+ type : optional<list<string>>
586+ docs : >-
587+ Array of Batch Ids that this log is part of. Batches are used to
588+ group Logs together for offline Evaluations
589+ user :
590+ type : optional<string>
591+ docs : End-user ID related to the Log.
592+ environment :
593+ type : optional<string>
594+ docs : The name of the Environment the Log is associated to.
595+ name : createEvaluatorLogRequestEnvironment
596+ judgment : optional<unknown>
597+ spec : optional<CreateEvaluatorLogRequestSpec>
598+ response :
599+ docs : Successful Response
600+ type : root.CreateEvaluatorLogResponse
601+ errors :
602+ - root.UnprocessableEntityError
603+ examples :
604+ - request :
605+ parent_id : parent_id
606+ response :
607+ body :
608+ id : id
609+ parent_id : parent_id
610+ session_id : session_id
611+ version_id : version_id
498612types :
499613 SrcExternalAppModelsV5EvaluatorsEvaluatorRequestSpec :
500614 discriminated : false
@@ -503,3 +617,10 @@ types:
503617 - root.CodeEvaluatorRequest
504618 - root.HumanEvaluatorRequest
505619 - root.ExternalEvaluatorRequest
620+ CreateEvaluatorLogRequestSpec :
621+ discriminated : false
622+ union :
623+ - root.LlmEvaluatorRequest
624+ - root.CodeEvaluatorRequest
625+ - root.HumanEvaluatorRequest
626+ - root.ExternalEvaluatorRequest
0 commit comments