setProviderConfig
method. Just make sure you have your environment variables set up for the providers you choose.
getSystemPrompts
method to define the system prompts for your agent.
setup
method is called when the agent is instantiated, and it can be asynchronous. It is a good place to initialize values for your agent, fetch starting data, etc.
.ts
file with a default export
that is a class that extends MagmaAgent
(as shown in the Your First Agent section)package.json
file with the magma framework installed, and your agent’s entrypoint in the main
field. Example: "main": "myAgent.ts"
.env
file with the necessary environment variables for your agent, including your AI provider’s API key, etc.magma init
command, as covered in the Quickstart section.