Giter Club home page Giter Club logo

Comments (6)

rickyloynd-microsoft avatar rickyloynd-microsoft commented on July 20, 2024

What happens if you just comment out the line that calls add_to_agent and run the same test again?

from autogen.

kev1nzh37 avatar kev1nzh37 commented on July 20, 2024

What happens if you just comment out the line that calls add_to_agent and run the same test again?如果您只是注释掉调用 add_to_agent 的行并再次运行相同的测试,会发生什么?

Thank you. After testing, it seems that the issue is not with Teachability. When I set max_turns to 2 or 3, I found that only the last response does not call the is_termination_msg function.

If I want the last response of each chat to also call the is_termination_msg function, what should I do?

from autogen.

rickyloynd-microsoft avatar rickyloynd-microsoft commented on July 20, 2024

If I want the last response of each chat to also call the is_termination_msg function, what should I do?

I suspect that's not possible because the max_turns condition triggers first. But @ekzhu would know better.

from autogen.

jtoy avatar jtoy commented on July 20, 2024

should both max_turns and is_termination_msg both trigger in this case?

from autogen.

rickyloynd-microsoft avatar rickyloynd-microsoft commented on July 20, 2024

To be more exact, either condition (max_turns or is_termination_msg) will cause the termination here, so it's just a question of which condition is checked first in the code.

from autogen.

ekzhu avatar ekzhu commented on July 20, 2024

If I want the last response of each chat to also call the is_termination_msg function, what should I do?

@kev1nzh37 if the chat is terminated, you will get the messages from the ChatResult object returned. You can run your termination check. It's a weird usage, could you elaborate on your scenario?

from autogen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.