Skip to content

Commit

Permalink
Changelog and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovidiu Rusu committed Jan 2, 2025
1 parent e7b9b80 commit a690b70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Unreleased

- Add `sema4ai.fixWrongAgentImport` command
- Show Output button when there are errors while running action or agent package commands
- Show datasource configuration status in the tree
- Add Data Sources to the Packages tree
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

HEADLESS_BROWSER = not os.getenv("HEADLESS_BROWSER")


@action
def get_wikipedia_article_summary(article_url: str) -> str:
"""
Expand All @@ -31,10 +32,10 @@ def get_wikipedia_article_summary(article_url: str) -> str:
page.wait_for_load_state("domcontentloaded")
page.wait_for_load_state("networkidle")

paragraphs = page.query_selector_all('.mw-content-ltr>p:not(.mw-empty-elt)')
paragraphs = page.query_selector_all(".mw-content-ltr>p:not(.mw-empty-elt)")
summary = paragraphs[0].inner_text()

# Pretty print for log
print(summary)

return summary
return summary

0 comments on commit a690b70

Please sign in to comment.