Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/sdk/agentwork_sdk.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import requests
import os

class AgentWorkAPI:
def __init__(self, base_url=None):
self.base_url = base_url or os.getenv('AGENTWORK_API_URL', 'http://localhost:8000/v1')

def create_inbox(self):
url = f'{self.base_url}/inbox'
response = requests.post(url)
if response.status_code == 200:
return response.json()
else:
response.raise_for_status()
24 changes: 24 additions & 0 deletions src/sdk/openapi_spec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
openapi: 3.0.1
info:
title: AgentWork API
description: API for managing email, calendar, and docs for AI agents
version: 1.0.0
servers:
- url: http://localhost:8000/v1
paths:
/inbox:
post:
summary: Create a new inbox
operationId: createInbox
responses:
'200':
description: Inbox created successfully
content:
application/json:
schema:
type: object
properties:
inboxId:
type: string
message:
type: string
19 changes: 19 additions & 0 deletions src/sdk/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from setuptools import setup, find_packages

setup(
name='agentwork_sdk',
version='0.1.0',
packages=find_packages(),
install_requires=[
'requests',
],
description='Python SDK for interacting with AgentWork API',
author='Your Name',
author_email='your.email@example.com',
url='https://github.com/dmb4086/agentwork-infrastructure',
classifiers=[
'Programming Language :: Python :: 3',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
],
)