Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nadeesha committed Dec 11, 2024
1 parent b3f8f64 commit d977685
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions connectors/trpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@ The Inferable tRPC Adapter allows you to expose your existing tRPC router endpoi
### npm

```bash
npm install @inferable/trpc-connector
npm install @inferable/trpc-adapter
```

### yarn

```bash
yarn add @inferable/trpc-connector
yarn add @inferable/trpc-adapter
```

### pnpm

```bash
pnpm add @inferable/trpc-connector
pnpm add @inferable/trpc-adapter
```

## Quick Start

Create your tRPC router with the Inferable plugin:

```ts
import { inferablePlugin } from "@inferable/trpc-connector";
import { inferablePlugin } from "@inferable/trpc-adapter";

const t = initTRPC.create();
const withInferable = inferablePlugin();
Expand All @@ -53,7 +53,7 @@ const appRouter = t.router({
Create an Inferable service from your router:

```ts
import { createInferableService } from "@inferable/trpc-connector";
import { createInferableService } from "@inferable/trpc-adapter";
import { Inferable } from "inferable";

const client = new Inferable({
Expand Down
2 changes: 1 addition & 1 deletion connectors/trpc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@inferable/trpc-adapter",
"version": "0.1.1",
"version": "0.1.2",
"description": "Build your Inferable agent functions from your existing tRPC procedures.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit d977685

Please sign in to comment.