Skip to content

DurableAgent throws error for tools without execute function #847

@iNishant

Description

@iNishant

Problem

DurableAgent requires all tools in the toolset to have an execute function. When a tool doesn't have an execute function, it throws:

Error: Tool "task" does not have an execute function
    at executeTool (...)

The AI SDK's tool() function allows creating tools without execute functions, but DurableAgent doesn't support this pattern.

Environment

  • ai: ^6.0.45
  • @workflow/ai: 4.0.1-beta.51
  • workflow: 4.0.1-beta.50

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions