Git Product home page Git Product logo

Comments (8)

vasinov avatar vasinov commented on May 31, 2024 1

@collindutter, Indeed, using generators would be better. Wrote up this issue too quickly and had generator and iterable implementations mixed up in my head 😆.

from griptape.

vasinov avatar vasinov commented on May 31, 2024 1

@collindutter subtasks should be emitted for sure also.

from griptape.

vasinov avatar vasinov commented on May 31, 2024 1

Update on the issue: @collindutter is working on this after we dramatically simplified the initial design proposal. Should be added in the next version of Griptape.

from griptape.

collindutter avatar collindutter commented on May 31, 2024

@vasinov Wouldn't implementing __iter__ and __next__ methods require us to iterate over the structure class as opposed to the run method? Might it be better to use generators with yield?

from griptape.

collindutter avatar collindutter commented on May 31, 2024

@vasinov what do you think about emitting subtasks too? Necessary for any user interface that wants to show the entire flow.

from griptape.

collindutter avatar collindutter commented on May 31, 2024

@vasinov we can close this, right?

from griptape.

vasinov avatar vasinov commented on May 31, 2024

Yep, closing.

from griptape.

hyusetiawan avatar hyusetiawan commented on May 31, 2024

@vasinov apologies for bringing up an old thread, but I am not sure how to actually stream the text output? The examples and the event object only support token_count, ex: e.token_count whereas I want to stream the text itself, is there an example I can follow for that?

Screenshot 2023-09-20 at 2 24 12 AM

from griptape.

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.