ai 6.0.0-beta.50 → 6.0.0-beta.52
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 +13 -0
 - package/dist/index.d.mts +5 -5
 - package/dist/index.d.ts +5 -5
 - package/dist/index.js +1 -1
 - package/dist/index.js.map +1 -1
 - package/dist/index.mjs +1 -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 +2 -2
 
    
        package/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,5 +1,18 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            # ai
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
      
 3 
     | 
    
         
            +
            ## 6.0.0-beta.52
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            ### Patch Changes
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            - Updated dependencies [1890317]
         
     | 
| 
      
 8 
     | 
    
         
            +
              - @ai-sdk/gateway@2.0.0-beta.33
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            ## 6.0.0-beta.51
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            ### Patch Changes
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            - 5e313e3: fix(agent): do not allow static tools when tools is empty
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
       3 
16 
     | 
    
         
             
            ## 6.0.0-beta.50
         
     | 
| 
       4 
17 
     | 
    
         | 
| 
       5 
18 
     | 
    
         
             
            ### Patch Changes
         
     | 
    
        package/dist/index.d.mts
    CHANGED
    
    | 
         @@ -2374,7 +2374,7 @@ type TextStreamPart<TOOLS extends ToolSet> = { 
     | 
|
| 
       2374 
2374 
     | 
    
         
             
             * An agent is a reusable component that that has tools and that
         
     | 
| 
       2375 
2375 
     | 
    
         
             
             * can generate or stream content.
         
     | 
| 
       2376 
2376 
     | 
    
         
             
             */
         
     | 
| 
       2377 
     | 
    
         
            -
            interface Agent<TOOLS extends ToolSet, OUTPUT = never, OUTPUT_PARTIAL = never> {
         
     | 
| 
      
 2377 
     | 
    
         
            +
            interface Agent<TOOLS extends ToolSet = {}, OUTPUT = never, OUTPUT_PARTIAL = never> {
         
     | 
| 
       2378 
2378 
     | 
    
         
             
                /**
         
     | 
| 
       2379 
2379 
     | 
    
         
             
                 * The id of the agent.
         
     | 
| 
       2380 
2380 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -2404,7 +2404,7 @@ Callback that is set using the `onFinish` option. 
     | 
|
| 
       2404 
2404 
     | 
    
         | 
| 
       2405 
2405 
     | 
    
         
             
            @param event - The event that is passed to the callback.
         
     | 
| 
       2406 
2406 
     | 
    
         
             
             */
         
     | 
| 
       2407 
     | 
    
         
            -
            type BasicAgentOnFinishCallback<TOOLS extends ToolSet> = (event: StepResult<TOOLS> & {
         
     | 
| 
      
 2407 
     | 
    
         
            +
            type BasicAgentOnFinishCallback<TOOLS extends ToolSet = {}> = (event: StepResult<TOOLS> & {
         
     | 
| 
       2408 
2408 
     | 
    
         
             
                /**
         
     | 
| 
       2409 
2409 
     | 
    
         
             
            Details for all steps.
         
     | 
| 
       2410 
2410 
     | 
    
         
             
               */
         
     | 
| 
         @@ -2420,12 +2420,12 @@ Callback that is set using the `onStepFinish` option. 
     | 
|
| 
       2420 
2420 
     | 
    
         | 
| 
       2421 
2421 
     | 
    
         
             
            @param stepResult - The result of the step.
         
     | 
| 
       2422 
2422 
     | 
    
         
             
             */
         
     | 
| 
       2423 
     | 
    
         
            -
            type BasicAgentOnStepFinishCallback<TOOLS extends ToolSet> = (stepResult: StepResult<TOOLS>) => Promise<void> | void;
         
     | 
| 
      
 2423 
     | 
    
         
            +
            type BasicAgentOnStepFinishCallback<TOOLS extends ToolSet = {}> = (stepResult: StepResult<TOOLS>) => Promise<void> | void;
         
     | 
| 
       2424 
2424 
     | 
    
         | 
| 
       2425 
2425 
     | 
    
         
             
            /**
         
     | 
| 
       2426 
2426 
     | 
    
         
             
             * Configuration options for an agent.
         
     | 
| 
       2427 
2427 
     | 
    
         
             
             */
         
     | 
| 
       2428 
     | 
    
         
            -
            type BasicAgentSettings<TOOLS extends ToolSet, OUTPUT = never, OUTPUT_PARTIAL = never> = CallSettings & {
         
     | 
| 
      
 2428 
     | 
    
         
            +
            type BasicAgentSettings<TOOLS extends ToolSet = {}, OUTPUT = never, OUTPUT_PARTIAL = never> = CallSettings & {
         
     | 
| 
       2429 
2429 
     | 
    
         
             
                /**
         
     | 
| 
       2430 
2430 
     | 
    
         
             
                 * The id of the agent.
         
     | 
| 
       2431 
2431 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -2511,7 +2511,7 @@ type BasicAgentSettings<TOOLS extends ToolSet, OUTPUT = never, OUTPUT_PARTIAL = 
     | 
|
| 
       2511 
2511 
     | 
    
         
             
             *
         
     | 
| 
       2512 
2512 
     | 
    
         
             
             * Define agents once and use them across your application.
         
     | 
| 
       2513 
2513 
     | 
    
         
             
             */
         
     | 
| 
       2514 
     | 
    
         
            -
            declare class BasicAgent<TOOLS extends ToolSet, OUTPUT = never, OUTPUT_PARTIAL = never> implements Agent<TOOLS, OUTPUT, OUTPUT_PARTIAL> {
         
     | 
| 
      
 2514 
     | 
    
         
            +
            declare class BasicAgent<TOOLS extends ToolSet = {}, OUTPUT = never, OUTPUT_PARTIAL = never> implements Agent<TOOLS, OUTPUT, OUTPUT_PARTIAL> {
         
     | 
| 
       2515 
2515 
     | 
    
         
             
                private readonly settings;
         
     | 
| 
       2516 
2516 
     | 
    
         
             
                constructor(settings: BasicAgentSettings<TOOLS, OUTPUT, OUTPUT_PARTIAL>);
         
     | 
| 
       2517 
2517 
     | 
    
         
             
                /**
         
     | 
    
        package/dist/index.d.ts
    CHANGED
    
    | 
         @@ -2374,7 +2374,7 @@ type TextStreamPart<TOOLS extends ToolSet> = { 
     | 
|
| 
       2374 
2374 
     | 
    
         
             
             * An agent is a reusable component that that has tools and that
         
     | 
| 
       2375 
2375 
     | 
    
         
             
             * can generate or stream content.
         
     | 
| 
       2376 
2376 
     | 
    
         
             
             */
         
     | 
| 
       2377 
     | 
    
         
            -
            interface Agent<TOOLS extends ToolSet, OUTPUT = never, OUTPUT_PARTIAL = never> {
         
     | 
| 
      
 2377 
     | 
    
         
            +
            interface Agent<TOOLS extends ToolSet = {}, OUTPUT = never, OUTPUT_PARTIAL = never> {
         
     | 
| 
       2378 
2378 
     | 
    
         
             
                /**
         
     | 
| 
       2379 
2379 
     | 
    
         
             
                 * The id of the agent.
         
     | 
| 
       2380 
2380 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -2404,7 +2404,7 @@ Callback that is set using the `onFinish` option. 
     | 
|
| 
       2404 
2404 
     | 
    
         | 
| 
       2405 
2405 
     | 
    
         
             
            @param event - The event that is passed to the callback.
         
     | 
| 
       2406 
2406 
     | 
    
         
             
             */
         
     | 
| 
       2407 
     | 
    
         
            -
            type BasicAgentOnFinishCallback<TOOLS extends ToolSet> = (event: StepResult<TOOLS> & {
         
     | 
| 
      
 2407 
     | 
    
         
            +
            type BasicAgentOnFinishCallback<TOOLS extends ToolSet = {}> = (event: StepResult<TOOLS> & {
         
     | 
| 
       2408 
2408 
     | 
    
         
             
                /**
         
     | 
| 
       2409 
2409 
     | 
    
         
             
            Details for all steps.
         
     | 
| 
       2410 
2410 
     | 
    
         
             
               */
         
     | 
| 
         @@ -2420,12 +2420,12 @@ Callback that is set using the `onStepFinish` option. 
     | 
|
| 
       2420 
2420 
     | 
    
         | 
| 
       2421 
2421 
     | 
    
         
             
            @param stepResult - The result of the step.
         
     | 
| 
       2422 
2422 
     | 
    
         
             
             */
         
     | 
| 
       2423 
     | 
    
         
            -
            type BasicAgentOnStepFinishCallback<TOOLS extends ToolSet> = (stepResult: StepResult<TOOLS>) => Promise<void> | void;
         
     | 
| 
      
 2423 
     | 
    
         
            +
            type BasicAgentOnStepFinishCallback<TOOLS extends ToolSet = {}> = (stepResult: StepResult<TOOLS>) => Promise<void> | void;
         
     | 
| 
       2424 
2424 
     | 
    
         | 
| 
       2425 
2425 
     | 
    
         
             
            /**
         
     | 
| 
       2426 
2426 
     | 
    
         
             
             * Configuration options for an agent.
         
     | 
| 
       2427 
2427 
     | 
    
         
             
             */
         
     | 
| 
       2428 
     | 
    
         
            -
            type BasicAgentSettings<TOOLS extends ToolSet, OUTPUT = never, OUTPUT_PARTIAL = never> = CallSettings & {
         
     | 
| 
      
 2428 
     | 
    
         
            +
            type BasicAgentSettings<TOOLS extends ToolSet = {}, OUTPUT = never, OUTPUT_PARTIAL = never> = CallSettings & {
         
     | 
| 
       2429 
2429 
     | 
    
         
             
                /**
         
     | 
| 
       2430 
2430 
     | 
    
         
             
                 * The id of the agent.
         
     | 
| 
       2431 
2431 
     | 
    
         
             
                 */
         
     | 
| 
         @@ -2511,7 +2511,7 @@ type BasicAgentSettings<TOOLS extends ToolSet, OUTPUT = never, OUTPUT_PARTIAL = 
     | 
|
| 
       2511 
2511 
     | 
    
         
             
             *
         
     | 
| 
       2512 
2512 
     | 
    
         
             
             * Define agents once and use them across your application.
         
     | 
| 
       2513 
2513 
     | 
    
         
             
             */
         
     | 
| 
       2514 
     | 
    
         
            -
            declare class BasicAgent<TOOLS extends ToolSet, OUTPUT = never, OUTPUT_PARTIAL = never> implements Agent<TOOLS, OUTPUT, OUTPUT_PARTIAL> {
         
     | 
| 
      
 2514 
     | 
    
         
            +
            declare class BasicAgent<TOOLS extends ToolSet = {}, OUTPUT = never, OUTPUT_PARTIAL = never> implements Agent<TOOLS, OUTPUT, OUTPUT_PARTIAL> {
         
     | 
| 
       2515 
2515 
     | 
    
         
             
                private readonly settings;
         
     | 
| 
       2516 
2516 
     | 
    
         
             
                constructor(settings: BasicAgentSettings<TOOLS, OUTPUT, OUTPUT_PARTIAL>);
         
     | 
| 
       2517 
2517 
     | 
    
         
             
                /**
         
     | 
    
        package/dist/index.js
    CHANGED
    
    | 
         @@ -869,7 +869,7 @@ function detectMediaType({ 
     | 
|
| 
       869 
869 
     | 
    
         
             
            var import_provider_utils2 = require("@ai-sdk/provider-utils");
         
     | 
| 
       870 
870 
     | 
    
         | 
| 
       871 
871 
     | 
    
         
             
            // src/version.ts
         
     | 
| 
       872 
     | 
    
         
            -
            var VERSION = true ? "6.0.0-beta. 
     | 
| 
      
 872 
     | 
    
         
            +
            var VERSION = true ? "6.0.0-beta.52" : "0.0.0-test";
         
     | 
| 
       873 
873 
     | 
    
         | 
| 
       874 
874 
     | 
    
         
             
            // src/util/download/download.ts
         
     | 
| 
       875 
875 
     | 
    
         
             
            var download = async ({ url }) => {
         
     |