-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
47 lines (44 loc) · 1.49 KB
/
Copy pathopenapi.yaml
File metadata and controls
47 lines (44 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
openapi: "3.1.0"
info:
title: hawk-sdk-python — Python SDK API Reference
description: |
Python SDK for the hawk daemon HTTP API. Provides sync and async clients,
SSE streaming, tool decorator, and workflow builder.
This is a client SDK — it connects to the hawk daemon at http://localhost:4590.
See hawk's api/openapi.yaml for the server-side contract.
version: "0.1.0"
license:
name: MIT
url: https://github.com/GrayCodeAI/hawk-sdk-python/blob/main/LICENSE
contact:
url: https://github.com/GrayCodeAI/hawk-sdk-python
servers:
- url: http://localhost:4590
description: Hawk daemon (managed by hawk, not this SDK)
x-sdk-api:
package: hawk
classes:
- name: HawkClient
description: Synchronous client
constructor_args:
base_url: string
api_key: string
methods:
- health()
- chat(message, **kwargs)
- chat_stream(message, **kwargs)
- list_sessions(limit, offset)
- get_session(session_id)
- delete_session(session_id)
- get_session_messages(session_id, limit, offset)
- stats()
- name: AsyncHawkClient
description: Asynchronous client (same methods with async/await)
- name: Agent
description: Higher-level conversation agent with session history
- name: Workflow
description: Multi-step workflow builder with retry config
decorators:
- name: tool
description: Decorator to register a function as a hawk tool
usage: "@tool()"