-
Notifications
You must be signed in to change notification settings - Fork 12
feat: showcase text generation and thinking steps from suggested prompts #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feat-ai-apps-thinking-steps
Are you sure you want to change the base?
Conversation
| # The second example shows detailed thinking steps similar to tool calls | ||
| else: | ||
| streamer.append( | ||
| chunks=[ | ||
| MarkdownTextChunk( | ||
| text="Hello.\nI have received the task. ", | ||
| ), | ||
| MarkdownTextChunk( | ||
| text="This task appears manageable.\nThat is good.", | ||
| ), | ||
| TaskUpdateChunk( | ||
| id="001", | ||
| title="Understanding the task...", | ||
| status="in_progress", | ||
| details="- Identifying the goal\n- Identifying constraints", | ||
| ), | ||
| TaskUpdateChunk( | ||
| id="002", | ||
| title="Performing acrobatics...", | ||
| status="pending", | ||
| ), | ||
| ], | ||
| ) | ||
| time.sleep(4) | ||
|
|
||
| streamer.append( | ||
| chunks=[ | ||
| TaskUpdateChunk( | ||
| id="001", | ||
| title="Understanding the task...", | ||
| status="complete", | ||
| details="\n- Pretending this was obvious", | ||
| output="We'll continue to ramble now", | ||
| ), | ||
| TaskUpdateChunk( | ||
| id="002", | ||
| title="Performing acrobatics...", | ||
| status="in_progress", | ||
| ), | ||
| ], | ||
| ) | ||
| time.sleep(4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I've been experimenting with something similar on my own, I like this idea. Featuring what is the agent doing is great like (tools calls or thinking steps)
| ) | ||
|
|
||
| returned_message = call_llm([{"role": "user", "content": text}]) | ||
| returned_message = call_llm(text) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⭐ nice
Type of change
Summary
This PR showcases "chunks" in a chat stream. The example is meant to be quick to understand but perhaps not so meaningful. Related: slackapi/python-slack-sdk#1809
Requirements