Skip to content

AutoGen: Code Execution Issue in Multi-Agent System #5177

Answered by ekzhu
Laxmi530 asked this question in Q&A
Discussion options

You must be logged in to vote

Our current stable version is v0.4.3, you are not using a Microsoft-published package. Please install autogen-agentchat.

Also, your code is using v0.2 API, please see the migration guide for v0.4: https://microsoft.github.io/autogen/stable/user-guide/agentchat-user-guide/migration-guide.html

For your example, I tried with llama3.2 2B using Ollama:

import asyncio
from typing import Dict, List
from autogen_agentchat.agents import AssistantAgent
from autogen_agentchat.ui import Console
from autogen_ext.models.openai import OpenAIChatCompletionClient

def inventry_check() -> List[Dict]:
    """Get item, unit and unit price from the inventory database."""
    result = [
        (1, "Apple", 5, 10

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Laxmi530
Comment options

@ekzhu
Comment options

ekzhu Feb 6, 2025
Maintainer

@Laxmi530
Comment options

@ekzhu
Comment options

ekzhu Feb 6, 2025
Maintainer

Answer selected by Laxmi530
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants