Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

types for logs [wip]

Vasek Mlejnsky18fd5a343800
diff --git a/utils/agentLogs.ts b/utils/agentLogs.ts
index ac8e5aaea..d190fb9ab 100644
--- a/utils/agentLogs.ts
+++ b/utils/agentLogs.ts
@@ -23,9 +23,21 @@ export interface LogFile {
relativePath: string
}
+
+export interface AgentLogs {
+ logs: (SystemPromptLog | UserPromptLog | AssistantPromptLog)[] | AgentNextActionLog
+ functions?: AgentFunction[]
+}
+
+export interface AgentFunction {
+ name: string
+ description?: string
+ parameters: { [key: string]: any }
+}
+
// This is very specific to AutoGPT logs.
// We'll generalize later.
-export interface AgentNextAction {
+export interface AgentNextActionLog {
thoughts: {
text: string
reasoning: string
@@ -39,17 +51,6 @@ export interface AgentNextAction {
}
}
-export interface AgentLogs {
- logs: (SystemPromptLog | UserPromptLog | AssistantPromptLog)[]
- functions?: AgentFunction[]
-}
-
-export interface AgentFunction {
- name: string
- description?: string
- parameters: { [key: string]: any }
-}
-
export interface SystemPromptLog {
role: 'system'
content: string