Skip to content

2.8.13

Choose a tag to compare

@ilvalerione ilvalerione released this 25 Nov 09:38
· 164 commits to 2.x since this release

Add set methods to Tool interface

  • setName
  • setDescription

So you can now change this property on the fly attaching a tool to the agent:

protected function tools(): array
{
    return [
        MySQLSchemaTool::make(new \PDO(...), ['organizations', 'users'])->setName('account_schema'),
        MySQLSchemaTool::make(new \PDO(...), ['orders', 'payments'])->setName('order_schema'),
    ];
}