New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@samchon/openapi

Package Overview
Dependencies
Maintainers
0
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@samchon/openapi - npm Package Compare versions

Comparing version 2.0.0-dev.20241125-2 to 2.0.0-dev.20241125-3

30

lib/structures/ILlmSchema.d.ts

@@ -1,10 +0,6 @@

import { IChatGptSchema } from "./IChatGptSchema";
import { IClaudeSchema } from "./IClaudeSchema";
import { IGeminiSchema } from "./IGeminiSchema";
import { ILlmSchemaV3 } from "./ILlmSchemaV3";
import { ILlmSchemaV3_1 } from "./ILlmSchemaV3_1";
import { ILlmApplication } from "./ILlmApplication";
/**
* The schemas for the LLM function calling.
*
* `ILlmSchema` is an union type collecting all the schemas for the
* `ILlmSchema` is an union type collecting every the schemas for the
* LLM function calling.

@@ -14,8 +10,24 @@ *

*
* @template Model Name of the target LLM model
* @reference https://platform.openai.com/docs/guides/function-calling
* @reference https://platform.openai.com/docs/guides/structured-outputs
* @author Jeongho Nam - https://github.com/samchon
*/
export type ILlmSchema = IChatGptSchema | IClaudeSchema | IGeminiSchema | ILlmSchemaV3 | ILlmSchemaV3_1;
export type ILlmSchema<Model extends ILlmApplication.Model = ILlmApplication.Model> = ILlmApplication.ModelSchema[Model];
export declare namespace ILlmSchema {
type IParameters = IChatGptSchema.IParameters | IClaudeSchema.IParameters | IGeminiSchema.IParameters | ILlmSchemaV3.IParameters | ILlmSchemaV3_1.IParameters;
type IConfig = IChatGptSchema.IConfig | IClaudeSchema.IConfig | IGeminiSchema.IConfig | ILlmSchemaV3.IConfig | ILlmSchemaV3_1.IConfig;
/**
* Type of function parameters.
*
* `ILlmSchema.IParameters` is a type defining a function's pamameters
* as a keyworded object type.
*
* It also can be utilized for the structured output metadata.
*
* @reference https://platform.openai.com/docs/guides/structured-outputs
*/
type IParameters<Model extends ILlmApplication.Model = ILlmApplication.Model> = ILlmApplication.ModelParameters[Model];
/**
* Configuration for the LLM schema composition.
*/
type IConfig<Model extends ILlmApplication.Model = ILlmApplication.Model> = ILlmApplication.ModelConfig[Model];
}
{
"name": "@samchon/openapi",
"version": "2.0.0-dev.20241125-2",
"version": "2.0.0-dev.20241125-3",
"description": "OpenAPI definitions and converters for 'typia' and 'nestia'.",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -1,6 +0,2 @@

import { IChatGptSchema } from "./IChatGptSchema";
import { IClaudeSchema } from "./IClaudeSchema";
import { IGeminiSchema } from "./IGeminiSchema";
import { ILlmSchemaV3 } from "./ILlmSchemaV3";
import { ILlmSchemaV3_1 } from "./ILlmSchemaV3_1";
import { ILlmApplication } from "./ILlmApplication";

@@ -10,3 +6,3 @@ /**

*
* `ILlmSchema` is an union type collecting all the schemas for the
* `ILlmSchema` is an union type collecting every the schemas for the
* LLM function calling.

@@ -16,25 +12,32 @@ *

*
* @template Model Name of the target LLM model
* @reference https://platform.openai.com/docs/guides/function-calling
* @reference https://platform.openai.com/docs/guides/structured-outputs
* @author Jeongho Nam - https://github.com/samchon
*/
export type ILlmSchema =
| IChatGptSchema
| IClaudeSchema
| IGeminiSchema
| ILlmSchemaV3
| ILlmSchemaV3_1;
export type ILlmSchema<
Model extends ILlmApplication.Model = ILlmApplication.Model,
> = ILlmApplication.ModelSchema[Model];
export namespace ILlmSchema {
export type IParameters =
| IChatGptSchema.IParameters
| IClaudeSchema.IParameters
| IGeminiSchema.IParameters
| ILlmSchemaV3.IParameters
| ILlmSchemaV3_1.IParameters;
/**
* Type of function parameters.
*
* `ILlmSchema.IParameters` is a type defining a function's pamameters
* as a keyworded object type.
*
* It also can be utilized for the structured output metadata.
*
* @reference https://platform.openai.com/docs/guides/structured-outputs
*/
export type IParameters<
Model extends ILlmApplication.Model = ILlmApplication.Model,
> = ILlmApplication.ModelParameters[Model];
export type IConfig =
| IChatGptSchema.IConfig
| IClaudeSchema.IConfig
| IGeminiSchema.IConfig
| ILlmSchemaV3.IConfig
| ILlmSchemaV3_1.IConfig;
/**
* Configuration for the LLM schema composition.
*/
export type IConfig<
Model extends ILlmApplication.Model = ILlmApplication.Model,
> = ILlmApplication.ModelConfig[Model];
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc