function_calling_utils Module

Functions

kernel_function_metadata_to_function_call_format

Convert the kernel function metadata to function calling format.

kernel_function_metadata_to_function_call_format(metadata: KernelFunctionMetadata) -> dict[str, Any]

Parameters

Name Description
metadata
Required

merge_function_results

Combine multiple function result content types to one chat message content type.

This method combines the FunctionResultContent items from separate ChatMessageContent messages, and is used in the event that the context.terminate = True condition is met.

merge_function_results(messages: list[ChatMessageContent]) -> list[ChatMessageContent]

Parameters

Name Description
messages
Required

update_settings_from_function_call_configuration

Update the settings from a FunctionChoiceConfiguration.

update_settings_from_function_call_configuration(function_choice_configuration: FunctionCallChoiceConfiguration, settings: PromptExecutionSettings, type: FunctionChoiceType) -> None

Parameters

Name Description
function_choice_configuration
Required
settings
Required
type
Required