Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any full tutorial to show how to implement crewAI agent with Tools in GPT computer assistant ? #106

Open
Adamchanadam opened this issue Jun 9, 2024 · 6 comments
Assignees

Comments

@Adamchanadam
Copy link

as title. thank you .

@onuratakan
Copy link
Member

Hi, realy good point.

from gpt_computer_assistant import Agent, Tool, start

manager = Agent(
  role='Project Manager',
  goal='understands project needs and assist coder',
  backstory="""You're a manager at a large company.""",
)

coder = Agent(
  role='Senior Python Coder',
  goal='writing python scripts and copying to clipboard',
  backstory="""You're a python developer at a large company.""",
)

@Tool
def sum_tool(first_number: int, second_number: int) -> str:
    """Useful for when you need to sum two numbers together."""
    return first_number + second_number

start()

@onuratakan onuratakan self-assigned this Jun 9, 2024
@onuratakan
Copy link
Member

Do you need any specific argument from original crewai functions

@Adamchanadam
Copy link
Author

Do you need any specific argument from original crewai functions

Thanks for reply . According to the practice of CrewAI , after defined Agents & Tools , where can I define "Task" ?

@Adamchanadam
Copy link
Author

Adamchanadam commented Jun 9, 2024

according to this example , should the 'manager' or 'coder' may use the 'sum_tool' ?
Is there a 'sequential' concept , the first Agent's output can be used by the next Agent ?

Hi, realy good point.

from gpt_computer_assistant import Agent, Tool, start

manager = Agent(
  role='Project Manager',
  goal='understands project needs and assist coder',
  backstory="""You're a manager at a large company.""",
)

coder = Agent(
  role='Senior Python Coder',
  goal='writing python scripts and copying to clipboard',
  backstory="""You're a python developer at a large company.""",
)

@Tool
def sum_tool(first_number: int, second_number: int) -> str:
    """Useful for when you need to sum two numbers together."""
    return first_number + second_number

start()

@onuratakan
Copy link
Member

Do you need any specific argument from original crewai functions

Thanks for reply . According to the practice of CrewAI , after defined Agents & Tools , where can I define "Task" ?

Actualy your inputs (record, screenshot, typing) are tasks.

@Adamchanadam
Copy link
Author

Adamchanadam commented Jun 9, 2024

On the other hand , when I ran the code with Agent and Tool above via main.py , it usually can be executed correctly at the first time. but after finished the TTS and I ask another question . it always show :

Moving to Agentic
Error in process_audio 'Agent' object is not subscriptable
Updating from thread EXCEPTION: 'Agent' object is not subscriptable
State updated: idle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants