LMCompletionConfig
dendron.configs.lm_completion_config.LMCompletionConfig
dataclass
Configuration for CompletionConditionNode that controls Hugging Face model settings and blackboard interactions for completion evaluation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
node_name
|
str
|
The name of the node that will use this configuration. |
required |
completions_key
|
Optional[str]
|
The blackboard key for reading and writing completions to evaluate. The value should be a list of strings, each representing one completion. Defaults to "completions_in". |
'completions_in'
|
logprobs_out_key
|
Optional[str]
|
The blackboard key where the output log probabilities dictionary will be written. Defaults to "probs_out". |
'probs_out'
|
success_fn_key
|
Optional[str]
|
The blackboard key for the success predicate function. The predicate should accept a completion string and return a NodeStatus. Defaults to "success_fn". |
'success_fn'
|
input_key
|
Optional[str]
|
The blackboard key used to read the input text that the model will process. Defaults to "in". |
'in'
|