Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
types for logs [wip]
Vasek Mlejnsky18fd5a343800
diff --git a/utils/agentLogs.ts b/utils/agentLogs.tsindex 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: stringreasoning: 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