Skip to content
Merged
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ROOT_LOGGER_NAME = "autogen_core"
"""str: Logger name used for structured event logging"""
"""str: Logger name used for root logger"""

EVENT_LOGGER_NAME = "autogen_core.events"
"""str: Logger name used for structured event logging"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def get_required_params(typed_signature: inspect.Signature) -> List[str]:
"""Get the required parameters of a function

Args:
signature: The signature of the function as returned by inspect.signature
typed_signature: The signature of the function as returned by inspect.signature

Returns:
A list of the required parameters of the function
Expand All @@ -167,7 +167,7 @@ def get_default_values(typed_signature: inspect.Signature) -> Dict[str, Any]:
"""Get default values of parameters of a function

Args:
signature: The signature of the function as returned by inspect.signature
typed_signature: The signature of the function as returned by inspect.signature

Returns:
A dictionary of the default values of the parameters of the function
Expand All @@ -184,7 +184,8 @@ def get_parameters(

Args:
required: The required parameters of the function
hints: The type hints of the function as returned by typing.get_type_hints
param_annotations: A dictionary of the type annotations of the parameters of the function
default_values: The default values of the parameters of the function

Returns:
A Pydantic model for the parameters of the function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
raise AssertionError("message parameter not found in function signature")

if "return" not in type_hints:
raise AssertionError("return not found in function signature")
raise AssertionError("return parameter not found in function signature")

Check warning on line 126 in python/packages/autogen-core/src/autogen_core/_routed_agent.py

View check run for this annotation

Codecov / codecov/patch

python/packages/autogen-core/src/autogen_core/_routed_agent.py#L126

Added line #L126 was not covered by tests

# Get the type of the message parameter
target_types = get_types(type_hints["message"])
Expand Down Expand Up @@ -243,7 +243,7 @@
raise AssertionError("message parameter not found in function signature")

if "return" not in type_hints:
raise AssertionError("return not found in function signature")
raise AssertionError("return parameter not found in function signature")

Check warning on line 246 in python/packages/autogen-core/src/autogen_core/_routed_agent.py

View check run for this annotation

Codecov / codecov/patch

python/packages/autogen-core/src/autogen_core/_routed_agent.py#L246

Added line #L246 was not covered by tests

# Get the type of the message parameter
target_types = get_types(type_hints["message"])
Expand Down Expand Up @@ -363,7 +363,7 @@
raise AssertionError("message parameter not found in function signature")

if "return" not in type_hints:
raise AssertionError("return not found in function signature")
raise AssertionError("return parameter not found in function signature")

Check warning on line 366 in python/packages/autogen-core/src/autogen_core/_routed_agent.py

View check run for this annotation

Codecov / codecov/patch

python/packages/autogen-core/src/autogen_core/_routed_agent.py#L366

Added line #L366 was not covered by tests

# Get the type of the message parameter
target_types = get_types(type_hints["message"])
Expand Down
2 changes: 1 addition & 1 deletion python/packages/autogen-core/src/autogen_core/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def __init__(
completion_tokens: int,
**kwargs: Any,
) -> None:
"""To be used by model to log the call to the LLM.
"""To be used by model clients to log the end of a stream.

Args:
response (Dict[str, Any]): The response of the call. Must be json serializable.
Expand Down
Loading