본문으로 건너뛰기
Skillpedia
에이전트7.0k · #13667

openserv-agent-sdk

하는 일

이 스킬은 OpenServ Agent SDK로 TypeScript에서 AI 에이전트를 만드는 방법을 안내합니다. 에이전트를 OpenServ 플랫폼에서 실행하고 워크플로에서 작업을 받게 하려는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓OpenServ 플랫폼에서 실행되는 맞춤 AI 에이전트를 만들고 싶을 때.
  • ✓에이전트의 기능에 스키마와 실행 함수가 필요할 때.
  • ✓워크플로, 다른 에이전트, 또는 유료 호출로 에이전트를 시작하고 싶을 때.

스킬 링크

https://github.com/internet-court/internet-court-skill/blob/main/vendored/openserv/openserv-agent-sdk/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/internet-court/internet-court-skill/blob/main/vendored/openserv/openserv-agent-sdk/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 제품 카탈로그에 대한 질문에 답하는 OpenServ용 TypeScript 에이전트를 만들도록 도와주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 시스템 프롬프트와 기능을 정의한 뒤, 에이전트를 플랫폼에 등록합니다. 기능은 실행 가능한 코드일 수도 있고, 플랫폼이 자체 AI 호출로 처리하는 비실행형 기능일 수도 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

OpenServ Agent SDK

Build and deploy custom AI agents for the OpenServ platform using TypeScript.

Why build an agent?

An OpenServ agent is a service that runs your code and exposes it on the OpenServ platform—so it can be triggered by workflows, other agents, or paid calls (e.g. x402). The platform sends tasks to your agent; your agent runs your capabilities (APIs, tools, file handling) and returns results. You don't have to use an LLM—e.g. it could be a static API that just returns data. If you need LLM reasoning, you have two options: use runless capabilities (the platform handles the AI call for you—no API key needed) or use generate() (delegates the LLM call to the platform); alternatively, bring your own LLM (any provider you have access to).

How it works (the flow)

  1. Define your agent — System prompt plus capabilities. Capabilities come in two flavors: runnable (with a Zod schema and a run handler) and runless (just a name and description—the platform handles the AI call automatically). You can also use generate() inside runnable capabilities to delegate LLM calls to the platform.
  2. Register with the platform — You need an account on the platform; often the easiest way is to let provision() create one for you automatically by creating a wallet and signing up with it (that account is reused on later runs). Call provision() (from @openserv-labs/client): it creates or reuses a wallet, registers the agent, and writes API key and auth token into your env (or you pass agent.instance to bind them directly). In development you can skip setting an endpoint URL; the SDK can use a built-in tunnel to the platform.
  3. Start the agent — Call run(agent). The agent listens for tasks, runs your capabilities (and your LLM if you use one), and responds. Use reference.md and troubleshooting.md for details; examples/ has full runnable code.

What your agent can do

  • Runless Capabilities — Just a name and description. The platform handles the AI call automatically—no API key, no run() function needed. Optionally define inputSchema and outputSchema for structured I/O.
  • Runnable Capabilities — The tools your agent can run (e.g. search, transform data, call APIs). Each has a name, description, inputSchema, and run() function.
  • generate() method — Delegate LLM calls to the platform from inside any runnable capability. No API key needed—the platform performs the call and records usage. Supports text and structured output.
  • Task context — When running in a task, the agent can attach logs and uploads to that task via methods like addLogToTask() and uploadFile().
  • Multi-agent workflows — Your agent can be part of workflows with other agents; see the openserv-client skill for the Platform API, workflows, and ERC-8004 on-chain identity.

Reference: reference.md (patterns) · troubleshooting.md (common issues) · examples/ (full examples)

Quick Start

Installation

npm install @openserv-labs/sdk @openserv-labs/client zod

Note: openai is only needed if you use the process() method for direct OpenAI calls. Most agents don't need it—use runless capabilities or generate() instead.

Minimal Agent

See examples/basic-agent.ts for a complete runnable example.

The pattern is simple:

  1. Create an Agent with a system prompt
  2. Add capabilities with agent.addCapability()
  3. Call provision() to register on the platform (pass agent.instance to bind credentials)
  4. Call run(agent) to start

Complete Agent Template

File Structure

my-agent/
├── src/agent.ts
├── .env
├── .gitignore
├── package.json
└── tsconfig.json

Dependencies

npm init -y && npm pkg set type=module
npm i @openserv-labs/sdk @openserv-labs/client dotenv zod
npm i -D @types/node tsx typescript

Note: The project must use "type": "module" in package.json. Add a "dev": "tsx src/agent.ts" script for local development. Only install openai if you use the process() method for direct OpenAI calls.

.env

Most agents don't need any LLM API key—use runless capabilities or generate() and the platform handles LLM calls for you. If you use process() for direct OpenAI calls, set OPENAI_API_KEY. The rest is filled by provision().

# Only needed if you use process() for direct OpenAI calls:
# OPENAI_API_KEY=your-openai-key
# ANTHROPIC_API_KEY=your_anthropic_key  # I
자주 묻는 질문

LLM을 꼭 써야 하나요?

아니요. 스킬은 LLM 없이 데이터를 돌려주는 간단한 API도 에이전트가 될 수 있다고 말합니다.

클라이언트 패키지도 필요한가요?

네. 스킬은 두 패키지가 모두 필요하므로 openserv-client 스킬도 함께 읽으라고 말합니다.

등록은 어떻게 이루어지나요?

스킬은 지갑으로 계정을 만들고 에이전트를 등록할 수 있는 provision 함수를 설명합니다.

상세 정보

작성자의 원본 설명

Build and deploy autonomous AI agents using the OpenServ SDK (@openserv-labs/sdk). IMPORTANT - Always read the companion skill openserv-client alongside this skill, as both packages are required to build and run agents. openserv-client covers the full Platform API for multi-agent workflows and ERC-8004 on-chain identity. Read reference.md for the full API reference.

repo: internet-court/internet-court-skill

인기도

GitHub 스타
7.0k
순위
#13667
라이선스
—
업데이트
2026. 10. 26.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬