Я создал автономный рабочий процесс с пользовательским прокси-агентом и моим помощником-агентом.
Для моего помощника-агента я предоставляю навык, и в прошлом это работало. Однако в последнее время мои выходные данные моего пользовательского прокси-агента пусты, даже в консоли выполнение успешно. Я этого не понимаю.
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
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение