action_group_utils Module
Functions
kernel_function_metadata_to_bedrock_function_schema
Convert the kernel function metadata to bedrock function schema.
kernel_function_metadata_to_bedrock_function_schema(function_metadata: KernelFunctionMetadata) -> dict[str, Any]
Parameters
| Name | Description |
|---|---|
|
function_metadata
Required
|
|
kernel_function_parameter_to_bedrock_function_parameter
Convert the kernel function parameters to bedrock function parameters.
kernel_function_parameter_to_bedrock_function_parameter(parameter: KernelParameterMetadata)
Parameters
| Name | Description |
|---|---|
|
parameter
Required
|
|
kernel_function_parameter_type_to_bedrock_function_parameter_type
Convert the kernel function parameter type to bedrock function parameter type.
kernel_function_parameter_type_to_bedrock_function_parameter_type(schema_data: dict[str, Any] | None) -> str
Parameters
| Name | Description |
|---|---|
|
schema_data
Required
|
|
kernel_function_to_bedrock_function_schema
Convert the kernel function to bedrock function schema.
kernel_function_to_bedrock_function_schema(function_choice_configuration: FunctionCallChoiceConfiguration) -> dict[str, Any]
Parameters
| Name | Description |
|---|---|
|
function_choice_configuration
Required
|
|
parse_function_result_contents
Parse the function result contents to be returned to the agent in the session state.
parse_function_result_contents(function_result_contents: list[FunctionResultContent]) -> list[dict[str, Any]]
Parameters
| Name | Description |
|---|---|
|
function_result_contents
Required
|
|
parse_return_control_payload
Parse the return control payload to a list of function call contents for the kernel.
parse_return_control_payload(return_control_payload: dict[str, Any]) -> list[FunctionCallContent]
Parameters
| Name | Description |
|---|---|
|
return_control_payload
Required
|
|