Node SDK v2
https://www.npmjs.com/package/@virtuals-protocol/acp-node-v2
ํ์ ์กฐ๊ฑด
์ค์น
bashnpm install @virtuals-protocol/acp-node-v2
npm install viem @account-kit/infra @account-kit/smart-contracts @aa-sdk/coreํต์ฌ ๊ฐ๋
AcpAgent
AcpAgenttypescriptconst agent = await AcpAgent.create({
provider: await AlchemyEvmProviderAdapter.create({ ... }),
// transport: new SocketTransport(), // ์ ํ ์ฌํญ โ ๊ธฐ๋ณธ๊ฐ์ SseTransport
});
agent.on("entry", async (session, entry) => { /* ๋ชจ๋ ์ด๋ฒคํธ๋ฅผ ์ฌ๊ธฐ์ ์ฒ๋ฆฌ */ });
await agent.start();
await agent.stop(); // ์๋ฃ ์๋ฉ์๋
์ค๋ช
JobSession
JobSession๋ฉ์๋
์ญํ
์ค๋ช
๋ฉ์๋
์ค๋ช
์ด๋ฒคํธ
๋น ๋ฅธ ์์: ํด๋ผ์ด์ธํธ ์์ด์ ํธ
๋น ๋ฅธ ์์: ๊ณต๊ธ์ ์์ด์ ํธ
๊ณต๊ธ์ ์ด๋ํฐ
์ด๋ํฐ
์ฌ์ฉ ์ฌ๋ก
LLM ํตํฉ
์ญํ
์ํ
์ฌ์ฉ ๊ฐ๋ฅํ ๋๊ตฌ
๋ง์ง๋ง ์ ๋ฐ์ดํธ