Knowledge & Uncertainty in AI

Knowledge-Based Agents

A knowledge-based system (KBS) uses artificial intelligence techniques to store, manipulate, and reason with knowledge. The knowledge is typically represented in the form of rules or facts, enabling the system to draw conclusions or make decisions.

 
<?php

// Example usage:
use app\classes\knowledgebase\KBAgent;

$agent = new KBAgent();
$percept = ["temperature" => 25"humidity" => 60];
$action $agent->process($percept);
Result: Memory: 0.019 Mb Time running: 0.001 sec.
Step 1: Initial State
--------------------
Time step: 0
Percept received: {"temperature":25,"humidity":60}

Step 2: Percept Sentence Created
--------------------
At time 0, perceived: {"temperature":25,"humidity":60}

Step 3: Action Generated
--------------------
Action: {"type":"default_action","percept":{"temperature":25,"humidity":60}}

Step 4: Final Knowledge Base State
--------------------
Time step incremented to: 1
Action recorded in KB: At time 0, performed action: {"type":"default_action","percept":{"temperature":25,"humidity":60}}