Skip to content

Commit 2213024

Browse files
committed
wip
1 parent bd8e12a commit 2213024

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": "^8.4",
2020
"adhocore/json-fixer": "^1.0",
21-
"cortexphp/json-schema": "dev-main",
21+
"cortexphp/json-schema": "^1.0",
2222
"cortexphp/model-info": "^0.3",
2323
"illuminate/collections": "^12.0",
2424
"laravel/prompts": "^0.3.8",

resources/js/components/app-sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const footerNavItems: NavItem[] = [
3737
},
3838
{
3939
title: "Documentation",
40-
href: "https://laravel.com/docs/starter-kits#react",
40+
href: "https://docs.cortexphp.com",
4141
icon: BookOpen,
4242
},
4343
];

src/Agents/Registry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function ids(): array
9797
public function toArray(): array
9898
{
9999
return collect($this->agents)
100-
->map(function (string|Agent $agent) {
100+
->map(function (string|Agent $agent): Agent {
101101
return $agent instanceof Agent ? $agent : $agent::make();
102102
})
103103
->map(function (Agent $agent): array {

workbench/app/Providers/CortexServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ public function boot(): void
100100

101101
$storyWriter = new Agent(
102102
id: 'story_writer',
103-
prompt: 'You are a story writer. You only write short stories. Use the tools provided to help.',
104-
llm: 'lmstudio/openai/gpt-oss-20b',
103+
prompt: 'You are a story writer. You only write short stories. Call the `get_random_story_topic` tool to get a story topic and the `flesh_out_story_idea` tool to flesh out a story idea.',
104+
llm: 'anthropic/claude-3-7-sonnet-20250219',
105105
tools: [
106-
// $storyTopicGenerator->asTool('get_random_story_topic', 'Generate a random story topic.'),
106+
$storyTopicGenerator->asTool('get_random_story_topic', 'Generate a random story topic.'),
107107
$storyIdeaGenerator->asTool('flesh_out_story_idea', 'Flesh out a story idea about a given topic.'),
108108
],
109109
);

0 commit comments

Comments
 (0)