Class: AvatarOptimizer
Optimizer specialized for Avatar agents (dspy.AvatarOptimizer).
URI: dspy:AvatarOptimizer
classDiagram
class AvatarOptimizer
click AvatarOptimizer href "../AvatarOptimizer/"
Teleprompter <|-- AvatarOptimizer
click Teleprompter href "../Teleprompter/"
AvatarOptimizer : description
AvatarOptimizer : id
AvatarOptimizer : max_iters
AvatarOptimizer : metric
AvatarOptimizer : name
Inheritance
- NamedThing
- Teleprompter
- AvatarOptimizer
- Teleprompter
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| max_iters | 0..1 Integer |
Maximum number of reasoning / tool-call iterations (ReAct family) | direct |
| metric | 0..1 String |
Dotted import path of the metric callable (or its name) | Teleprompter |
| id | 1 Identifier |
Stable opaque identifier for an instance | NamedThing |
| name | 0..1 String |
Short human-readable name | NamedThing |
| description | 0..1 String |
Free-form description | NamedThing |
In Subsets
Identifier and Mapping Information
Annotations
| property | value |
|---|---|
| dspy_source_paths | ['dspy/teleprompt/avatar_optimizer.py'] |
| dspy_source_urls | ['https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/avatar_optimizer.py'] |
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:AvatarOptimizer |
| native | dspy:AvatarOptimizer |
LinkML Source
Direct
name: AvatarOptimizer
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/teleprompt/avatar_optimizer.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/avatar_optimizer.py
description: Optimizer specialized for Avatar agents (``dspy.AvatarOptimizer``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
is_a: Teleprompter
slots:
- max_iters
Induced
name: AvatarOptimizer
annotations:
dspy_source_paths:
tag: dspy_source_paths
value:
- dspy/teleprompt/avatar_optimizer.py
dspy_source_urls:
tag: dspy_source_urls
value:
- https://github.com/stanfordnlp/dspy/blob/main/dspy/teleprompt/avatar_optimizer.py
description: Optimizer specialized for Avatar agents (``dspy.AvatarOptimizer``).
in_subset:
- teleprompt
from_schema: https://w3id.org/lmodel/dspy
is_a: Teleprompter
attributes:
max_iters:
name: max_iters
description: Maximum number of reasoning / tool-call iterations (ReAct family).
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: AvatarOptimizer
domain_of:
- ReAct
- ReActV2
- ProgramOfThought
- CodeAct
- AvatarOptimizer
range: integer
minimum_value: 1
metric:
name: metric
description: Dotted import path of the metric callable (or its name).
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: AvatarOptimizer
domain_of:
- Teleprompter
- Evaluate
range: string
id:
name: id
description: Stable opaque identifier for an instance.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
slot_uri: schema:identifier
identifier: true
owner: AvatarOptimizer
domain_of:
- NamedThing
range: Identifier
required: true
name:
name: name
description: Short human-readable name.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
slot_uri: rdfs:label
owner: AvatarOptimizer
domain_of:
- NamedThing
- LMToolCallPart
- LMMessage
- LMToolSpec
range: string
description:
name: description
description: Free-form description.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
slot_uri: dct:description
owner: AvatarOptimizer
domain_of:
- NamedThing
- LMToolSpec
range: string