ai 6.0.0-beta.57 → 6.0.0-beta.58
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/CHANGELOG.md +6 -0
 - package/dist/index.d.mts +8 -2
 - package/dist/index.d.ts +8 -2
 - package/dist/index.js +2 -1
 - package/dist/index.js.map +1 -1
 - package/dist/index.mjs +2 -1
 - package/dist/index.mjs.map +1 -1
 - package/dist/internal/index.js +1 -1
 - package/dist/internal/index.mjs +1 -1
 - package/package.json +1 -1
 
    
        package/CHANGELOG.md
    CHANGED
    
    
    
        package/dist/index.d.mts
    CHANGED
    
    | 
         @@ -2382,14 +2382,19 @@ type TextStreamPart<TOOLS extends ToolSet> = { 
     | 
|
| 
       2382 
2382 
     | 
    
         
             
             * or use the `ToolLoopAgent` class.
         
     | 
| 
       2383 
2383 
     | 
    
         
             
             */
         
     | 
| 
       2384 
2384 
     | 
    
         
             
            interface Agent<TOOLS extends ToolSet = {}, OUTPUT = never, OUTPUT_PARTIAL = never> {
         
     | 
| 
      
 2385 
     | 
    
         
            +
                /**
         
     | 
| 
      
 2386 
     | 
    
         
            +
                 * The specification version of the agent interface. This will enable
         
     | 
| 
      
 2387 
     | 
    
         
            +
                 * us to evolve the agent interface and retain backwards compatibility.
         
     | 
| 
      
 2388 
     | 
    
         
            +
                 */
         
     | 
| 
      
 2389 
     | 
    
         
            +
                readonly version: 'agent-v1';
         
     | 
| 
       2385 
2390 
     | 
    
         
             
                /**
         
     | 
| 
       2386 
2391 
     | 
    
         
             
                 * The id of the agent.
         
     | 
| 
       2387 
2392 
     | 
    
         
             
                 */
         
     | 
| 
       2388 
     | 
    
         
            -
                id: string | undefined;
         
     | 
| 
      
 2393 
     | 
    
         
            +
                readonly id: string | undefined;
         
     | 
| 
       2389 
2394 
     | 
    
         
             
                /**
         
     | 
| 
       2390 
2395 
     | 
    
         
             
                 * The tools that the agent can use.
         
     | 
| 
       2391 
2396 
     | 
    
         
             
                 */
         
     | 
| 
       2392 
     | 
    
         
            -
                tools: TOOLS;
         
     | 
| 
      
 2397 
     | 
    
         
            +
                readonly tools: TOOLS;
         
     | 
| 
       2393 
2398 
     | 
    
         
             
                /**
         
     | 
| 
       2394 
2399 
     | 
    
         
             
                 * Generates an output from the agent (non-streaming).
         
     | 
| 
       2395 
2400 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -2521,6 +2526,7 @@ type ToolLoopAgentSettings<TOOLS extends ToolSet = {}, OUTPUT = never, OUTPUT_PA 
     | 
|
| 
       2521 
2526 
     | 
    
         
             
             * - A stop condition is met (default stop condition is stepCountIs(20))
         
     | 
| 
       2522 
2527 
     | 
    
         
             
             */
         
     | 
| 
       2523 
2528 
     | 
    
         
             
            declare class ToolLoopAgent<TOOLS extends ToolSet = {}, OUTPUT = never, OUTPUT_PARTIAL = never> implements Agent<TOOLS, OUTPUT, OUTPUT_PARTIAL> {
         
     | 
| 
      
 2529 
     | 
    
         
            +
                readonly version = "agent-v1";
         
     | 
| 
       2524 
2530 
     | 
    
         
             
                private readonly settings;
         
     | 
| 
       2525 
2531 
     | 
    
         
             
                constructor(settings: ToolLoopAgentSettings<TOOLS, OUTPUT, OUTPUT_PARTIAL>);
         
     | 
| 
       2526 
2532 
     | 
    
         
             
                /**
         
     | 
    
        package/dist/index.d.ts
    CHANGED
    
    | 
         @@ -2382,14 +2382,19 @@ type TextStreamPart<TOOLS extends ToolSet> = { 
     | 
|
| 
       2382 
2382 
     | 
    
         
             
             * or use the `ToolLoopAgent` class.
         
     | 
| 
       2383 
2383 
     | 
    
         
             
             */
         
     | 
| 
       2384 
2384 
     | 
    
         
             
            interface Agent<TOOLS extends ToolSet = {}, OUTPUT = never, OUTPUT_PARTIAL = never> {
         
     | 
| 
      
 2385 
     | 
    
         
            +
                /**
         
     | 
| 
      
 2386 
     | 
    
         
            +
                 * The specification version of the agent interface. This will enable
         
     | 
| 
      
 2387 
     | 
    
         
            +
                 * us to evolve the agent interface and retain backwards compatibility.
         
     | 
| 
      
 2388 
     | 
    
         
            +
                 */
         
     | 
| 
      
 2389 
     | 
    
         
            +
                readonly version: 'agent-v1';
         
     | 
| 
       2385 
2390 
     | 
    
         
             
                /**
         
     | 
| 
       2386 
2391 
     | 
    
         
             
                 * The id of the agent.
         
     | 
| 
       2387 
2392 
     | 
    
         
             
                 */
         
     | 
| 
       2388 
     | 
    
         
            -
                id: string | undefined;
         
     | 
| 
      
 2393 
     | 
    
         
            +
                readonly id: string | undefined;
         
     | 
| 
       2389 
2394 
     | 
    
         
             
                /**
         
     | 
| 
       2390 
2395 
     | 
    
         
             
                 * The tools that the agent can use.
         
     | 
| 
       2391 
2396 
     | 
    
         
             
                 */
         
     | 
| 
       2392 
     | 
    
         
            -
                tools: TOOLS;
         
     | 
| 
      
 2397 
     | 
    
         
            +
                readonly tools: TOOLS;
         
     | 
| 
       2393 
2398 
     | 
    
         
             
                /**
         
     | 
| 
       2394 
2399 
     | 
    
         
             
                 * Generates an output from the agent (non-streaming).
         
     | 
| 
       2395 
2400 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -2521,6 +2526,7 @@ type ToolLoopAgentSettings<TOOLS extends ToolSet = {}, OUTPUT = never, OUTPUT_PA 
     | 
|
| 
       2521 
2526 
     | 
    
         
             
             * - A stop condition is met (default stop condition is stepCountIs(20))
         
     | 
| 
       2522 
2527 
     | 
    
         
             
             */
         
     | 
| 
       2523 
2528 
     | 
    
         
             
            declare class ToolLoopAgent<TOOLS extends ToolSet = {}, OUTPUT = never, OUTPUT_PARTIAL = never> implements Agent<TOOLS, OUTPUT, OUTPUT_PARTIAL> {
         
     | 
| 
      
 2529 
     | 
    
         
            +
                readonly version = "agent-v1";
         
     | 
| 
       2524 
2530 
     | 
    
         
             
                private readonly settings;
         
     | 
| 
       2525 
2531 
     | 
    
         
             
                constructor(settings: ToolLoopAgentSettings<TOOLS, OUTPUT, OUTPUT_PARTIAL>);
         
     | 
| 
       2526 
2532 
     | 
    
         
             
                /**
         
     | 
    
        package/dist/index.js
    CHANGED
    
    | 
         @@ -870,7 +870,7 @@ function detectMediaType({ 
     | 
|
| 
       870 
870 
     | 
    
         
             
            var import_provider_utils2 = require("@ai-sdk/provider-utils");
         
     | 
| 
       871 
871 
     | 
    
         | 
| 
       872 
872 
     | 
    
         
             
            // src/version.ts
         
     | 
| 
       873 
     | 
    
         
            -
            var VERSION = true ? "6.0.0-beta. 
     | 
| 
      
 873 
     | 
    
         
            +
            var VERSION = true ? "6.0.0-beta.58" : "0.0.0-test";
         
     | 
| 
       874 
874 
     | 
    
         | 
| 
       875 
875 
     | 
    
         
             
            // src/util/download/download.ts
         
     | 
| 
       876 
876 
     | 
    
         
             
            var download = async ({ url }) => {
         
     | 
| 
         @@ -6528,6 +6528,7 @@ var convertToCoreMessages = convertToModelMessages; 
     | 
|
| 
       6528 
6528 
     | 
    
         
             
            // src/agent/tool-loop-agent.ts
         
     | 
| 
       6529 
6529 
     | 
    
         
             
            var ToolLoopAgent = class {
         
     | 
| 
       6530 
6530 
     | 
    
         
             
              constructor(settings) {
         
     | 
| 
      
 6531 
     | 
    
         
            +
                this.version = "agent-v1";
         
     | 
| 
       6531 
6532 
     | 
    
         
             
                this.settings = settings;
         
     | 
| 
       6532 
6533 
     | 
    
         
             
              }
         
     | 
| 
       6533 
6534 
     | 
    
         
             
              /**
         
     |