Skip to content

Commit

Permalink
Merge pull request #58 from samchon/feat/llm
Browse files Browse the repository at this point in the history
Wiriting Gemini schema and its type checker
  • Loading branch information
samchon authored Nov 6, 2024
2 parents fc718d3 + 049b522 commit 72c562e
Show file tree
Hide file tree
Showing 5 changed files with 755 additions and 19 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ OpenAPI definitions, converters and LLM function calling application composer.
`@samchon/openapi` also provides LLM (Large Language Model) function calling application composer from the OpenAPI document with many strategies. With the [`HttpLlm`](https://github.com/samchon/openapi/blob/master/src/HttpLlm.ts) module, you can perform the LLM funtion calling extremely easily just by delivering the OpenAPI (Swagger) document.

- [`HttpLlm.application()`](https://github.com/samchon/openapi/blob/master/src/HttpLlm.ts)
- [`IHttpLlmApplication`](https://github.com/samchon/openapi/blob/master/src/structures/ILlmApplication.ts)
- [`IHttpLlmFunction`](https://github.com/samchon/openapi/blob/master/src/structures/ILlmFunction.ts)
- [`ILlmSchema`](https://github.com/samchon/openapi/blob/master/src/structures/ILlmSchema.ts)
- [`LlmTypeChecker`](https://github.com/samchon/openapi/blob/master/src/utils/LlmTypeChecker.ts)
- [`IHttpLlmApplication<Model, Schema>`](https://github.com/samchon/openapi/blob/master/src/structures/ILlmApplication.ts)
- [`IHttpLlmFunction<Schema>`](https://github.com/samchon/openapi/blob/master/src/structures/ILlmFunction.ts)
- Supported schemes
- [`ILlmSchema`](https://github.com/samchon/openapi/blob/master/src/structures/ILlmSchema.ts)
- [`IGeminiSchema`](https://github.com/samchon/openapi/blob/master/src/structures/IGeminiSchema.ts)
- [`IOpenAiSchema`](https://github.com/samchon/openapi/blob/master/src/structures/IOpenAiSchema.ts)

> [!TIP]
>
Expand Down
43 changes: 28 additions & 15 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
// STRUCTURES
//----
// OPENAPI
//----
export * from "./OpenApi";
export * from "./SwaggerV2";
export * from "./OpenApiV3";
export * from "./OpenApiV3_1";

export * from "./utils/OpenApiTypeChecker";

//----
// MIGRATION
//----
export * from "./structures/IHttpMigrateApplication";
export * from "./structures/IHttpMigrateRoute";

export * from "./structures/IHttpConnection";
export * from "./structures/IHttpResponse";
export * from "./http/HttpError";

export * from "./HttpMigration";

//----
// LLM
//----
export * from "./structures/IHttpLlmApplication";
export * from "./structures/IHttpLlmFunction";
export * from "./structures/IHttpMigrateRoute";
export * from "./structures/IHttpMigrateApplication";
export * from "./structures/IHttpResponse";
export * from "./structures/ILlmApplication";
export * from "./structures/ILlmSchema";

// UTILS
export * from "./http/HttpError";
export * from "./utils/OpenApiTypeChecker";
export * from "./utils/LlmTypeChecker";
export * from "./structures/ILlmSchema";
export * from "./structures/IGeminiSchema";

// OPENAPI MODULES
export * from "./OpenApi";
export * from "./SwaggerV2";
export * from "./OpenApiV3";
export * from "./OpenApiV3_1";
export * from "./HttpLlm";
export * from "./HttpMigration";
export * from "./utils/LlmTypeChecker";
export * from "./utils/GeminiTypeChecker";
Loading

0 comments on commit 72c562e

Please sign in to comment.