.agent.yml
files, and anything with that extension within your oxy
repository will be recognized as an agent.
Creating an .agent.yml file
my-agent.agent.yml
. You
can do so by running the following command from within your oxy repository:Specifying the model to use
openai-4.1
, named during our setup.Open your my-agent.agent.yml
file in a text editor, and add the following line:Adding system instructions
system_instructions
) to give our LLM
general instructions as well as context on our data.oxy run
command takes agent files or workflow files as arguments.
Therefore, if you’re not in the same directory as your agent file, you need
to specify the relative path to the agent, with e.g. oxy run path/to/my-agent.agent.yml
.Giving your agent the ability to execute SQL
tools
section to your .agent.yml
file, as follows:Creating a file with schema information
columns:
and the row of data with
sample row:
, as follows. You should also add in a sample query so the LLM
gets a sense of how to query this.oxy run <filename>.sql
.Giving this context to your agent
context
section within your .agent.yml
file, as follows:file
-type context
objects take an array (whereas
semantic_model
type src
entries will take a single value, because they
are parsed).