Skip to content

[Question] Does it only support, agent, system and user roles? #13740

@zerocorebeta

Description

@zerocorebeta

I am working on a system where 1 agent does a job, and then other agent comes.

but when i try passing convo with different agent names to it, it throws errors why?

So, my question is : is there anyhack or dirty way or any feature? I went through documentation including "ask ai" one but didn't return anything.

Here's sample of what i am trying to achieve:

   {
      "role": "assistant",
      "content": "**Implementation Briefing**\n\n**1. Objective:**\nAdd a new function `helloworld9999` to `main.py` that prints \"hello world\".\n\n**2. Final Plan:**\n1.  Add a new function named `helloworld9999` to the `main.py` file.\n2.  Inside the `helloworld9999` function, add a statement to `print(\"hello world\")`. The new function will be appended to the end of the file.\n\n**3. File Impact Analysis:**\n*   **Files to Modify:**\n    *   `main.py`\n*   **Files to Create:**\n    *   None\n\n**4. Rationale and Context Map:**\n*   `main.py`: This file will be modified to include the new `helloworld9999` function as per the user's request.\n\n<files_to_edit>\nmain.py\n</files_to_edit>",
      "chatmode": "ask",
      "edit_format": "ask"
    },
    {
      "role": "coding_agent",
      "content": "Okay, I will add the `helloworld9999` function to `main.py`. Here is the plan:\n\n1.  Add the `helloworld9999` function, which prints \"hello world\", to the end of `main.py`.\n\nHere is the required *SEARCH/REPLACE* block:\n\n```python\nmain.py\n<<<<<<< SEARCH\n# Run the calculator\ncalculator()\n=======\n# Run the calculator\ncalculator()\n\ndef helloworld9999():\n    print(\"hello world\")\n>>>>>>> REPLACE\n```",
      "chatmode": "code",
      "edit_format": "diff-fenced"
    },
    {
      "role": "user",
      "content": "I committed the changes with git hash ed87f0c & commit msg: feat: Add helloworld9999 function",
      "chatmode": "code",
      "edit_format": "diff-fenced"
    },
    {
      "role": "coding_agent",
      "content": "Ok.",
      "chatmode": "code",
      "edit_format": "diff-fenced"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions