@wrtnlabs/connector-korea-eximbank

0.1.505 • Public • Published

@wrtnlabs/connector-korea-eximbank

By installing the package, you can use functions for Korea eximbank.

How to Use

Setup

install the packages related with @agentica/core

npm install @agentica/core @samchon/openapi typia
npx typia setup

install the @wrtnlabs/connector-korea-eximbank package.

npm install @wrtnlabs/connector-korea-eximbank

Usage

import { KoreaEximbankService } from "@wrtnlabs/connector-korea-eximbank";

async function main() {
  const agent = new Agentica({
    model: "chatgpt",
    vendor: {
      api: openai,
      model: "gpt-4o-mini",
    },
    controllers: [
      {
        name: "Korea eximbank Connector",
        protocol: "class",
        application: typia.llm.application<KoreaEximbankService, "chatgpt">(),
        execute: new KoreaEximbankService(),
      },
    ],
  });

  await agent.conversate("What you can do?");
}

main().catch(console.error);

Define the LLM model to be used through new OpenAI() and create an agent to allow tool calls by injecting the OpenAI class into new Agentica(). And you can define the tool to use by entering Connector package(tool) in the controllers part of the creator. At this time, the protocol must be set to "class" and the methods of the class must be set to "class" so that the methods of the class can be executed through utterance with LLM. typia.llm.applicationOfValidate<KoreaEximbankService, "chatgpt">() converts the methods implemented in class in Typescript compilation time into openai function scheme.

Package Sidebar

Install

npm i @wrtnlabs/connector-korea-eximbank

Weekly Downloads

123

Version

0.1.505

License

MIT

Unpacked Size

13.9 kB

Total Files

17

Last publish

Collaborators

  • samchon
  • acrylicshrimp
  • kakasoo
  • sunrabbit123