agent_logic.models
Logic models module.
This module provides AI model interfaces for logical reasoning and proof generation.
- class agent_logic.models.LLMEquivalenceRequest(**data)[source]
Bases:
BaseModelDefines the structure for equivalence transformation requests.
- Parameters:
expression (LogicalExpression)
transformation (str)
-
expression:
LogicalExpression
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
transformation:
str
- class agent_logic.models.LLMEquivalenceResponse(**data)[source]
Bases:
BaseModelDefines the structure of the response for equivalence transformations.
- Parameters:
transformed_expression (LogicalExpression)
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
transformed_expression:
LogicalExpression
- class agent_logic.models.LLMProofRequest(**data)[source]
Bases:
BaseModelDefines the structure for LLMs to request a proof verification.
- Parameters:
premises (List[LogicalExpression])
goal (LogicalExpression)
max_depth (int | None)
-
goal:
LogicalExpression
-
max_depth:
Optional[int]
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
premises:
List[LogicalExpression]
- class agent_logic.models.LLMProofResponse(**data)[source]
Bases:
BaseModelDefines the structure of the response for LLM-driven proof validation.
- Parameters:
is_valid (bool)
proof_steps (List[ProofStep] | None)
error_message (str | None)
-
error_message:
Optional[str]
-
is_valid:
bool
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class agent_logic.models.LLMTruthTableRequest(**data)[source]
Bases:
BaseModelDefines the structure for requesting a truth table generation.
- Parameters:
expression (LogicalExpression)
-
expression:
LogicalExpression
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class agent_logic.models.LLMTruthTableResponse(**data)[source]
Bases:
BaseModelDefines the response structure for an LLM-generated truth table.
- Parameters:
truth_table (List[Dict[str, bool]])
is_tautology (bool)
is_contradiction (bool)
is_satisfiable (bool)
-
is_contradiction:
bool
-
is_satisfiable:
bool
-
is_tautology:
bool
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
truth_table:
List[Dict[str,bool]]
Modules