Workflow 2
provider openai from openai {
endpoint: "https://ollama.com/v1"
api_key: "*********"
}
model openai_model from openai {
id: "big-pickle"
}
mcp example {
endpoint: "https://superwire.dev/mcp/hello-world"
headers {
Accept: "application/json"
}
}
from mcp.example {
bindings {
project_id: 14
task_id: 109
}
}
prompt dynamic_summary_prompt {
bindings {
project_id: 14
type: "task"
type_id: 109
}
}
tool list_all_participants_who_has_answered_given_task
tool fetch_participant_answer
agent greeting {
model: model.openai_model
uses: [tool.list_all_participants_who_has_answered_given_task, prompt.dynamic_summary_prompt]
instruction: """
call the prompt to figure out extra instructions user my request
Please analyze all tasks of the participants and provide me a summary
"""
output {
summary: string
}
}
output {
greeting: agent.greeting.summary
}
