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
$currentUser
protected
mixed
$currentUser
= null
$memoryManager
protected
MemoryManager|null
$memoryManager
= null
$messageService
protected
MessageService|null
$messageService
= null
$rruleService
protected
RruleService|null
$rruleService
= null
$smsService
protected
SmsService|null
$smsService
= null
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>instructions()
public
instructions() : string
Return values
stringregisterTools()
public
registerTools() : array<string|int, mixed>
Return values
array<string|int, mixed>setCurrentUser()
public
setCurrentUser(mixed $user) : static
Parameters
- $user : mixed
Return values
staticsetMemoryManager()
public
setMemoryManager(MemoryManager $memoryManager) : static
Parameters
- $memoryManager : MemoryManager
Return values
staticsetMessageService()
public
setMessageService(MessageService $messageService) : static
Parameters
- $messageService : MessageService
Return values
staticsetRruleService()
public
setRruleService(RruleService $rruleService) : static
Parameters
- $rruleService : RruleService
Return values
staticsetSmsService()
public
setSmsService(SmsService $smsService) : static
Parameters
- $smsService : SmsService
Return values
staticafterToolExecution()
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