@agentified/fe-client 0.0.4 → 0.0.5-beta.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 +9 -3
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -42,8 +42,8 @@ await client.sendMessage("Show me the dashboard");
|
|
|
42
42
|
interface AgentifiedClientConfig {
|
|
43
43
|
agentUrl: string; // AG-UI agent backend URL
|
|
44
44
|
headers?: Record<string, string>; // custom HTTP headers
|
|
45
|
-
contextWindowSize?: number; // for
|
|
46
|
-
maxEventLogSize?: number; //
|
|
45
|
+
contextWindowSize?: number; // reserved for future use
|
|
46
|
+
maxEventLogSize?: number; // reserved for future use
|
|
47
47
|
}
|
|
48
48
|
```
|
|
49
49
|
|
|
@@ -73,10 +73,12 @@ Lower-level: runs the agent with full message history and optional context.
|
|
|
73
73
|
```typescript
|
|
74
74
|
await client.run({
|
|
75
75
|
messages: [{ role: "user", content: "Hello" }],
|
|
76
|
-
context: { page: "/dashboard" },
|
|
76
|
+
context: [{ description: "Current page", value: "/dashboard" }],
|
|
77
77
|
});
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
+
`context` is `Context[]` from `@ag-ui/client`.
|
|
81
|
+
|
|
80
82
|
### `client.registerToolHandler(name, handler)`
|
|
81
83
|
|
|
82
84
|
Registers a frontend tool handler. When the agent calls this tool, the handler runs client-side.
|
|
@@ -158,3 +160,7 @@ The client handles frontend tools automatically:
|
|
|
158
160
|
- [React Bindings](../react/README.md) — React wrapper with Provider/hooks
|
|
159
161
|
- [TypeScript SDK](../sdk/README.md)
|
|
160
162
|
- [agentified-core](../../core/README.md)
|
|
163
|
+
|
|
164
|
+
## License
|
|
165
|
+
|
|
166
|
+
[MIT](../../../LICENSE.md#mit-license)
|