Я создал автономный рабочий процесс с пользовательским прокси-агентом и моим помощником-агентом.
Для моего помощника-агента я предоставляю навык, и в прошлом это работало. Однако в последнее время мои выходные данные моего пользовательского прокси-агента пусты, даже в консоли выполнение успешно. Я этого не понимаю.
exitcode: 0 (execution successful)
Code output:
В моем навыке (функции) он возвращает результат, который я ищу.
Кроме того, окончательный выполненный код имел print() в конце исполнение. Однако мой пользовательский прокси показывает вывод, в результате чего мой помощник-агент говорит, что ничего не производится. Я действительно не понимаю, почему.
Ниже приведен пример моих навыков только для целей тестирования:
def add_two_numbers(number1, number2):
print(number1 + number2)
a=input() ## this is just to stop for a min in Python so I can view the result
return number1 + number2
ниже приведен вывод консоли:
userproxy1 (to test_sum_up_agent):
2024-07-25 13:50:25.319sum up 2,4
|
--------------------------------------------------------------------------------
INFO | autogenstudio.web.app:message_handler:38 - ** Processing Agent Message on Queue: Active Connections: [*] **
2024-07-25 13:50:25.334 | INFO | autogenstudio.web.app:message_handler:45 - Sending message to connection_id: *. Connection ID: *
test_sum_up_agent (to userproxy1):
To sum up the numbers 2 and 4, you can use the `add_two_numbers` function from the `skills.py` file. Here is the Python code to do this:
```python
from skills import add_two_numbers
number1 = 2
number2 = 4
total = add_two_numbers(number1, number2)
print(total)
```
When you run this code, it will print the sum of the two numbers, which is 6.2024-07-25 13:50:31.096
--------------------------------------------------------------------------------
|
>>>>>>>> EXECUTING CODE BLOCK (inferred language is python)...
INFO | autogenstudio.web.app:message_handler:38 - ** Processing Agent Message on Queue: Active Connections: ['*'] **
2024-07-25 13:50:31.102 | INFO | autogenstudio.web.app:message_handler:45 - Sending message to connection_id: *. Connection ID: *
userproxy1 (to test_sum_up_agent):
2024-07-25 13:50:48.344exitcode: 0 (execution succeeded)
**Code output:**
|
INFO --------------------------------------------------------------------------------
| autogenstudio.web.app:message_handler:38 - ** Processing Agent Message on Queue: Active Connections: ['*'] **
2024-07-25 13:50:48.371 | INFO | autogenstudio.web.app:message_handler:45 - Sending message to connection_id: *. Connection ID: *
test_sum_up_agent (to userproxy1):
2024-07-25 13:50:57.181
The task was to sum up the numbers 2 and 4. The Python code provided used the `add_two_numbers` function from the `skills.py` file to perform this task. The code was executed successfully and the sum of the numbers, which is 6, was printed. However, due to a technical issue, the output was not displayed. It was suggested to verify the result by running the code in a Python environment. The sum of the numbers 2 and 4 is confirmed to be 6.
TERMINATE |
Подробнее здесь: https://stackoverflow.com/questions/787 ... any-output
Мой код выполнения прокси-сервера пользователя autogen studio выполнен успешно, но без каких-либо выходных данных ⇐ Python
Программы на Python
1733392310
Anonymous
Я создал автономный рабочий процесс с пользовательским прокси-агентом и моим помощником-агентом.
Для моего помощника-агента я предоставляю навык, и в прошлом это работало. Однако в последнее время мои выходные данные моего пользовательского прокси-агента пусты, даже в консоли выполнение успешно. Я этого не понимаю.
exitcode: 0 (execution successful)
Code output:
В моем навыке (функции) он возвращает результат, который я ищу.
Кроме того, окончательный выполненный код имел print() в конце исполнение. Однако мой пользовательский прокси показывает вывод, в результате чего мой помощник-агент говорит, что ничего не производится. Я действительно не понимаю, почему.
Ниже приведен пример моих навыков только для целей тестирования:
def add_two_numbers(number1, number2):
print(number1 + number2)
a=input() ## this is just to stop for a min in Python so I can view the result
return number1 + number2
ниже приведен вывод консоли:
userproxy1 (to test_sum_up_agent):
2024-07-25 13:50:25.319sum up 2,4
|
--------------------------------------------------------------------------------
INFO | autogenstudio.web.app:message_handler:38 - ** Processing Agent Message on Queue: Active Connections: [*] **
2024-07-25 13:50:25.334 | INFO | autogenstudio.web.app:message_handler:45 - Sending message to connection_id: *. Connection ID: *
test_sum_up_agent (to userproxy1):
To sum up the numbers 2 and 4, you can use the `add_two_numbers` function from the `skills.py` file. Here is the Python code to do this:
```python
from skills import add_two_numbers
number1 = 2
number2 = 4
total = add_two_numbers(number1, number2)
print(total)
```
When you run this code, it will print the sum of the two numbers, which is 6.2024-07-25 13:50:31.096
--------------------------------------------------------------------------------
|
>>>>>>>> EXECUTING CODE BLOCK (inferred language is python)...
INFO | autogenstudio.web.app:message_handler:38 - ** Processing Agent Message on Queue: Active Connections: ['*'] **
2024-07-25 13:50:31.102 | INFO | autogenstudio.web.app:message_handler:45 - Sending message to connection_id: *. Connection ID: *
userproxy1 (to test_sum_up_agent):
2024-07-25 13:50:48.344exitcode: 0 (execution succeeded)
**Code output:**
|
INFO --------------------------------------------------------------------------------
| autogenstudio.web.app:message_handler:38 - ** Processing Agent Message on Queue: Active Connections: ['*'] **
2024-07-25 13:50:48.371 | INFO | autogenstudio.web.app:message_handler:45 - Sending message to connection_id: *. Connection ID: *
test_sum_up_agent (to userproxy1):
2024-07-25 13:50:57.181
The task was to sum up the numbers 2 and 4. The Python code provided used the `add_two_numbers` function from the `skills.py` file to perform this task. The code was executed successfully and the sum of the numbers, which is 6, was printed. However, due to a technical issue, the output was not displayed. It was suggested to verify the result by running the code in a Python environment. The sum of the numbers 2 and 4 is confirmed to be 6.
TERMINATE |
Подробнее здесь: [url]https://stackoverflow.com/questions/78794834/my-autogenstudio-userproxy-excute-code-is-successful-but-without-any-output[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия