@fabric-harness/sdk 0.2.2 → 0.2.3
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.
|
@@ -57,7 +57,7 @@ export interface DefineAgentOptions {
|
|
|
57
57
|
* import { defineAgent } from '@fabric-harness/sdk/lite';
|
|
58
58
|
*
|
|
59
59
|
* export default defineAgent<{ message: string }>(async ({ init, payload }) => {
|
|
60
|
-
* const session = await (await init({ model: '
|
|
60
|
+
* const session = await (await init({ model: 'openai/gpt-5.5' })).session();
|
|
61
61
|
* return { reply: await session.prompt<string>(payload.message) };
|
|
62
62
|
* }, { name: 'echo', triggers: { webhook: true } });
|
|
63
63
|
* ```
|
package/dist/agent-definition.js
CHANGED
|
@@ -57,7 +57,7 @@ export function getAgentDefinition(value) {
|
|
|
57
57
|
* import { defineAgent } from '@fabric-harness/sdk/lite';
|
|
58
58
|
*
|
|
59
59
|
* export default defineAgent<{ message: string }>(async ({ init, payload }) => {
|
|
60
|
-
* const session = await (await init({ model: '
|
|
60
|
+
* const session = await (await init({ model: 'openai/gpt-5.5' })).session();
|
|
61
61
|
* return { reply: await session.prompt<string>(payload.message) };
|
|
62
62
|
* }, { name: 'echo', triggers: { webhook: true } });
|
|
63
63
|
* ```
|
|
@@ -57,7 +57,7 @@ export declare function inMemorySource(files: Record<string, string | Uint8Array
|
|
|
57
57
|
* source: localDirectorySource('./knowledge-base'),
|
|
58
58
|
* }]);
|
|
59
59
|
*
|
|
60
|
-
* const agent = await init({ sandbox, model: '
|
|
60
|
+
* const agent = await init({ sandbox, model: 'openai/gpt-5.5' });
|
|
61
61
|
* ```
|
|
62
62
|
*
|
|
63
63
|
* The agent's built-in `grep`, `glob`, and `read` tools then operate on
|
|
@@ -68,7 +68,7 @@ export function inMemorySource(files, options = {}) {
|
|
|
68
68
|
* source: localDirectorySource('./knowledge-base'),
|
|
69
69
|
* }]);
|
|
70
70
|
*
|
|
71
|
-
* const agent = await init({ sandbox, model: '
|
|
71
|
+
* const agent = await init({ sandbox, model: 'openai/gpt-5.5' });
|
|
72
72
|
* ```
|
|
73
73
|
*
|
|
74
74
|
* The agent's built-in `grep`, `glob`, and `read` tools then operate on
|
package/dist/lite.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* export default defineAgent(async ({ init, payload }) => {
|
|
19
19
|
* const session = await (await init({
|
|
20
|
-
* model: '
|
|
20
|
+
* model: 'openai/gpt-5.5',
|
|
21
21
|
* runtime: 'stateless',
|
|
22
22
|
* })).session();
|
|
23
23
|
* return { reply: (await session.prompt(String(payload?.message ?? ''))).text };
|
package/dist/lite.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* export default defineAgent(async ({ init, payload }) => {
|
|
19
19
|
* const session = await (await init({
|
|
20
|
-
* model: '
|
|
20
|
+
* model: 'openai/gpt-5.5',
|
|
21
21
|
* runtime: 'stateless',
|
|
22
22
|
* })).session();
|
|
23
23
|
* return { reply: (await session.prompt(String(payload?.message ?? ''))).text };
|
package/package.json
CHANGED