---
title: "updateMetadata(_:)"
framework: foundationmodels
role: symbol
role_heading: Type Method
path: "foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.enum/updatemetadata(_:)-swift.type.method"
---

# updateMetadata(_:)

## Declaration

```swift
static func updateMetadata(_ values: [String : any Sendable & Codable & Equatable]) -> LanguageModelExecutorGenerationChannel.ToolCalls.Action
```

## See Also

### Tool calling for action constants

- [toolCall(id:name:action:)](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.enum/toolcall(id:name:action:).md)
- [updateUsage(input:output:)](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.enum/updateusage(input:output:).md)
