@forwardimpact/libtype
Advanced tools
+1
-1
| { | ||
| "name": "@forwardimpact/libtype", | ||
| "version": "0.1.69", | ||
| "version": "0.1.70", | ||
| "description": "Shared type definitions and data models for Guide", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
+0
-20
@@ -16,7 +16,4 @@ import { generateUUID } from "@forwardimpact/libsecret"; | ||
| resource = {}, | ||
| agent = {}, | ||
| llm = {}, | ||
| vector = {}, | ||
| graph = {}, | ||
| memory = {}, | ||
| tool = {}, | ||
@@ -80,3 +77,2 @@ trace = {}, | ||
| common.Agent.prototype.withIdentifier = withIdentifier; | ||
| common.Conversation.prototype.withIdentifier = withIdentifier; | ||
@@ -142,15 +138,2 @@ common.Message.prototype.withIdentifier = withIdentifier; | ||
| /** | ||
| * Monkey-patches for common.Agent | ||
| */ | ||
| const AgentCtor = common.Agent; | ||
| const AgentfromObject = AgentCtor.fromObject; | ||
| // Monkey-patch Agent.fromObject to apply identifier | ||
| common.Agent.fromObject = function (object) { | ||
| const typed = AgentfromObject(object); | ||
| typed.withIdentifier(); | ||
| return typed; | ||
| }; | ||
| /** | ||
| * Monkey-patches for tool.ToolFunction | ||
@@ -196,9 +179,6 @@ */ | ||
| resource, | ||
| agent, | ||
| llm, | ||
| vector, | ||
| graph, | ||
| memory, | ||
| tool, | ||
| trace, | ||
| }; |
17316
-2.43%155
-10.4%