Update

agent: populate function call ids if missing (#28)

Hyang-Ah Hana Kim
2 months ago

Commit: 4dcca49

Date: July 11, 2025 at 2:56 PM

genai.FunctionCall and FunctionResponse's ID fields are optional.

But LLM Agent relies on it when locating matching FunctionCall and

FunctionResponse. During post-processing, check the field, and assigning

the ids from client-side if missing. When they are used in the subsequent

LLM request creation, we clear them to minimize LLM model's confusion.