-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUpdateAgentLogRequest.ts
More file actions
37 lines (35 loc) · 1.46 KB
/
UpdateAgentLogRequest.ts
File metadata and controls
37 lines (35 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* This file was auto-generated by Fern from our API Definition.
*/
import * as Humanloop from "../../../../index";
/**
* @example
* {
* messages: [{
* role: "user",
* content: "I need to withdraw $1000"
* }, {
* role: "assistant",
* content: "Of course! Would you like to use your savings or checking account?"
* }],
* outputMessage: {
* role: "assistant",
* content: "I'm sorry, I can't help with that."
* },
* logStatus: "complete"
* }
*/
export interface UpdateAgentLogRequest {
/** List of chat messages that were used as an input to the Flow. */
messages?: Humanloop.ChatMessage[];
/** The output message returned by this Flow. */
outputMessage?: Humanloop.ChatMessage;
/** The inputs passed to the Flow Log. */
inputs?: Record<string, unknown>;
/** The output of the Flow Log. Provide None to unset existing `output` value. Provide either this, `output_message` or `error`. */
output?: string;
/** The error message of the Flow Log. Provide None to unset existing `error` value. Provide either this, `output_message` or `output`. */
error?: string;
/** Status of the Flow Log. When a Flow Log is updated to `complete`, no more Logs can be added to it. You cannot update a Flow Log's status from `complete` to `incomplete`. */
logStatus?: Humanloop.LogStatus;
}