Types#
The DecisionAI Client package provides several type definitions that are used throughout the codebase.
Constraint Generator#
- decision_ai.typing.ConstraintGenerator: Generator[pulp.LpConstraint, None, None]#
A generator type that yields PuLP constraints. This is typically used when defining constraints in optimization models.
Priority#
- decision_ai.typing.Priority: Literal['hard', 'A', 'B', 'C']#
A literal type representing the priority levels for constraints:
“hard”: Hard constraints that must be satisfied
“A”: Highest priority soft constraints
“B”: Medium priority soft constraints
“C”: Lowest priority soft constraints
Assistant Message Kind#
- decision_ai.typing.AssistantMessageKind: Literal['chat_response', 'tool_call', 'tool_output', 'uncritical_error', 'critical_error', 'ask_for_prompt', 'ask_for_validation', 'ask_for_solve']#
A literal type representing the kinds of messages that can be received from the assistant.
Back to: API Reference (API Reference Overview)