Inference gateway integration#22
Merged
Merged
Conversation
rektdeckard
approved these changes
Sep 19, 2025
rektdeckard
left a comment
Contributor
There was a problem hiding this comment.
Nice! Have not run the agent, but looks good
Comment on lines
+35
to
+50
| # To add tools, use the @function_tool decorator. | ||
| # Here's an example that adds a simple weather tool. | ||
| # You also have to add `from livekit.agents.llm import function_tool, RunContext` to the top of this file | ||
| # @function_tool | ||
| # async def lookup_weather(self, context: RunContext, location: str): | ||
| # """Use this tool to look up current weather information in the given location. | ||
| # | ||
| # If the location is not supported by the weather service, the tool will indicate this. You must tell the user the location's weather is unavailable. | ||
| # | ||
| # Args: | ||
| # location: The location to look up weather information for (e.g. city name) | ||
| # """ | ||
| # | ||
| # logger.info(f"Looking up weather for {location}") | ||
| # | ||
| # return "sunny with a temperature of 70 degrees." |
Contributor
There was a problem hiding this comment.
Might be extra clear here to link to tool call docs page and to state that the return value is passed to LLM node?
| ```bash | ||
| lk app env -w .env.local | ||
| lk cloud auth | ||
| lk app env -w -d .env.local |
Contributor
There was a problem hiding this comment.
Just my preference, but I like to add the long form so it's more obvious what each does:
lk app env --write --destination .env.local
134cea0 to
69505ad
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.