From 38db41b08cb36456cd7ce9a2171491748146c786 Mon Sep 17 00:00:00 2001 From: Sambhav Dixit <94298612+sambhavnoobcoder@users.noreply.github.com> Date: Sun, 27 Oct 2024 18:33:17 +0530 Subject: [PATCH] adding asdict - added asdict to turn things into json compatible output --- swarms/structs/agent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/swarms/structs/agent.py b/swarms/structs/agent.py index 30073fab..1471ff3e 100644 --- a/swarms/structs/agent.py +++ b/swarms/structs/agent.py @@ -57,6 +57,8 @@ from clusterops import ( execute_with_cpu_cores, ) from swarms.agents.ape_agent import auto_generate_prompt +from dataclasses import asdict + # Utils