OpenAiProvider class
OpenAI GPT-4o Provider for synthesizing surgical patches.
- Implemented types
Constructors
- OpenAiProvider({required String apiKey, String model = 'gpt-4o', Client? client})
Properties
Methods
-
generatePatch(
{required CrashReport crash, required AstContext astContext}) → Future< PatchResult> -
Synthesizes an initial surgical patch and regression test for a crash.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refinePatch(
{required CrashReport crash, required AstContext astContext, required PatchResult previousPatch, required String failureLogs, required int attemptNumber}) → Future< PatchResult> -
Refines a previous patch after sandbox verification failure (Reflection loop).
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited