@rebyteai/agent-react 0.2.4 → 0.3.0
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.
- package/README.md +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Install the versioned package (no repository clone required):
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
pnpm add @rebyteai/agent-react
|
|
6
|
+
pnpm add @rebyteai/agent-react
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
|
|
@@ -33,7 +33,7 @@ History is restored from persisted Items and Turns. A recovered active Session i
|
|
|
33
33
|
polled until settled. Live disconnects report an error; reload recovers output
|
|
34
34
|
without resending input. The hook reports client-tool waiting as an error and does
|
|
35
35
|
not run application handlers or submit their outputs. For those workflows, use
|
|
36
|
-
the [
|
|
36
|
+
the [Agents API recipe](../../examples/agents-api/README.md) or Commerce adapter.
|
|
37
37
|
|
|
38
38
|
Images are uploaded as Session files. The model can use hosted `view_image` to
|
|
39
39
|
inspect them; the upload itself is not an inline model image message. No browser
|
package/dist/index.cjs
CHANGED
|
@@ -52,7 +52,7 @@ function createTurnState() {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
// src/sessions.ts
|
|
55
|
-
var import_streaming = require("
|
|
55
|
+
var import_streaming = require("openai/core/streaming");
|
|
56
56
|
function createAgentSessionTransport(options) {
|
|
57
57
|
const base = options.url.replace(/\/$/, "");
|
|
58
58
|
const request = options.fetch ?? globalThis.fetch;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AgentSessionEvent, AgentSession, AgentSessionInputParam, AgentSessionItem } from '
|
|
2
|
-
export { AgentSession, AgentSessionEvent } from '
|
|
3
|
-
import { Turn } from '
|
|
4
|
-
export { Turn } from '
|
|
5
|
-
import { SessionArtifact } from '
|
|
6
|
-
export { SessionArtifact } from '
|
|
1
|
+
import { AgentSessionEvent, AgentSession, AgentSessionInputParam, AgentSessionItem } from 'openai/resources/beta/agents/agents';
|
|
2
|
+
export { AgentSession, AgentSessionEvent } from 'openai/resources/beta/agents/agents';
|
|
3
|
+
import { Turn } from 'openai/resources/beta/agents/sessions/turns';
|
|
4
|
+
export { Turn } from 'openai/resources/beta/agents/sessions/turns';
|
|
5
|
+
import { SessionArtifact } from 'openai/resources/beta/agents/sessions/artifacts';
|
|
6
|
+
export { SessionArtifact } from 'openai/resources/beta/agents/sessions/artifacts';
|
|
7
7
|
|
|
8
8
|
interface AgentAttachment {
|
|
9
9
|
fileId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AgentSessionEvent, AgentSession, AgentSessionInputParam, AgentSessionItem } from '
|
|
2
|
-
export { AgentSession, AgentSessionEvent } from '
|
|
3
|
-
import { Turn } from '
|
|
4
|
-
export { Turn } from '
|
|
5
|
-
import { SessionArtifact } from '
|
|
6
|
-
export { SessionArtifact } from '
|
|
1
|
+
import { AgentSessionEvent, AgentSession, AgentSessionInputParam, AgentSessionItem } from 'openai/resources/beta/agents/agents';
|
|
2
|
+
export { AgentSession, AgentSessionEvent } from 'openai/resources/beta/agents/agents';
|
|
3
|
+
import { Turn } from 'openai/resources/beta/agents/sessions/turns';
|
|
4
|
+
export { Turn } from 'openai/resources/beta/agents/sessions/turns';
|
|
5
|
+
import { SessionArtifact } from 'openai/resources/beta/agents/sessions/artifacts';
|
|
6
|
+
export { SessionArtifact } from 'openai/resources/beta/agents/sessions/artifacts';
|
|
7
7
|
|
|
8
8
|
interface AgentAttachment {
|
|
9
9
|
fileId: string;
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ function createTurnState() {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// src/sessions.ts
|
|
27
|
-
import { Stream } from "
|
|
27
|
+
import { Stream } from "openai/core/streaming";
|
|
28
28
|
function createAgentSessionTransport(options) {
|
|
29
29
|
const base = options.url.replace(/\/$/, "");
|
|
30
30
|
const request = options.fetch ?? globalThis.fetch;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebyteai/agent-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Headless React hooks and transports for Rebyte Agents",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"typescript": "^5.9.3"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"
|
|
46
|
+
"openai": "7.15.0"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "tsup src/index.ts --format esm,cjs --dts --clean --external react",
|