Artisan commands available in LarAgent for managing AI agents
LarAgent provides several Artisan commands to help you create and manage your AI agents. These commands streamline the development process and make it easier to interact with your agents.
Creating an Agent
You can quickly create a new agent using the make:agent command:
php artisan make:agent AgentName
This will create a new agent class in your app/AiAgents directory with the basic structure and methods needed to get started. The generated agent includes:
Default model configuration
In-memory chat history
Default provider setting
Empty tools array
Placeholder for instructions and prompt methods
Interactive Chat
You can start an interactive chat session with any of your agents using the agent:chat command:
# Start a chat with default history namephp artisan agent:chat AgentName# Start a chat with a specific history namephp artisan agent:chat AgentName --history=weather_chat_1
The interactive chat session provides the following capabilities:
Send messages to your agent
Get responses in real-time
Use any tools configured for the agent
View response completion time after each agent response
Type ‘exit’ to end the chat session
Completion Time Display
After each response, the command displays how long the agent took to respond:
TestAgent:Hello! How can I help you today?Response completed in 1.35 seconds.You:
Completion time is shown in milliseconds for sub-second responses, and in seconds (with 2 decimal places) for longer responses. This helps you monitor latency and performance during development.
This is particularly useful for testing your agent’s functionality and behavior directly from the command line without needing to implement a full UI.
Clear Chat History
You can clear all chat histories for a specific agent using the agent:chat:clear command:
php artisan agent:chat:clear AgentName
This command clears all chat histories for the specified agent while preserving the chat history structure and keys. This is useful when you want to reset conversations but maintain the same history identifiers.
Remove Chat History
You can completely remove all chat histories and keys for a specific agent using the agent:chat:remove command:
php artisan agent:chat:remove AgentName
This command removes all chat histories and their associated keys for the specified agent, effectively resetting the chat history completely. Use this when you want to completely remove all traces of previous conversations.
Both, remove and clear commands will affect the current type of chat
history. For example, if you were using session chat history, and later
switched to file, both commands will remove from the file (current type of
chat history) storage.
Planned Commands
LarAgent has plans to add more commands in the future to enhance developer experience:
make:agent:tool - Generate tool classes with ready-to-use stubs
make:agent:chat-history - Scaffold custom chat history implementations
These upcoming commands will further simplify the development process and make it easier to extend LarAgent’s functionality.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Official LarAgent Documentation","colors":{"primary":"#095d65","light":"#1abc9c","dark":"#095d65"},"logo":{"light":"https://mintcdn.com/laragent/gOzDErATrv3dx9Ko/logo/light.png?fit=max\u0026auto=format\u0026n=gOzDErATrv3dx9Ko\u0026q=85\u0026s=e8bf6794f468012f0b3a1434b98049eb","dark":"https://mintcdn.com/laragent/gOzDErATrv3dx9Ko/logo/dark.png?fit=max\u0026auto=format\u0026n=gOzDErATrv3dx9Ko\u0026q=85\u0026s=8410b8b7e66426a798cb4e47b1314086"},"favicon":"https://mintcdn.com/laragent/gOzDErATrv3dx9Ko/images/favicon.png?fit=max\u0026auto=format\u0026n=gOzDErATrv3dx9Ko\u0026q=85\u0026s=890f467a062b507758c1f5cf8009da36","navbar":{"links":[{"href":"/guides/development","label":"Contribution"},{"href":"https://github.com/MaestroError/LarAgent/issues","label":"Support"}],"primary":{"type":"button","label":"⭐ Star us on GitHub","href":"https://github.com/maestroerror/laragent"}},"footer":{"socials":{"github":"https://github.com/maestroerror/laragent","linkedin":"https://www.linkedin.com/company/laragent","discord":"https://discord.gg/NAczq2T9F8"}},"banner":{"content":"🔴 LarAgent is powered by Redberry. Need help building AI agents in Laravel? [Talk to us](https://redberry.international/ai-agent-development/?utm_source=documentation\u0026utm_medium=documentation_banner\u0026utm_campaign=AI+service+campaign) →"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Repository","icon":"github","href":"https://github.com/maestroerror/laragent"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/NAczq2T9F8"},{"anchor":"Blog","icon":"newspaper","href":"https://blog.laragent.ai"},{"anchor":"Upgrade to v1.0","icon":"arrow-up-right-dots","href":"/guides/upgrade-to-v1"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"laragent","hasAudioNarration":false,"actualSubdomain":"laragent","customDomains":["docs.laragent.ai"],"gitSource":{"type":"github","owner":"maestroerror","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae927d738a52af76f41adfa:success","clientVersion":"0.0.4205","searchFilterCounts":[{"language":"default","tag":"Usage","count":22},{"language":"default","tag":"Documentation","count":18},{"language":"default","tag":"Agents","count":15},{"language":"default","tag":"Core concepts","count":11},{"language":"default","tag":"Context (Storage)","count":7},{"language":"default","tag":"Customization \u0026 Extensibility","count":7},{"language":"default","tag":"Tools \u0026 MCP","count":6},{"language":"default","tag":"Guides","count":5},{"language":"default","tag":"Extensibility \u0026 Customization","count":5},{"language":"default","tag":"Events","count":5}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"v0/core-concepts/commands","slug":"/v0/core-concepts/commands","pageMetadata":{"title":"Artisan Commands","description":"Artisan commands available in LarAgent for managing AI agents","href":"/v0/core-concepts/commands","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Artisan commands available in LarAgent for managing AI agents\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`LarAgent provides several Artisan commands to help you create and manage your AI agents. These commands streamline the development process and make it easier to interact with your agents.`}),`\n`,_jsx(Heading,{level:`2`,id:`creating-an-agent`,children:`Creating an Agent`}),`\n`,_jsxs(_components.p,{children:[`You can quickly create a new agent using the `,_jsx(_components.code,{children:`make:agent`}),` command:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` make:agent`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` AgentName`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`This will create a new agent class in your `,_jsx(_components.code,{children:`app/AiAgents`}),` directory with the basic structure and methods needed to get started. The generated agent includes:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Default model configuration`}),`\n`,_jsx(_components.li,{children:`In-memory chat history`}),`\n`,_jsx(_components.li,{children:`Default provider setting`}),`\n`,_jsx(_components.li,{children:`Empty tools array`}),`\n`,_jsx(_components.li,{children:`Placeholder for instructions and prompt methods`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`interactive-chat`,children:`Interactive Chat`}),`\n`,_jsxs(_components.p,{children:[`You can start an interactive chat session with any of your agents using the `,_jsx(_components.code,{children:`agent:chat`}),` command:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Start a chat with default history name`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agent:chat`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` AgentName`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Start a chat with a specific history name`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agent:chat`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` AgentName`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --history=weather_chat_1`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The interactive chat session provides the following capabilities:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Send messages to your agent`}),`\n`,_jsx(_components.li,{children:`Get responses in real-time`}),`\n`,_jsx(_components.li,{children:`Use any tools configured for the agent`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`View response completion time`}),` after each agent response`]}),`\n`,_jsx(_components.li,{children:`Type ‘exit’ to end the chat session`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`completion-time-display`,children:`Completion Time Display`}),`\n`,_jsx(_components.p,{children:`After each response, the command displays how long the agent took to respond:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`7`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`TestAgent:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Hello! How can I help you today?`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Response completed in 1.35 seconds.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`You:`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Completion time is shown in milliseconds for sub-second responses, and in seconds (with 2 decimal places) for longer responses. This helps you monitor latency and performance during development.`})}),`\n`,_jsx(_components.p,{children:`This is particularly useful for testing your agent’s functionality and behavior directly from the command line without needing to implement a full UI.`}),`\n`,_jsx(Heading,{level:`2`,id:`clear-chat-history`,children:`Clear Chat History`}),`\n`,_jsxs(_components.p,{children:[`You can clear all chat histories for a specific agent using the `,_jsx(_components.code,{children:`agent:chat:clear`}),` command:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agent:chat:clear`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` AgentName`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This command clears all chat histories for the specified agent while preserving the chat history structure and keys. This is useful when you want to reset conversations but maintain the same history identifiers.`}),`\n`,_jsx(Heading,{level:`2`,id:`remove-chat-history`,children:`Remove Chat History`}),`\n`,_jsxs(_components.p,{children:[`You can completely remove all chat histories and keys for a specific agent using the `,_jsx(_components.code,{children:`agent:chat:remove`}),` command:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` agent:chat:remove`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` AgentName`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`This command removes all chat histories and their associated keys for the specified agent, effectively resetting the chat history completely. Use this when you want to completely remove all traces of previous conversations.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Both, `,_jsx(_components.code,{children:`remove`}),` and `,_jsx(_components.code,{children:`clear`}),` commands will affect the current type of chat\nhistory. For example, if you were using `,_jsx(_components.code,{children:`session`}),` chat history, and later\nswitched to `,_jsx(_components.code,{children:`file`}),`, both commands will remove from the `,_jsx(_components.code,{children:`file`}),` (current type of\nchat history) storage.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`planned-commands`,children:`Planned Commands`}),`\n`,_jsx(_components.p,{children:`LarAgent has plans to add more commands in the future to enhance developer experience:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`make:agent:tool`}),` - Generate tool classes with ready-to-use stubs`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`make:agent:chat-history`}),` - Scaffold custom chat history implementations`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`These upcoming commands will further simplify the development process and make it easier to extend LarAgent’s functionality.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Artisan Commands","description":"Artisan commands available in LarAgent for managing AI agents","href":"/v0/core-concepts/commands","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Creating an Agent","slug":"creating-an-agent","depth":2,"children":[]},{"title":"Interactive Chat","slug":"interactive-chat","depth":2,"children":[{"title":"Completion Time Display","slug":"completion-time-display","depth":3,"children":[]}]},{"title":"Clear Chat History","slug":"clear-chat-history","depth":2,"children":[]},{"title":"Remove Chat History","slug":"remove-chat-history","depth":2,"children":[]},{"title":"Planned Commands","slug":"planned-commands","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"laragent","siteName":"Official LarAgent Documentation","title":"Artisan Commands - Official LarAgent Documentation","navMaps":{"firstHrefInVersion":{"1.x":{"href":"/introduction","matchLevel":4},"0.x":{"href":"/v0/core-concepts/commands","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-02-05T13:02:50.912Z","originalFileLocation":"v0/core-concepts/commands.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Artisan commands available in LarAgent for managing AI agents\">\u003cmeta data-mint-head name=\"application-name\" content=\"Official LarAgent Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/laragent/3uaxJ7rLsYOljA4V/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/laragent/3uaxJ7rLsYOljA4V/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/laragent/3uaxJ7rLsYOljA4V/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/laragent/3uaxJ7rLsYOljA4V/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/laragent/3uaxJ7rLsYOljA4V/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/laragent/3uaxJ7rLsYOljA4V/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/laragent/3uaxJ7rLsYOljA4V/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/laragent/3uaxJ7rLsYOljA4V/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/laragent/3uaxJ7rLsYOljA4V/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Artisan Commands - Official LarAgent Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Artisan commands available in LarAgent for managing AI agents\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Official LarAgent Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.laragent.ai/v0/core-concepts/commands\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://laragent.mintlify.site/_mintlify/api/og/v2?division=Core+concepts\u0026amp;title=Artisan+Commands\u0026amp;description=Artisan+commands+available+in+LarAgent+for+managing+AI+agents\u0026amp;theme=38c002d50e340f9ba643b42b\u0026amp;signature=344ad24c7cc83b4cd003d485d5607154131a2b7072026ad12eebb92413e5da54\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Artisan Commands - Official LarAgent Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Artisan commands available in LarAgent for managing AI agents\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://laragent.mintlify.site/_mintlify/api/og/v2?division=Core+concepts\u0026amp;title=Artisan+Commands\u0026amp;description=Artisan+commands+available+in+LarAgent+for+managing+AI+agents\u0026amp;theme=38c002d50e340f9ba643b42b\u0026amp;signature=344ad24c7cc83b4cd003d485d5607154131a2b7072026ad12eebb92413e5da54\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/laragent/3uaxJ7rLsYOljA4V/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Official LarAgent Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#095d65\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.laragent.ai/v0/core-concepts/commands\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v0/core-concepts/commands.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.laragent.ai/#organization\",\"name\":\"Official LarAgent Documentation\",\"url\":\"https://docs.laragent.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/laragent/gOzDErATrv3dx9Ko/logo/light.png?fit=max\u0026auto=format\u0026n=gOzDErATrv3dx9Ko\u0026q=85\u0026s=e8bf6794f468012f0b3a1434b98049eb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.laragent.ai#website\",\"name\":\"Official LarAgent Documentation\",\"url\":\"https://docs.laragent.ai\",\"publisher\":{\"@id\":\"https://docs.laragent.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.laragent.ai/v0/core-concepts/commands#webpage\",\"url\":\"https://docs.laragent.ai/v0/core-concepts/commands\",\"name\":\"Artisan Commands\",\"description\":\"Artisan commands available in LarAgent for managing AI agents\",\"dateModified\":\"2026-02-05T13:02:50.912Z\",\"isPartOf\":{\"@id\":\"https://docs.laragent.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.laragent.ai/v0/core-concepts/commands#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.laragent.ai/v0/core-concepts/commands#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core concepts\",\"item\":\"https://docs.laragent.ai/v0/core-concepts/agents\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Artisan Commands\",\"item\":\"https://docs.laragent.ai/v0/core-concepts/commands\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.laragent.ai/v0/core-concepts/commands#article\",\"headline\":\"Artisan Commands\",\"name\":\"Artisan Commands\",\"description\":\"Artisan commands available in LarAgent for managing AI agents\",\"url\":\"https://docs.laragent.ai/v0/core-concepts/commands\",\"mainEntityOfPage\":{\"@id\":\"https://docs.laragent.ai/v0/core-concepts/commands#webpage\"},\"dateModified\":\"2026-02-05T13:02:50.912Z\",\"publisher\":{\"@id\":\"https://docs.laragent.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.laragent.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Official LarAgent Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Official LarAgent Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/v0/core-concepts/commands.md","siteName":"Official LarAgent Documentation","nav":{"global":{"anchors":[{"anchor":"Repository","icon":"github","href":"https://github.com/maestroerror/laragent"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/NAczq2T9F8"},{"anchor":"Blog","icon":"newspaper","href":"https://blog.laragent.ai"},{"anchor":"Upgrade to v1.0","icon":"arrow-up-right-dots","href":"/guides/upgrade-to-v1"}]},"versions":[{"version":"1.x","pages":[{"title":"1.x","href":"/introduction"}]},{"version":"0.x","tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Core concepts","pages":[{"title":"Agents","href":"/v0/core-concepts/agents"},{"title":"Tools","href":"/v0/core-concepts/tools"},{"title":"Model Context Protocol (MCP)","sidebarTitle":"MCP","href":"/v0/core-concepts/mcp"},{"title":"Chat History","href":"/v0/core-concepts/chat-history"},{"title":"Structured Output","href":"/v0/core-concepts/structured-output"},{"title":"Streaming","href":"/v0/core-concepts/streaming"},{"title":"Expose Agents via API","href":"/v0/core-concepts/agent-via-api"},{"title":"LLM Drivers","description":"LLM Drivers provide a flexible interface to connect with different AI providers while maintaining a consistent API for your application.","href":"/v0/core-concepts/llm-drivers"},{"title":"Artisan Commands","href":"/v0/core-concepts/commands"},{"title":"RAG","description":"Guide about implementation of Retrival Augmented Generation in LarAgent.","href":"/v0/core-concepts/rag"},{"title":"Usage Without Laravel","href":"/v0/core-concepts/usage-without-laravel"}]},{"group":"Extensibility \u0026 Customization","pages":[{"title":"Agent Events","href":"/v0/customization/events"},{"title":"Engine Hooks","href":"/v0/customization/hooks"},{"title":"Listen to Events","href":"/v0/customization/listen-to-events"},{"title":"Custom LLM Drivers","href":"/v0/customization/custom-driver"},{"title":"Custom Chat History","href":"/v0/customization/custom-chat-history"}]}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/introduction"}]}]}]},"basePath":"","title":"Artisan Commands - Official LarAgent Documentation","deploymentId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","buildId":"dpl_FZMKUpaaKiVETbfqhoUe4sPFDTmY","dynamics":["10e4515597"],"chunks":["BannerMarkdown-5hDu1xuu.js","dist-OCScizqf.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","katex-YMM-FMeD.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}