chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-08 20:57:36 +00:00
parent 5bb7b23440
commit ba8c920639
19 changed files with 49 additions and 75 deletions
+4 -9
View File
@@ -1,10 +1,5 @@
import { Effect, JsonSchema, Schema } from "effect"
import {
LLMClient,
modelLimits,
modelRef,
type ModelRefInput,
} from "./route/client"
import { LLMClient, modelLimits, modelRef, type ModelRefInput } from "./route/client"
import {
GenerationOptions,
HttpOptions,
@@ -196,10 +191,10 @@ const runGenerateObject = Effect.fn("LLM.generateObject")(function* (
export function generateObject<S extends ToolSchema<any>>(
options: GenerateObjectOptions<S>,
): Effect.Effect<GenerateObjectResponse<Schema.Schema.Type<S>>, LLMError>
export function generateObject(options: GenerateObjectDynamicOptions): Effect.Effect<GenerateObjectResponse<unknown>, LLMError>
export function generateObject(
options: GenerateObjectOptions<ToolSchema<any>> | GenerateObjectDynamicOptions,
) {
options: GenerateObjectDynamicOptions,
): Effect.Effect<GenerateObjectResponse<unknown>, LLMError>
export function generateObject(options: GenerateObjectOptions<ToolSchema<any>> | GenerateObjectDynamicOptions) {
if ("schema" in options) {
const { schema, ...rest } = options
return runGenerateObject(