TopP
Define the top-p sampling threshold for generation
Description: Defines the top-p (nucleus) sampling threshold for generation, controlling token selection by cumulative probability. Accepts a float between 0.0 and 1.0.
Namespace: Laravel\Ai\Attributes\TopP
Usage
use Laravel\Ai\Attributes\TopP;
use Laravel\Ai\Contracts\Agent;
use Laravel\Ai\Promptable;
#[TopP(0.9)]
class SalesCoach implements Agent
{
use Promptable;
// ...
}