small fixups

This commit is contained in:
Ettore Di Giacinto
2024-04-08 23:25:17 +02:00
parent f11c8f3f57
commit 80361a6400
4 changed files with 35 additions and 11 deletions

View File

@@ -91,6 +91,10 @@ func (a *Agent) Context() context.Context {
return a.context.Context
}
func (a *Agent) ConversationChannel() chan openai.ChatCompletionMessage {
return a.newConversations
}
// 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 {