juanmaguitar commited on
Commit
c7a3e0f
·
1 Parent(s): 9dee4c2

Fixed type for credentials

Browse files
tools/blog_generator.py CHANGED
@@ -9,7 +9,7 @@ class BlogGeneratorTool(Tool):
9
  'topic': {'type': 'string', 'description': 'The topic to write about'},
10
  'style': {'type': 'string', 'description': 'Writing style: casual, professional, or technical. Default is professional'}
11
  }
12
- output_type = "dict"
13
 
14
  def __init__(self, model):
15
  super().__init__()
 
9
  'topic': {'type': 'string', 'description': 'The topic to write about'},
10
  'style': {'type': 'string', 'description': 'Writing style: casual, professional, or technical. Default is professional'}
11
  }
12
+ output_type = "object"
13
 
14
  def __init__(self, model):
15
  super().__init__()
tools/wordpress_auth.py CHANGED
@@ -8,11 +8,11 @@ class WordPressAuthTool(Tool):
8
  inputs = {
9
  'action': {'type': 'string', 'description': 'Action to perform: set_credentials or get_credentials'},
10
  'credentials': {
11
- 'type': 'dict',
12
  'description': 'WordPress credentials dictionary containing site_url, username, and app_password'
13
  }
14
  }
15
- output_type = "dict"
16
 
17
  def __init__(self):
18
  super().__init__()
 
8
  inputs = {
9
  'action': {'type': 'string', 'description': 'Action to perform: set_credentials or get_credentials'},
10
  'credentials': {
11
+ 'type': 'object',
12
  'description': 'WordPress credentials dictionary containing site_url, username, and app_password'
13
  }
14
  }
15
+ output_type = "object"
16
 
17
  def __init__(self):
18
  super().__init__()
tools/wordpress_post.py CHANGED
@@ -12,7 +12,7 @@ class WordPressPostTool(Tool):
12
  'content': {'type': 'string', 'description': 'The content of the blog post in HTML format'},
13
  'status': {'type': 'string', 'description': 'Post status: publish, draft, or private. Default is publish'}
14
  }
15
- output_type = "dict"
16
 
17
  def __init__(self, auth_tool):
18
  super().__init__()
 
12
  'content': {'type': 'string', 'description': 'The content of the blog post in HTML format'},
13
  'status': {'type': 'string', 'description': 'Post status: publish, draft, or private. Default is publish'}
14
  }
15
+ output_type = "object"
16
 
17
  def __init__(self, auth_tool):
18
  super().__init__()