agents 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/codemode/ai.js +0 -3
- package/dist/codemode/ai.js.map +1 -1
- package/package.json +1 -1
package/dist/codemode/ai.js
CHANGED
|
@@ -4938,7 +4938,6 @@ async function experimental_codemode(options) {
|
|
|
4938
4938
|
If the user asks to do anything that be achieveable by the codemode tool, then simply pass over control to it by giving it a simple function description. Don't be too verbose.
|
|
4939
4939
|
|
|
4940
4940
|
`;
|
|
4941
|
-
console.log("prompt", prompt);
|
|
4942
4941
|
const codemodeTool = tool2({
|
|
4943
4942
|
description: "codemode: a tool that can generate code to achieve a goal",
|
|
4944
4943
|
inputSchema: z19.object({
|
|
@@ -4950,7 +4949,6 @@ async function experimental_codemode(options) {
|
|
|
4950
4949
|
}),
|
|
4951
4950
|
execute: async ({ functionDescription }) => {
|
|
4952
4951
|
try {
|
|
4953
|
-
console.log("codemode", functionDescription);
|
|
4954
4952
|
const response = await generateObject({
|
|
4955
4953
|
model: openai("gpt-4.1"),
|
|
4956
4954
|
schema: z19.object({
|
|
@@ -4969,7 +4967,6 @@ async function experimental_codemode(options) {
|
|
|
4969
4967
|
Here is user input: ${functionDescription}`
|
|
4970
4968
|
// insert ts types for the tools here
|
|
4971
4969
|
});
|
|
4972
|
-
console.log("code", response.object.code);
|
|
4973
4970
|
const evaluator = createEvaluator(response.object.code, {
|
|
4974
4971
|
proxy: options.proxy,
|
|
4975
4972
|
loader: options.loader
|