Skip to content

Commit be24868

Browse files
committed
add intermediate steps
1 parent adf369a commit be24868

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/CCatClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ private function jsonToResponse(string $jsonResponse): Response
370370
$why = new Why();
371371
$why->input = $responseArray['why']['input'];
372372
$why->intermediate_steps = $responseArray['why']['intermediate_steps'] ?? [];
373+
$why->model_interactions = $responseArray['why']['model_interactions'] ?? [];
373374
$memory = new Memory();
374375
$memory->declarative = $responseArray['why']['memory']['declarative'];
375376
$memory->episodic = $responseArray['why']['memory']['episodic'];

src/Model/Why.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ class Why
1212
public ?array $intermediate_steps;
1313

1414
public Memory $memory;
15+
/**
16+
* @var null|array<mixed>
17+
*/
18+
public ?array $model_interactions = null;
1519
}

0 commit comments

Comments
 (0)