Skip to main content

@okcashpro/okai v0.1.7-alpha.1 / GenerationOptions

Interface: GenerationOptions

Configuration options for generating objects with a model.

Properties

runtime

runtime: IAgentRuntime

Defined in

packages/core/src/generation.ts:1236


context

context: string

Defined in

packages/core/src/generation.ts:1237


modelClass

modelClass: ModelClass

Defined in

packages/core/src/generation.ts:1238


schema?

optional schema: ZodType<any, ZodTypeDef, any>

Defined in

packages/core/src/generation.ts:1239


schemaName?

optional schemaName: string

Defined in

packages/core/src/generation.ts:1240


schemaDescription?

optional schemaDescription: string

Defined in

packages/core/src/generation.ts:1241


stop?

optional stop: string[]

Defined in

packages/core/src/generation.ts:1242


mode?

optional mode: "auto" | "json" | "tool"

Defined in

packages/core/src/generation.ts:1243


experimental_providerMetadata?

optional experimental_providerMetadata: Record<string, unknown>

Defined in

packages/core/src/generation.ts:1244