Skip to content

Reorganize workflow examples and improve code structure #16

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

forrestIsRunning
Copy link
Contributor

Changes:

  1. Reorganized workflow example files to better reflect their purposes
    • Moved main() to main.go
    • Renamed original main.go to simple_workflow_example.go
  2. Improved function naming to follow Go conventions
  3. Added two different workflow examples:
    • A simple workflow without explicit task management
    • A complex workflow with multiple tasks and proper workflow management

This PR improves code organization and makes the examples more clear for users to understand the different ways to use the SDK.

@@ -39,17 +47,13 @@ func workflow_example() {
})
}

llmSpan, err := traceloop.LogPrompt(
ctx,
llmSpan, err := factGenTask.LogPrompt(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That won't work. Have you tested this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants