---
title: "updateUsage(input:output:)"
framework: foundationmodels
role: symbol
role_heading: Type Method
path: "foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.enum/updateusage(input:output:)"
---

# updateUsage(input:output:)

## Declaration

```swift
static func updateUsage(input: LanguageModelExecutorGenerationChannel.Usage.Input, output: LanguageModelExecutorGenerationChannel.Usage.Output) -> 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)
- [updateMetadata(_:)](foundationmodels/languagemodelexecutorgenerationchannel/toolcalls/action-swift.enum/updatemetadata(_:)-swift.type.method.md)
