microsoft / autogen

A programming framework for agentic AI. Discord: https://aka.ms/autogen-dc. Roadmap: https://aka.ms/autogen-roadmap
https://microsoft.github.io/autogen/
Creative Commons Attribution 4.0 International
28.12k stars 4.11k forks source link

[Issue]: docs improvement for conversation Pattern #2745

Open amzker opened 1 month ago

amzker commented 1 month ago

Describe the issue

image

guys, please specify like summary_args={"summar_prompt": "Your prompt here"}

because line in image shows like we need to do initiate_chat( summay_prompt = )

i needed to look into source code


    @staticmethod
    def _reflection_with_llm_as_summary(sender, recipient, summary_args):
        prompt = summary_args.get("summary_prompt")
        prompt = ConversableAgent.DEFAULT_SUMMARY_PROMPT if prompt is None else prompt
        if not isinstance(prompt, str):
            raise ValueError("The summary_prompt must be a string.")

Steps to reproduce

No response

Screenshots and logs

No response

Additional Information

No response

ekzhu commented 1 month ago

You are welcome to submit a PR to fix it.

amzker commented 1 month ago

sure