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

@opencode-ai/ai

Package Overview
Dependencies
Maintainers
2
Versions
230
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opencode-ai/ai - npm Package Compare versions

Comparing version
0.0.0-next-16076
to
0.0.0-next-16077
+1
-1
dist/llm.d.ts

@@ -25,3 +25,3 @@ import { Effect, JsonSchema, Schema } from "effect";

export declare const updateRequest: (input: LLMRequest, patch: Partial<RequestInput>) => LLMRequest;
type GenerateObjectBase = Omit<RequestInput, "tools" | "toolChoice" | "responseFormat">;
type GenerateObjectBase = Omit<RequestInput, "tools" | "toolChoice">;
export declare class GenerateObjectResponse<T> {

@@ -28,0 +28,0 @@ readonly object: T;

@@ -332,12 +332,2 @@ import { Schema } from "effect";

}
export declare const ResponseFormat: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
readonly type: Schema.Literal<"text">;
}>, Schema.Struct<{
readonly type: Schema.Literal<"json">;
readonly schema: Schema.$Record<Schema.String, Schema.Unknown>;
}>, Schema.Struct<{
readonly type: Schema.Literal<"tool">;
readonly tool: typeof ToolDefinition;
}>]>;
export type ResponseFormat = Schema.Schema.Type<typeof ResponseFormat>;
declare const LLMRequest_base: Schema.Class<LLMRequest, Schema.Struct<{

@@ -361,11 +351,2 @@ readonly id: Schema.optional<Schema.String>;

readonly http: Schema.optional<typeof HttpOptions>;
readonly responseFormat: Schema.optional<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
readonly type: Schema.Literal<"text">;
}>, Schema.Struct<{
readonly type: Schema.Literal<"json">;
readonly schema: Schema.$Record<Schema.String, Schema.Unknown>;
}>, Schema.Struct<{
readonly type: Schema.Literal<"tool">;
readonly tool: typeof ToolDefinition;
}>]>>;
readonly cache: Schema.optional<Schema.Union<readonly [Schema.Literal<"auto">, Schema.Literal<"none">, Schema.Struct<{

@@ -372,0 +353,0 @@ readonly tools: Schema.optional<Schema.Boolean>;

@@ -202,7 +202,2 @@ import { Schema } from "effect";

})(ToolChoice || (ToolChoice = {}));
export const ResponseFormat = Schema.Union([
Schema.Struct({ type: Schema.Literal("text") }),
Schema.Struct({ type: Schema.Literal("json"), schema: JsonSchema }),
Schema.Struct({ type: Schema.Literal("tool"), tool: ToolDefinition }),
]).pipe(Schema.toTaggedUnion("type"));
export class LLMRequest extends Schema.Class("LLM.Request")({

@@ -218,3 +213,2 @@ id: Schema.optional(Schema.String),

http: Schema.optional(HttpOptions),
responseFormat: Schema.optional(ResponseFormat),
cache: Schema.optional(CachePolicy),

@@ -235,3 +229,2 @@ metadata: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),

http: request.http,
responseFormat: request.responseFormat,
cache: request.cache,

@@ -238,0 +231,0 @@ metadata: request.metadata,

{
"$schema": "https://json.schemastore.org/package.json",
"version": "0.0.0-next-16076",
"version": "0.0.0-next-16077",
"name": "@opencode-ai/ai",

@@ -29,3 +29,3 @@ "type": "module",

"@effect/platform-node": "4.0.0-beta.98",
"@opencode-ai/http-recorder": "0.0.0-next-16076",
"@opencode-ai/http-recorder": "0.0.0-next-16077",
"@tsconfig/bun": "1.0.9",

@@ -39,3 +39,3 @@ "@types/bun": "1.3.13",

"@smithy/util-utf8": "4.2.2",
"@opencode-ai/schema": "0.0.0-next-16076",
"@opencode-ai/schema": "0.0.0-next-16077",
"aws4fetch": "1.0.20",

@@ -42,0 +42,0 @@ "effect": "4.0.0-beta.98",