@ai.ntellect/core 0.0.23 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.ts CHANGED
@@ -1,7 +1,8 @@
1
- export * from "./agents/orchestrator";
2
- export * from "./agents/synthesizer";
1
+ export * from "./agent";
2
+ export * from "./llm/orchestrator";
3
+ export * from "./llm/synthesizer";
4
+
3
5
  export * from "./services/queue";
4
6
  export * from "./types";
5
7
 
6
- export * from "./memory";
7
- export * from "./workflow";
8
+ export * from "./memory";
@@ -1,10 +1,10 @@
1
1
  import { openai } from "@ai-sdk/openai";
2
2
  import { generateObject } from "ai";
3
3
  import { z } from "zod";
4
- import { ActionSchema, Agent } from "../../types";
4
+ import { ActionSchema, BaseLLM } from "../../types";
5
5
  import { orchestratorContext } from "./context";
6
6
 
7
- export class Orchestrator implements Agent {
7
+ export class Orchestrator implements BaseLLM {
8
8
  private readonly model = openai("gpt-4o-mini");
9
9
  public tools: ActionSchema[];
10
10
 
@@ -1,10 +1,10 @@
1
1
  import { openai } from "@ai-sdk/openai";
2
2
  import { generateObject, streamText, StreamTextResult } from "ai";
3
3
  import { z } from "zod";
4
- import { Agent } from "../../types";
4
+ import { BaseLLM } from "../../types";
5
5
  import { summarizerContext } from "./context";
6
6
 
7
- export class Summarizer implements Agent {
7
+ export class Summarizer implements BaseLLM {
8
8
  private readonly model = openai("gpt-4-turbo");
9
9
 
10
10
  async process(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai.ntellect/core",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/types.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { StreamTextResult } from "ai";
2
2
  import { z } from "zod";
3
3
 
4
- export interface Agent {
4
+ export interface BaseLLM {
5
5
  process: (prompt: string) => Promise<string | object>;
6
6
  streamProcess?: (
7
7
  prompt: string