Skip to content

Comments

Add schedule name correction for LLMs#4370

Open
Boegie19 wants to merge 1 commit intoclockworklabs:masterfrom
Boegie19:schedule-syntax-correction
Open

Add schedule name correction for LLMs#4370
Boegie19 wants to merge 1 commit intoclockworklabs:masterfrom
Boegie19:schedule-syntax-correction

Conversation

@Boegie19
Copy link
Contributor

Description of Changes

This change is needed since the AI halicunates that the name is schedule for some dam reason every time in the llm tests. while it is scheduled

"llm_output": "use spacetimedb::{table, reducer, ReducerContext, Table, ScheduleAt};\n\n#[table(name = tick_timer, schedule(reducer = tick, column = scheduled_at))]\npub struct TickTimer {\n #[primary_key]\n #[auto_inc]\n scheduled_id: u64,\n scheduled_at: ScheduleAt,\n}\n\n#[reducer(init)]\npub fn init(ctx: &ReducerContext) {\n if ctx.db.tick_timer().count() == 0 {\n ctx.db\n .tick_timer()\n .insert(TickTimer { scheduled_id: 0, scheduled_at: ScheduleAt::repeat_micros(50_000) });\n }\n}\n\n#[reducer]\npub fn tick(_ctx: &ReducerContext) {\n}",

API and ABI breaking changes

Expected complexity level and risk

1

Testing

  • Run the LLM benchmark and see if this fixes it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant