-
-
Notifications
You must be signed in to change notification settings - Fork 172
Labels
FeatureNew featureNew featureHelp wantedExtra attention is neededExtra attention is neededPlatformIssues & PRs about the AI Platform componentIssues & PRs about the AI Platform component
Description
It would be great to populate data into an existing state object like:
class City {
public function __construct(
public string $name,
public int $population,
public string $country,
public string $mayor,
) {
}
}
$city = new City('Berlin');
$messages = new MessageBag(
Message::ofUser('Please research the missing data attributes for this city', $city),
);
$result = $platform->invoke($messages, [
'response_format' => $city,
]);
dump($result->asObject());
// City('Berlin', 3500000, 'Germany', 'Kai Wegner')Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FeatureNew featureNew featureHelp wantedExtra attention is neededExtra attention is neededPlatformIssues & PRs about the AI Platform componentIssues & PRs about the AI Platform component