feat: implement AI agent for flowme-life interactions
- Add agent-run module to handle AI interactions with tools and messages. - Create routes for proxying requests to OpenAI and Anthropic APIs. - Implement flowme-life chat route for user queries and task management. - Add services for retrieving and updating life records in the database. - Implement logic for fetching today's tasks and marking tasks as done with next execution time calculation. - Introduce tests for flowme-life functionalities.
This commit is contained in:
@@ -12,7 +12,13 @@ export const life = pgTable("flowme_life", {
|
||||
link: text('link').default(''),
|
||||
data: jsonb().default({}),
|
||||
|
||||
effectiveAt: text('effectiveAt').default(''),
|
||||
effectiveAt: timestamp('effectiveAt', { withTimezone: true }),
|
||||
/**
|
||||
* 智能,
|
||||
* 每年农历
|
||||
* 备忘
|
||||
* 归档
|
||||
*/
|
||||
type: text('type').default(''),
|
||||
prompt: text('prompt').default(''),
|
||||
taskType: text('taskType').default(''),
|
||||
|
||||
Reference in New Issue
Block a user