forked from themanojdesai/python-a2a
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
53 lines (48 loc) · 1.11 KB
/
Copy path__init__.py
File metadata and controls
53 lines (48 loc) · 1.11 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
48
49
50
51
52
53
"""
Utility functions for the A2A protocol.
"""
# Import and re-export utility functions for easy access
from .formatting import (
format_message_as_text,
format_conversation_as_text,
pretty_print_message,
pretty_print_conversation
)
from .validation import (
validate_message,
validate_conversation,
is_valid_message,
is_valid_conversation
)
from .conversion import (
create_text_message,
create_function_call,
create_function_response,
create_error_message,
format_function_params,
conversation_to_messages
)
# Import decorators
from .decorators import (
skill,
agent
)
# Make everything available at the utils level
__all__ = [
'format_message_as_text',
'format_conversation_as_text',
'pretty_print_message',
'pretty_print_conversation',
'validate_message',
'validate_conversation',
'is_valid_message',
'is_valid_conversation',
'create_text_message',
'create_function_call',
'create_function_response',
'create_error_message',
'format_function_params',
'conversation_to_messages',
'skill',
'agent'
]