LLMs, Tools and Processors
Put LLM configuration into a .llm.js
.
Tools reside in a .tool.js
, .schema.json
files.
Processors should be put into .proc.js
.
Javascript/Python/PHP
It is possible to create llm
, tool
, proc
using javascript python and php. Lets make a tool weather.
weather.tool.mjs
export default async weather({location}, context) {
// ... code
}
weather.tool.js/cjs
module.exports = async function weather({location}, context) {
// ... code
}
weather.tool.py
def main(params):
params['location']
# ... code
weather.tool.php
<?php
function main($params) {
// ... code
}
?>
Python and PHP does not have acess to context.