Documentation

UserAssistantAgent extends Agent
in package

Table of Contents

Properties

$currentUser  : mixed
$memoryManager  : MemoryManager|null
$messageService  : MessageService|null
$rruleService  : RruleService|null
$smsService  : SmsService|null

Methods

__construct()  : mixed
getTools()  : array<string|int, mixed>
Get registered tools - delegate to parent which calls registerTools()
instructions()  : string
registerTools()  : array<string|int, mixed>
setCurrentUser()  : static
setMemoryManager()  : static
setMessageService()  : static
setRruleService()  : static
setSmsService()  : static
afterToolExecution()  : void
Hook called after tool execution
beforeToolExecution()  : bool|null
Hook called before tool execution

Properties

Methods

__construct()

public __construct([mixed $key = null ]) : mixed
Parameters
$key : mixed = null

getTools()

Get registered tools - delegate to parent which calls registerTools()

public getTools() : array<string|int, mixed>
Return values
array<string|int, mixed>

registerTools()

public registerTools() : array<string|int, mixed>
Return values
array<string|int, mixed>

setCurrentUser()

public setCurrentUser(mixed $user) : static
Parameters
$user : mixed
Return values
static

afterToolExecution()

Hook called after tool execution

protected afterToolExecution(Tool $tool, mixed &$result) : void
Parameters
$tool : Tool
$result : mixed

beforeToolExecution()

Hook called before tool execution

protected beforeToolExecution(Tool $tool) : bool|null
Parameters
$tool : Tool
Return values
bool|null

        
On this page

Search results