AgentToolsRequest::setAgent()

Populate connection properties from an AgentToolsAgent

Copies provider, apiKey, model, and endpoint from the agent. Any of these can be overridden afterwards by setting the property directly.

Usage

$self = $agentToolsRequest->setAgent(AgentToolsAgent $agent);

Arguments

NameType(s)Description
$agentAgentToolsAgent

Return value

self


AgentToolsRequest methods and properties

API reference based on ProcessWire core version 3.0.263