Doriandarko / maestro

A framework for Claude Opus to intelligently orchestrate subagents.
4.13k stars 639 forks source link

file structure is empty #60

Open nfwyst opened 3 months ago

nfwyst commented 3 months ago

there is no file generated, after i ran python3 maestro-anyapi.py

verrol commented 3 months ago

Same for me and I'm using Gemini. It produces console test with file names, but it doesn't create any files in the directory.

Here is an example of console output for the file "order_service.go", but the file wasn't created:

Filename: order_service.go

package controllers

import (
    "ecommerce-app-backend/models"

    "gorm.io/gorm"
)

type OrderService interface {
    CreateOrder(order *models.Order) error
    GetOrdersByUser(userID uint, orders *[]models.Order) error
    // ... (Add more order service methods as needed)
}

type OrderServiceImpl struct {
    DB *gorm.DB
}

func (os *OrderServiceImpl) CreateOrder(order *models.Order) error {
    // ... Create the order in the database
    return os.DB.Create(order).Error
}

func (os *OrderServiceImpl) GetOrdersByUser(userID uint, orders *[]models.Order) error {
    // ... Retrieve all orders for the user from the database
    return os.DB.Where("user_id = ?", userID).Find(orders).Error
}
deniercounter commented 2 months ago

Wow ... Is this still the case?

And this couldn't be solved with this hack either: https://github.com/Doriandarko/maestro/issues/44 ?

verrol commented 2 months ago

@deniercounter - Thanks for replying.

When I have some time, I will check out #44 and update accordingly.

verrol commented 2 months ago

@deniercounter - I updated maestro-anyapi.py and I have a valid key in os.environ["GEMINI_API_KEY"], yet it died with invalid key error, even though it was working find and even generated a bunch of code on the console. Stil nothing in any file and then it failed with the invalid key error. So I not sure why the earlier steps picked up the key, but later on it didn't.