🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@agenite/llm

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agenite/llm - npm Package Compare versions

Comparing version
0.2.2
to
0.3.0
+6
-0
CHANGELOG.md
# @agenite/llm
## 0.3.0
### Minor Changes
- e2077e2: add reasoning support
## 0.2.2

@@ -4,0 +10,0 @@

+16
-2
/**
* Content block types for rich message content
*/
type ContentBlock = TextBlock | ImageBlock | ToolUseBlock | ToolResultBlock;
type ContentBlock = TextBlock | ImageBlock | ToolUseBlock | ToolResultBlock | ReasoningBlock;
interface ReasoningBlock {
type: 'reasoning';
reasoning: string;
[key: string]: unknown;
}
interface TextBlock {

@@ -74,5 +79,14 @@ type: 'text';

text: string;
isStart?: boolean;
isEnd?: boolean;
} | {
type: 'reasoning';
reasoning: string;
isStart?: boolean;
isEnd?: boolean;
} | {
type: 'toolUse';
toolUse: ToolUseBlock;
isStart?: boolean;
isEnd?: boolean;
};

@@ -144,2 +158,2 @@ /**

export { type BaseLLMConfig, BaseLLMProvider, type BaseMessage, type ContentBlock, type GenerateOptions, type GenerateResponse, type ImageBlock, type IterateGenerateOptions, type LLMProvider, type PartialReturn, type Role, type StopReason, type TextBlock, type TokenUsage, type ToolDefinition, type ToolResultBlock, type ToolSchema, type ToolUseBlock, convertStringToMessages, iterateFromMethods };
export { type BaseLLMConfig, BaseLLMProvider, type BaseMessage, type ContentBlock, type GenerateOptions, type GenerateResponse, type ImageBlock, type IterateGenerateOptions, type LLMProvider, type PartialReturn, type ReasoningBlock, type Role, type StopReason, type TextBlock, type TokenUsage, type ToolDefinition, type ToolResultBlock, type ToolSchema, type ToolUseBlock, convertStringToMessages, iterateFromMethods };
/**
* Content block types for rich message content
*/
type ContentBlock = TextBlock | ImageBlock | ToolUseBlock | ToolResultBlock;
type ContentBlock = TextBlock | ImageBlock | ToolUseBlock | ToolResultBlock | ReasoningBlock;
interface ReasoningBlock {
type: 'reasoning';
reasoning: string;
[key: string]: unknown;
}
interface TextBlock {

@@ -74,5 +79,14 @@ type: 'text';

text: string;
isStart?: boolean;
isEnd?: boolean;
} | {
type: 'reasoning';
reasoning: string;
isStart?: boolean;
isEnd?: boolean;
} | {
type: 'toolUse';
toolUse: ToolUseBlock;
isStart?: boolean;
isEnd?: boolean;
};

@@ -144,2 +158,2 @@ /**

export { type BaseLLMConfig, BaseLLMProvider, type BaseMessage, type ContentBlock, type GenerateOptions, type GenerateResponse, type ImageBlock, type IterateGenerateOptions, type LLMProvider, type PartialReturn, type Role, type StopReason, type TextBlock, type TokenUsage, type ToolDefinition, type ToolResultBlock, type ToolSchema, type ToolUseBlock, convertStringToMessages, iterateFromMethods };
export { type BaseLLMConfig, BaseLLMProvider, type BaseMessage, type ContentBlock, type GenerateOptions, type GenerateResponse, type ImageBlock, type IterateGenerateOptions, type LLMProvider, type PartialReturn, type ReasoningBlock, type Role, type StopReason, type TextBlock, type TokenUsage, type ToolDefinition, type ToolResultBlock, type ToolSchema, type ToolUseBlock, convertStringToMessages, iterateFromMethods };
+3
-3
{
"name": "@agenite/llm",
"version": "0.2.2",
"version": "0.3.0",
"description": "LLM interface for Agenite",

@@ -18,6 +18,6 @@ "private": false,

"devDependencies": {
"@types/node": "^20.17.17",
"@types/node": "^20.17.19",
"tsup": "^8.3.6",
"typescript": "^5.7.3",
"@repo/eslint-config": "0.0.3",
"@repo/eslint-config": "0.0.4",
"@repo/tsup-config": "0.0.3",

@@ -24,0 +24,0 @@ "@repo/typescript-config": "0.0.1"