MakePipeline extends Command
Signature: lneuro:pipeline
Provides a console command to create a new LaravelNeuro Pipeline using a pre-built stub.
Table of Contents
Properties
- $description : string
- The console command description.
- $signature : string
- The name and signature of the console command.
Methods
- handle() : mixed
- Execute the command.
- getStub() : string
- Retrieves the llm-pipeline stub.
- createDriver() : mixed
- createPrompt() : mixed
Properties
$description
The console command description.
protected
string
$description
= 'Create a new AI model pipeline class and, optionally, prompts and drivers to be used by it.'
$signature
The name and signature of the console command.
protected
string
$signature
= 'lneuro:pipeline {name : The name of your Pipeline, which will be created in app/Pipielines.}
{--prompt : Create a custom prompt to be used by your pipeline.}
{--driver : Create a custom driver to be used by your pipeline.}'
Methods
handle()
Execute the command.
public
handle() : mixed
getStub()
Retrieves the llm-pipeline stub.
protected
getStub(mixed $stubName) : string
Parameters
- $stubName : mixed
Return values
stringcreateDriver()
private
createDriver(mixed $name) : mixed
Parameters
- $name : mixed
createPrompt()
private
createPrompt(mixed $name) : mixed
Parameters
- $name : mixed