You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
699 B
28 lines
699 B
from swarms.structs import Agent
|
|
from swarms.prompts.logistics import (
|
|
Quality_Control_Agent_Prompt,
|
|
)
|
|
|
|
# Image for analysis
|
|
factory_image = "image.jpg"
|
|
|
|
|
|
# Quality control agent
|
|
quality_control_agent = Agent(
|
|
agent_name="Quality Control Agent",
|
|
agent_description="A quality control agent that analyzes images and provides a detailed report on the quality of the product in the image.",
|
|
model_name="gpt-4.1-mini",
|
|
system_prompt=Quality_Control_Agent_Prompt,
|
|
# multi_modal=True,
|
|
max_loops=1,
|
|
output_type="str-all-except-first",
|
|
)
|
|
|
|
|
|
response = quality_control_agent.run(
|
|
task="Create a comprehensive report on the image",
|
|
img=factory_image,
|
|
)
|
|
|
|
print(response)
|