Skip to content

Python: KernelArguments should be optional if there are no arguments #6930

@madsbolaris

Description

@madsbolaris

When there are no arguments the developer wants to pass in, the arguments parameter should be optional

This is what it looks like today

result = (await chat_completion.get_chat_message_contents(
    chat_history=history,
    settings=execution_settings,
    kernel=kernel,
    arguments=KernelArguments(),
))[0]

I should be able to write instead...

result = (await chat_completion.get_chat_message_contents(
    chat_history=history,
    settings=execution_settings,
    kernel=kernel,
))[0]

Metadata

Metadata

Labels

pythonPull requests for the Python Semantic Kernel

Type

No type

Projects

Status

Sprint: Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions