GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
Loading...
Searching...
No Matches
GenerallyPositive.GPALAI Class Reference
Inheritance diagram for GenerallyPositive.GPALAI:
GenerallyPositive.IGPALAI GenerallyPositive.IAllowAICredentials GenerallyPositive.IAllowAIExecution GenerallyPositive.IAllowAIOutput GenerallyPositive.IAllowAIConfig GenerallyPositive.IAllowAITask GenerallyPositive.IAllowAIProvider GenerallyPositive.IAllowToGPALObject< TResult > GenerallyPositive.IAllowToGPALObject< TResult > GenerallyPositive.IAllowAIModel GenerallyPositive.IAllowAICredentials GenerallyPositive.IAllowToGPALObject< TResult > GenerallyPositive.IAllowAIOutput GenerallyPositive.IAllowAITaskConfig GenerallyPositive.IAllowToGPALObject< TResult >

Public Member Functions

IGPALAI ToGPALObject ()
IAllowAITask WithProvider (AIProviderType provider)
IAllowAITask WithModel (AIModel model)
IAllowAITask WithCredentials (ICredentials credentials)
IAllowAITask WithCredentials (string staticApiKey)
IAllowAIConfig WithTask (AITask task)
IAllowAIConfig WithTaskConfig (ClassificationConfig config)
IAllowAIConfig WithClassificationType (AIClassificationType type)
IAllowAIConfig WithCustomClassification (ClassificationConfig config)
IAllowAIOutput WithLiveInputFrom (GPALForm.GPALInput input, int debounceMilliseconds=500)
 Like WithInputFrom(object), but also wires the control's TextChanged event (debounced) to call Execute() again automatically, so output stays live as the user types. Must be called before the form is shown (the control's callbacks are read when the form is realized).
IAllowAIOutput WithLiveInputFrom (GPALForm.GPALTextArea textArea, int debounceMilliseconds=500)
 Like WithInputFrom(object), but also wires the control's TextChanged event (debounced) to call Execute() again automatically, so output stays live as the user types. Must be called before the form is shown (the control's callbacks are read when the form is realized).
IAllowAIOutput WithInputFrom (object source)
IAllowAIExecution WithOutputTo (out IGPALGrid< string > target)
IAllowAIExecution WithOutputTo (object target)
IAllowAIConfig CallAfterAIResponse (AIResponseDelegate callback)
IAllowAIExecution WithStatusTo (GPALForm.GPALStatusStrip statusStrip)
IAllowAIConfig Execute ()

Detailed Description

Definition at line 36 of file GPALAI.cs.

Member Function Documentation

◆ CallAfterAIResponse()

IAllowAIConfig GenerallyPositive.GPALAI.CallAfterAIResponse ( AIResponseDelegate callback)

Implements GenerallyPositive.IAllowAIExecution.

Definition at line 259 of file GPALAI.cs.

◆ Execute()

IAllowAIConfig GenerallyPositive.GPALAI.Execute ( )

Implements GenerallyPositive.IAllowAIExecution.

Definition at line 287 of file GPALAI.cs.

◆ ToGPALObject()

IGPALAI GenerallyPositive.GPALAI.ToGPALObject ( )

Implements GenerallyPositive.IAllowToGPALObject< TResult >.

Definition at line 77 of file GPALAI.cs.

◆ WithClassificationType()

IAllowAIConfig GenerallyPositive.GPALAI.WithClassificationType ( AIClassificationType type)

Implements GenerallyPositive.IAllowAITaskConfig.

Definition at line 138 of file GPALAI.cs.

◆ WithCredentials() [1/2]

IAllowAITask GenerallyPositive.GPALAI.WithCredentials ( ICredentials credentials)

Implements GenerallyPositive.IAllowAICredentials.

Definition at line 96 of file GPALAI.cs.

◆ WithCredentials() [2/2]

IAllowAITask GenerallyPositive.GPALAI.WithCredentials ( string staticApiKey)

Implements GenerallyPositive.IAllowAICredentials.

Definition at line 108 of file GPALAI.cs.

◆ WithCustomClassification()

IAllowAIConfig GenerallyPositive.GPALAI.WithCustomClassification ( ClassificationConfig config)

Implements GenerallyPositive.IAllowAITaskConfig.

Definition at line 154 of file GPALAI.cs.

◆ WithInputFrom()

IAllowAIOutput GenerallyPositive.GPALAI.WithInputFrom ( object source)

Implements GenerallyPositive.IAllowAIConfig.

Definition at line 204 of file GPALAI.cs.

◆ WithLiveInputFrom() [1/2]

IAllowAIOutput GenerallyPositive.GPALAI.WithLiveInputFrom ( GPALForm.GPALInput input,
int debounceMilliseconds = 500 )

Like WithInputFrom(object), but also wires the control's TextChanged event (debounced) to call Execute() again automatically, so output stays live as the user types. Must be called before the form is shown (the control's callbacks are read when the form is realized).

Implements GenerallyPositive.IAllowAIConfig.

Definition at line 175 of file GPALAI.cs.

◆ WithLiveInputFrom() [2/2]

IAllowAIOutput GenerallyPositive.GPALAI.WithLiveInputFrom ( GPALForm.GPALTextArea textArea,
int debounceMilliseconds = 500 )

Like WithInputFrom(object), but also wires the control's TextChanged event (debounced) to call Execute() again automatically, so output stays live as the user types. Must be called before the form is shown (the control's callbacks are read when the form is realized).

Implements GenerallyPositive.IAllowAIConfig.

Definition at line 182 of file GPALAI.cs.

◆ WithModel()

IAllowAITask GenerallyPositive.GPALAI.WithModel ( AIModel model)

Implements GenerallyPositive.IAllowAIModel.

Definition at line 90 of file GPALAI.cs.

◆ WithOutputTo() [1/2]

IAllowAIExecution GenerallyPositive.GPALAI.WithOutputTo ( object target)

Implements GenerallyPositive.IAllowAIOutput.

Definition at line 238 of file GPALAI.cs.

◆ WithOutputTo() [2/2]

IAllowAIExecution GenerallyPositive.GPALAI.WithOutputTo ( out IGPALGrid< string > target)

Implements GenerallyPositive.IAllowAIOutput.

Definition at line 226 of file GPALAI.cs.

◆ WithProvider()

IAllowAITask GenerallyPositive.GPALAI.WithProvider ( AIProviderType provider)

Implements GenerallyPositive.IAllowAIProvider.

Definition at line 79 of file GPALAI.cs.

◆ WithStatusTo()

IAllowAIExecution GenerallyPositive.GPALAI.WithStatusTo ( GPALForm.GPALStatusStrip statusStrip)

Implements GenerallyPositive.IAllowAIExecution.

Definition at line 270 of file GPALAI.cs.

◆ WithTask()

IAllowAIConfig GenerallyPositive.GPALAI.WithTask ( AITask task)

Implements GenerallyPositive.IAllowAITaskConfig.

Definition at line 111 of file GPALAI.cs.

◆ WithTaskConfig()

IAllowAIConfig GenerallyPositive.GPALAI.WithTaskConfig ( ClassificationConfig config)

Implements GenerallyPositive.IAllowAITaskConfig.

Definition at line 122 of file GPALAI.cs.


The documentation for this class was generated from the following file: