Skip to content

Commit 42e1066

Browse files
committed
🐛 FIX: Formatting
1 parent 8054ec3 commit 42e1066

File tree

2 files changed

+0
-44
lines changed

2 files changed

+0
-44
lines changed

langbase/__init__.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,6 @@
33
44
This package provides a Python interface to the Langbase API, allowing you to
55
build and deploy AI-powered applications using Langbase's infrastructure.
6-
7-
Basic usage:
8-
9-
```python
10-
from langbase import Langbase
11-
12-
# Initialize the client
13-
lb = Langbase(api_key="your-api-key")
14-
15-
# Run a pipe
16-
response = lb.pipes.run(
17-
name="your-pipe-name",
18-
messages=[
19-
{"role": "system", "content": "You are a helpful assistant."},
20-
{"role": "user", "content": "Tell me about AI."}
21-
]
22-
)
23-
24-
print(response["completion"])
256
```
267
"""
278

langbase/workflow.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -73,31 +73,6 @@ class Workflow:
7373
"""
7474
A workflow execution engine that provides step-based execution with retry logic,
7575
timeouts, and debugging capabilities.
76-
77-
Example:
78-
```python
79-
from langbase import Workflow
80-
81-
# Create a workflow with debugging enabled
82-
workflow = Workflow(debug=True)
83-
84-
# Define and execute steps
85-
async def my_operation():
86-
return "Hello, World!"
87-
88-
result = await workflow.step({
89-
"id": "greeting",
90-
"timeout": 5000, # 5 seconds
91-
"retries": {
92-
"limit": 3,
93-
"delay": 1000, # 1 second
94-
"backoff": "exponential"
95-
},
96-
"run": my_operation
97-
})
98-
99-
print(result) # "Hello, World!"
100-
```
10176
"""
10277

10378
def __init__(self, debug: bool = False):

0 commit comments

Comments
 (0)