-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
153 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,9 +45,90 @@ export async function populateLogs() { | |
external_user_id: 91823, | ||
feedback: null, | ||
template_version_id: null, | ||
runtime: "langchain-js", | ||
runtime: "langchain-py", | ||
metadata: "{}", | ||
}, | ||
{ | ||
created_at: "2024-11-14T03:55:51.596Z", | ||
ended_at: "2024-11-14T03:55:52.206Z", | ||
duration: "00:00:00.61", | ||
tags: ["test", "test2"], | ||
project_id: project.id, | ||
status: "success", | ||
name: "My great agent", | ||
error: null, | ||
input: [1, 2, 3, { test: "sdkj", test2: "sdkj" }], | ||
output: "Agent output", | ||
params: {}, | ||
type: "agent", | ||
parent_run_id: null, | ||
prompt_tokens: null, | ||
completion_tokens: null, | ||
cost: null, | ||
external_user_id: 91823, | ||
feedback: null, | ||
is_public: false, | ||
template_version_id: null, | ||
runtime: "lunary-py", | ||
metadata: null, | ||
}, | ||
{ | ||
created_at: "2024-11-14T03:54:11.773Z", | ||
ended_at: "2024-11-14T03:54:12.528Z", | ||
duration: "00:00:00.755", | ||
tags: ["test", "test2"], | ||
project_id: project.id, | ||
status: "success", | ||
name: "My great agent", | ||
error: null, | ||
input: [1, 2, 3, { test: "sdkj", test2: "sdkj" }], | ||
output: "Agent output", | ||
params: {}, | ||
type: "agent", | ||
parent_run_id: null, | ||
prompt_tokens: null, | ||
completion_tokens: null, | ||
cost: null, | ||
external_user_id: 91823, | ||
feedback: null, | ||
is_public: false, | ||
template_version_id: null, | ||
runtime: "lunary-py", | ||
metadata: null, | ||
}, | ||
{ | ||
created_at: "2024-09-28T11:42:37.770Z", | ||
ended_at: "2024-09-28T11:42:40.157Z", | ||
duration: "00:00:02.387", | ||
tags: null, | ||
project_id: project.id, | ||
status: "success", | ||
name: "SupportAgent", | ||
error: null, | ||
input: { | ||
user: { | ||
id: "demo-user-4", | ||
name: "Test User 2", | ||
email: "[email protected]", | ||
}, | ||
topic: "billing", | ||
question: "Hi, I would like to cancel my subscription.", | ||
}, | ||
output: | ||
"Hello Test User 2,\n\nI understand you'd like to cancel your subscription. I apologize, but I don't actually have access to any billing or account information. I'm Claude, an AI assistant created by Anthropic to be helpful, harmless, and honest.\n\nFor assistance with canceling your subscription, you'll need to contact the customer support team for the specific service you're subscribed to. They'll be able to help you with the cancellation process.\n\nIs there anything else I can assist you with today?", | ||
params: null, | ||
type: "agent", | ||
parent_run_id: "087c446e-ec41-412e-adb7-bea690e13789", | ||
prompt_tokens: null, | ||
completion_tokens: null, | ||
cost: null, | ||
external_user_id: 91823, | ||
feedback: null, | ||
is_public: false, | ||
template_version_id: null, | ||
runtime: "lunary-py", | ||
metadata: null, | ||
}, | ||
]; | ||
await sql`insert into run ${sql(logs)}`; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters