Allow to configure connectors

This commit is contained in:
mudler
2024-04-08 20:15:32 +02:00
parent 533caeee96
commit 66b1847644
6 changed files with 105 additions and 12 deletions

View File

@@ -87,6 +87,10 @@ func (a *Agent) StopAction() {
}
}
func (a *Agent) Context() context.Context {
return a.context.Context
}
// Ask is a pre-emptive, blocking call that returns the response as soon as it's ready.
// It discards any other computation.
func (a *Agent) Ask(opts ...JobOption) *JobResult {