
# defines the agent

(define react-agent

    (:states 
        (thought
            (:text "Thought:")
        )
        (action
            (:text "Action:")
        )
        (action-input
            (:text "Action Input:")
        )
        (observation
            (:text "Observation:")
            (:flags :env-input)
        )
        (final-thought
            (:text "Final Thought:")
        )
        (answer
            (:text "Answer:")
        )
    )
    
    (:behavior
        (next
            (until_3
                (next thought action action-input observation)
                final-thought)
            answer)
    )

)
