CREATE AGENT
Syntax*
syntax.model
provider
It is a required parameter. It defines the model provider from the list below.
model_name
It is a required parameter. It defines the model name from the list below.
api_key
It is an optional parameter (applicable to selected providers), which stores the API key to access the model. Users can provide it either in this api_key
parameter, or using environment variables.
base_url
It is an optional parameter (applicable to selected providers), which stores the base URL for accessing the model. It is the root URL used to send API requests.
api_version
It is an optional parameter (applicable to selected providers), which defines the API version.
Anthropic
Ollama
OpenAI
Nvidia NIM
Writer
model
parameter to define the specification.
default_llm
in the configuration file, you do not need to provide the model
parameter when creating an agent. If provide both, then the values from the model
parameter are used.
data
knowledge_bases
stores the list of knowledge bases to be used by the agent.
tables
stores the list of tables from data sources connected to MindsDB.
prompt_template
knowledge_bases
and tables
parameters to help the agent locate relevant data for answering questions.
timeout
timeout
parameter is set to 10, the agent has 10 seconds to return an answer. If the agent takes longer than 10 seconds, it aborts the process and comes back with an answer indicating its failure to return an answer within the defined time interval.
SELECT FROM AGENT
SyntaxUSING
clause may contain any combination of parameters from the CREATE AGENT
command, depending on which parameters users want to update for the query.
For example, users may want to check the performance of other models to decide which model works better for their use case.
ALTER AGENT
SyntaxCREATE AGENT
section.DROP AGENT
Syntax