@letta-ai/letta-react 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -26,9 +26,7 @@ Then start your server.
26
26
 
27
27
  Setup a proxy server, below we are using [`express`](https://www.npmjs.com/package/express), [`http-proxy-middleware`](https://www.npmjs.com/package/http-proxy-middleware) and [`cors`](https://www.npmjs.com/package/cors)
28
28
 
29
- ```
30
- // typescript
31
-
29
+ ```typescript
32
30
  import * as express from 'express';
33
31
  import type { Request, Response, NextFunction } from 'express';
34
32
  import cors from 'cors';
@@ -111,7 +109,7 @@ const {
111
109
  Check out [this example](./examples/view-and-send-messages) for more detailed usage.
112
110
 
113
111
  ```typescript jsx
114
- const { agentState, error, isLoading, refresh } = agentState({
112
+ const { agentState, error, isLoading, refresh } = useAgentState({
115
113
  agentId: `your-agent-id`,
116
114
  });
117
115
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-react",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Letta's react library",
5
5
  "private": false,
6
6
  "main": "./index.js",