# Description of Changes Redesign the Python AI engine to be properly agentic and make use of `pydantic-ai` instead of `langchain` for correctness and ergonomics. This should be a good foundation for us to build our AI engine on going forwards.
15 lines
546 B
Python
15 lines
546 B
Python
from __future__ import annotations
|
|
|
|
from stirling.contracts import AgentExecutionRequest, CannotContinueExecutionAction, NextExecutionAction
|
|
from stirling.services import AppRuntime
|
|
|
|
|
|
class ExecutionPlanningAgent:
|
|
def __init__(self, runtime: AppRuntime) -> None:
|
|
self.runtime = runtime
|
|
|
|
async def next_action(self, request: AgentExecutionRequest) -> NextExecutionAction:
|
|
return CannotContinueExecutionAction(
|
|
reason=f"Execution planning is not implemented yet for step {request.current_step_index}."
|
|
)
|