Foundry.LlmCompletion

g Foundry.LlmCompletion Foundry.LlmCompletion GObject.Object GObject.Object GObject.Object->Foundry.LlmCompletion

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

next_chunk ()

when_finished ()

Virtual Methods

Inherited:

GObject.Object (7)

do_next_chunk ()

do_when_finished ()

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Foundry.LlmCompletion(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Foundry.LlmCompletionClass

next_chunk()
Returns:

a [class`Dex`.Future] that resolves to a [class`Foundry`.LlmCompletionChunk] or rejects with error.

Return type:

Dex.Future

when_finished()
Returns:

a [class`Dex`.Future] that resolves to any value when the LLM completion has finished generating.

Return type:

Dex.Future

do_next_chunk() virtual
Returns:

a [class`Dex`.Future] that resolves to a [class`Foundry`.LlmCompletionChunk] or rejects with error.

Return type:

Dex.Future

do_when_finished() virtual
Returns:

a [class`Dex`.Future] that resolves to any value when the LLM completion has finished generating.

Return type:

Dex.Future