flock-core 0.4.0b9__py3-none-any.whl → 0.4.0b10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of flock-core might be problematic. Click here for more details.

@@ -65,3 +65,35 @@ def get_article_by_id(article_id: str) -> dict:
65
65
  response = client.get(url)
66
66
  response.raise_for_status()
67
67
  return response.json()["article"]
68
+
69
+
70
+ def get_articles() -> list[dict]:
71
+ """Get all articles."""
72
+ ZENDESK_LOCALE = os.getenv("ZENDESK_ARTICLE_LOCALE")
73
+ ZENDESK_SUBDOMAIN = os.getenv("ZENDESK_SUBDOMAIN_ARTICLE")
74
+ BASE_URL = f"https://{ZENDESK_SUBDOMAIN}.zendesk.com"
75
+ url = f"{BASE_URL}/api/v2/help_center/{ZENDESK_LOCALE}/articles.json"
76
+ with httpx.Client(headers=HEADERS, timeout=30.0) as client:
77
+ response = client.get(url)
78
+ response.raise_for_status()
79
+ return response.json()["articles"]
80
+
81
+
82
+ def search_articles(query: str) -> list[dict]:
83
+ """Search Zendesk Help Center articles using a query string."""
84
+ ZENDESK_LOCALE = os.getenv("ZENDESK_ARTICLE_LOCALE") # e.g., "en-us"
85
+ ZENDESK_SUBDOMAIN = os.getenv("ZENDESK_SUBDOMAIN_ARTICLE")
86
+ BASE_URL = f"https://{ZENDESK_SUBDOMAIN}.zendesk.com"
87
+ url = f"{BASE_URL}/api/v2/help_center/articles/search.json"
88
+
89
+ params = {
90
+ "query": query,
91
+ "locale": ZENDESK_LOCALE,
92
+ "sort_by": "updated_at",
93
+ "sort_order": "desc",
94
+ }
95
+
96
+ with httpx.Client(headers=HEADERS, timeout=30.0) as client:
97
+ response = client.get(url, params=params)
98
+ response.raise_for_status()
99
+ return response.json().get("results", [])
@@ -52,7 +52,7 @@ def init_console(clear_screen: bool = True):
52
52
  │ ▒█▀▀▀ █░░ █▀▀█ █▀▀ █░█ │
53
53
  │ ▒█▀▀▀ █░░ █░░█ █░░ █▀▄ │
54
54
  │ ▒█░░░ ▀▀▀ ▀▀▀▀ ▀▀▀ ▀░▀ │
55
- ╰━━━━━━━━v{__version__}━━━━━━━━╯
55
+ ╰━━━━━━━━v{__version__}━━━━━━━╯
56
56
  🦆 🐤 🐧 🐓
57
57
  """,
58
58
  justify="center",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flock-core
3
- Version: 0.4.0b9
3
+ Version: 0.4.0b10
4
4
  Summary: Declarative LLM Orchestration at Scale
5
5
  Author-email: Andre Ratzenberger <andre.ratzenberger@whiteduck.de>
6
6
  License-File: LICENSE
@@ -68,9 +68,9 @@ flock/core/tools/azure_tools.py,sha256=hwLnI2gsEq6QzUoWj5eCGDKTdXY1XUf6K-H5Uwva2
68
68
  flock/core/tools/basic_tools.py,sha256=Ye7nlI4RRkqWRy8nH9CKuItBmh_ZXxUpouGnCOfx0s0,9050
69
69
  flock/core/tools/llm_tools.py,sha256=Bdt4Dpur5dGpxd2KFEQyxjfZazvW1HCDKY6ydMj6UgQ,21811
70
70
  flock/core/tools/markdown_tools.py,sha256=W6fGM48yGHbifVlaOk1jOtVcybfRbRmf20VbDOZv8S4,6031
71
- flock/core/tools/zendesk_tools.py,sha256=0JRD48Uu27Hrb3aqVSvIieZ1kK6R-WUr2UzCgo9jDhk,2314
71
+ flock/core/tools/zendesk_tools.py,sha256=deZAyUi9j-_yZaTayLQVJaFXIqIct-P6C8IGN5UU_tM,3528
72
72
  flock/core/tools/dev_tools/github.py,sha256=a2OTPXS7kWOVA4zrZHynQDcsmEi4Pac5MfSjQOLePzA,5308
73
- flock/core/util/cli_helper.py,sha256=mbxFhAGDES1AySbz5D672Az-EWk88FIvtFIGJMEp6fc,49800
73
+ flock/core/util/cli_helper.py,sha256=P3-lncS1J78MuPpDQ0D8qmfxMTCRxKkGdo9QRkzrp6A,49797
74
74
  flock/core/util/file_path_utils.py,sha256=Odf7uU32C-x1KNighbNERSiMtkzW4h8laABIoFK7A5M,6246
75
75
  flock/core/util/hydrator.py,sha256=6qNwOwCZB7r6y25BZ--0PGofrAlfMaXbDKFQeP5NLts,11196
76
76
  flock/core/util/input_resolver.py,sha256=g9vDPdY4OH-G7qjas5ksGEHueokHGFPMoLOvC-ngeLo,5984
@@ -439,8 +439,8 @@ flock/workflow/activities.py,sha256=eVZDnxGJl_quNO-UTV3YgvTV8LrRaHN3QDAA1ANKzac,
439
439
  flock/workflow/agent_activities.py,sha256=NhBZscflEf2IMfSRa_pBM_TRP7uVEF_O0ROvWZ33eDc,963
440
440
  flock/workflow/temporal_setup.py,sha256=VWBgmBgfTBjwM5ruS_dVpA5AVxx6EZ7oFPGw4j3m0l0,1091
441
441
  flock/workflow/workflow.py,sha256=I9MryXW_bqYVTHx-nl2epbTqeRy27CAWHHA7ZZA0nAk,1696
442
- flock_core-0.4.0b9.dist-info/METADATA,sha256=wwCWOuSp3Aq37T7bTTGNCrkzT7IJsvynCz-7a0rFKM8,21100
443
- flock_core-0.4.0b9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
444
- flock_core-0.4.0b9.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
445
- flock_core-0.4.0b9.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
446
- flock_core-0.4.0b9.dist-info/RECORD,,
442
+ flock_core-0.4.0b10.dist-info/METADATA,sha256=ahnhPkvyNeFFs6vE37iTywwPJ3ak9kMEEgk7NpjHLjQ,21101
443
+ flock_core-0.4.0b10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
444
+ flock_core-0.4.0b10.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
445
+ flock_core-0.4.0b10.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
446
+ flock_core-0.4.0b10.dist-info/RECORD,,