xlang-ai / OpenAgents

[COLM 2024] OpenAgents: An Open Platform for Language Agents in the Wild
https://arxiv.org/abs/2310.10634
Apache License 2.0
4k stars 444 forks source link

[ERROR]: name 'generate_continuous_elegant_python_code' is not defined #88

Closed georgehu0815 closed 11 months ago

georgehu0815 commented 1 year ago
image image
georgehu0815 commented 1 year ago

AI: Your table E-commerce Customer Behavior - Sheet1 contains 350 rows and 11 columns. On average, each column has about 50 unique values. Watch out, there are 2 missing values in your data. Here are some additional insights to enhance your understanding of the table.

  1. E-commerce behavior data by customers.
  2. Analyze customer satisfaction, spending habits, and purchase history.
  3. Identify correlations between customer demographics and spending. Human: Analyze customer satisfaction, spending habits, and purchase history. AI: ```json { "action": "PythonCodeBuilder", "action_input": "calculate the average satisfaction level of each membership type", }
    
    [RESPONSE_BEGIN]
    <code>
    generate_continuous_elegant_python_code(history_dict)
    </code>
[ERROR]: name 'generate_continuous_elegant_python_code' is not defined
georgehu0815 commented 1 year ago

Observation: { "success": "False", "result": "[ERROR]: name 'generate_continuous_elegant_python_code' is not defined", "intermediate_steps": "generate_continuous_elegant_python_code(history_dict)" } Thought:

Finished chain.

Timothyxxx commented 12 months ago

It seems like the agent encounters some trouble with the format, and I thought it maybe due to the fact you used the gpt-3.5 instead of gpt-4 which are less intelligent when considering the instruction following, would you mind changing the LLM and see if it helps?

github-actions[bot] commented 12 months ago

This issue is stale because it has been open 3 days with no activity. Remove stale label or comment or this will be closed in 4 days.

github-actions[bot] commented 11 months ago

This issue was closed because it has been stalled for 4 days with no activity.