Add agents package with Flue
This commit is contained in:
5
packages/agents/flue.config.ts
Normal file
5
packages/agents/flue.config.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { defineConfig } from '@flue/cli/config';
|
||||
|
||||
export default defineConfig({
|
||||
target: 'node',
|
||||
});
|
||||
20
packages/agents/package.json
Normal file
20
packages/agents/package.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "@code/agents",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "flue build",
|
||||
"check-types": "tsc --noEmit",
|
||||
"dev": "flue dev",
|
||||
"run": "flue run"
|
||||
},
|
||||
"dependencies": {
|
||||
"@flue/runtime": "latest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@code/config": "workspace:*",
|
||||
"@flue/cli": "latest",
|
||||
"typescript": "^6"
|
||||
}
|
||||
}
|
||||
6
packages/agents/src/agents/hello-world.ts
Normal file
6
packages/agents/src/agents/hello-world.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { defineAgent } from '@flue/runtime';
|
||||
|
||||
export default defineAgent(() => ({
|
||||
model: 'anthropic/claude-sonnet-4-6',
|
||||
instructions: 'Give a concise, helpful hello-world response for this project.',
|
||||
}));
|
||||
5
packages/agents/tsconfig.json
Normal file
5
packages/agents/tsconfig.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"extends": "@code/config/tsconfig.base.json",
|
||||
"include": ["src/**/*.ts"],
|
||||
"exclude": ["dist"]
|
||||
}
|
||||
Reference in New Issue
Block a user