flock-core 0.4.0b5__py3-none-any.whl → 0.4.0b7__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.
- flock/core/tools/zendesk_tools.py +59 -0
- {flock_core-0.4.0b5.dist-info → flock_core-0.4.0b7.dist-info}/METADATA +9 -1
- {flock_core-0.4.0b5.dist-info → flock_core-0.4.0b7.dist-info}/RECORD +6 -5
- {flock_core-0.4.0b5.dist-info → flock_core-0.4.0b7.dist-info}/WHEEL +0 -0
- {flock_core-0.4.0b5.dist-info → flock_core-0.4.0b7.dist-info}/entry_points.txt +0 -0
- {flock_core-0.4.0b5.dist-info → flock_core-0.4.0b7.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"""Tools for interacting with Zendesk."""
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
from collections.abc import Generator
|
|
5
|
+
|
|
6
|
+
import httpx
|
|
7
|
+
|
|
8
|
+
ZENDESK_EMAIL = os.getenv("ZENDESK_EMAIL")
|
|
9
|
+
ZENDESK_API_TOKEN = os.getenv("ZENDESK_API_TOKEN")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
AUTH = (f"{ZENDESK_EMAIL}/token", ZENDESK_API_TOKEN)
|
|
13
|
+
HEADERS = {"Accept": "application/json"}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def get_tickets() -> Generator[dict, None, None]:
|
|
17
|
+
"""Get all tickets."""
|
|
18
|
+
ZENDESK_SUBDOMAIN = os.getenv("ZENDESK_SUBDOMAIN_TICKET")
|
|
19
|
+
BASE_URL = f"https://{ZENDESK_SUBDOMAIN}.zendesk.com"
|
|
20
|
+
url = f"{BASE_URL}/api/v2/tickets.json"
|
|
21
|
+
|
|
22
|
+
with httpx.Client(auth=AUTH, headers=HEADERS, timeout=30.0) as client:
|
|
23
|
+
while url:
|
|
24
|
+
response = client.get(url)
|
|
25
|
+
response.raise_for_status()
|
|
26
|
+
|
|
27
|
+
data = response.json()
|
|
28
|
+
tickets = data.get("tickets", [])
|
|
29
|
+
yield from tickets
|
|
30
|
+
|
|
31
|
+
url = data.get("next_page")
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def get_ticket_by_id(ticket_id: str) -> dict:
|
|
35
|
+
"""Get a ticket by ID."""
|
|
36
|
+
ZENDESK_SUBDOMAIN = os.getenv("ZENDESK_SUBDOMAIN_TICKET")
|
|
37
|
+
BASE_URL = f"https://{ZENDESK_SUBDOMAIN}.zendesk.com"
|
|
38
|
+
url = f"{BASE_URL}/api/v2/tickets/{ticket_id}"
|
|
39
|
+
with httpx.Client(auth=AUTH, headers=HEADERS, timeout=30.0) as client:
|
|
40
|
+
response = client.get(url)
|
|
41
|
+
response.raise_for_status()
|
|
42
|
+
return response.json()
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def get_article_by_id(article_id: str) -> dict:
|
|
46
|
+
"""Get an article by ID."""
|
|
47
|
+
ZENDESK_LOCALE = os.getenv("ZENDESK_ARTICLE_LOCALE")
|
|
48
|
+
ZENDESK_SUBDOMAIN = os.getenv("ZENDESK_SUBDOMAIN_ARTICLE")
|
|
49
|
+
BASE_URL = f"https://{ZENDESK_SUBDOMAIN}.zendesk.com"
|
|
50
|
+
url = (
|
|
51
|
+
f"{BASE_URL}/api/v2/help_center/{ZENDESK_LOCALE}/articles/{article_id}"
|
|
52
|
+
)
|
|
53
|
+
with httpx.Client(auth=AUTH, headers=HEADERS, timeout=30.0) as client:
|
|
54
|
+
response = client.get(url)
|
|
55
|
+
response.raise_for_status()
|
|
56
|
+
return response.json()
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
# get_ticket_by_id("366354")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flock-core
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.0b7
|
|
4
4
|
Summary: Declarative LLM Orchestration at Scale
|
|
5
5
|
Author-email: Andre Ratzenberger <andre.ratzenberger@whiteduck.de>
|
|
6
6
|
License-File: LICENSE
|
|
@@ -64,6 +64,14 @@ Description-Content-Type: text/markdown
|
|
|
64
64
|
<a href="https://www.linkedin.com/company/whiteduck" target="_blank"><img alt="LinkedIn" src="https://img.shields.io/badge/linkedin-%230077B5.svg?style=for-the-badge&logo=linkedin&logoColor=white&label=whiteduck"></a>
|
|
65
65
|
<a href="https://bsky.app/profile/whiteduck-gmbh.bsky.social" target="_blank"><img alt="Bluesky" src="https://img.shields.io/badge/bluesky-Follow-blue?style=for-the-badge&logo=bluesky&logoColor=%23fff&color=%23333&labelColor=%230285FF&label=whiteduck-gmbh"></a>
|
|
66
66
|
|
|
67
|
+
🐤 Flock 0.4.0 currently in beta - use `pip install flock-core==0.4.0b5` 🐤
|
|
68
|
+
|
|
69
|
+
🐤 `pip install flock-core` will install the latest non-beta version 🐤
|
|
70
|
+
|
|
71
|
+
🐤 Expected Release for 0.4.0 `Magpie`: End of April 2025 🐤
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
67
75
|
## Overview
|
|
68
76
|
|
|
69
77
|
Flock is a framework for orchestrating LLM-powered agents. It leverages a **declarative approach** where you simply specify what each agent needs as input and what it produces as output, without having to write lengthy, brittle prompts. Under the hood, Flock transforms these declarations into robust workflows, using cutting-edge components such as Temporal and DSPy to handle fault tolerance, state management, and error recovery.
|
|
@@ -68,6 +68,7 @@ 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=qCcE6CrGCKcJUaQO_ZQPS2AcHlox_50bGaODbuMfo4I,1859
|
|
71
72
|
flock/core/tools/dev_tools/github.py,sha256=a2OTPXS7kWOVA4zrZHynQDcsmEi4Pac5MfSjQOLePzA,5308
|
|
72
73
|
flock/core/util/cli_helper.py,sha256=mbxFhAGDES1AySbz5D672Az-EWk88FIvtFIGJMEp6fc,49800
|
|
73
74
|
flock/core/util/file_path_utils.py,sha256=Odf7uU32C-x1KNighbNERSiMtkzW4h8laABIoFK7A5M,6246
|
|
@@ -438,8 +439,8 @@ flock/workflow/activities.py,sha256=eVZDnxGJl_quNO-UTV3YgvTV8LrRaHN3QDAA1ANKzac,
|
|
|
438
439
|
flock/workflow/agent_activities.py,sha256=NhBZscflEf2IMfSRa_pBM_TRP7uVEF_O0ROvWZ33eDc,963
|
|
439
440
|
flock/workflow/temporal_setup.py,sha256=VWBgmBgfTBjwM5ruS_dVpA5AVxx6EZ7oFPGw4j3m0l0,1091
|
|
440
441
|
flock/workflow/workflow.py,sha256=I9MryXW_bqYVTHx-nl2epbTqeRy27CAWHHA7ZZA0nAk,1696
|
|
441
|
-
flock_core-0.4.
|
|
442
|
-
flock_core-0.4.
|
|
443
|
-
flock_core-0.4.
|
|
444
|
-
flock_core-0.4.
|
|
445
|
-
flock_core-0.4.
|
|
442
|
+
flock_core-0.4.0b7.dist-info/METADATA,sha256=F6g-4ZtXeV6ZdbsF4bhjV7vQE9883-MRy8UtqbdJXIw,21100
|
|
443
|
+
flock_core-0.4.0b7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
444
|
+
flock_core-0.4.0b7.dist-info/entry_points.txt,sha256=rWaS5KSpkTmWySURGFZk6PhbJ87TmvcFQDi2uzjlagQ,37
|
|
445
|
+
flock_core-0.4.0b7.dist-info/licenses/LICENSE,sha256=iYEqWy0wjULzM9GAERaybP4LBiPeu7Z1NEliLUdJKSc,1072
|
|
446
|
+
flock_core-0.4.0b7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|