Skip to content

Conversation

@andrewnitu
Copy link
Contributor

@andrewnitu andrewnitu commented Dec 17, 2025

current behaviour

If you do lk agent create without being in a directory with agent code, you get the following error

lk) andrewnitu@Mac my-agents % lk agent create
Using project [staging-andrewnitu-test]
Creating new agent
Detected project type [unknown]
unable to determine project type: project type could not be identified; expected package.json, requirements.txt, pyproject.toml, or lock files, please use a supported project type, or create your own Dockerfile in the current directory

to me this suggests something is wrong with staging-andrewnitu-test. However, the real issue is there is no agent code in the current directory.

after this PR

Same situation as above. Now it is more clear, and also does not print Detected agent language [unknown]

lk) andrewnitu@Mac my-agents % lk agent create
Using project [staging-andrewnitu-test]
Creating new agent deployment
unable to determine agent language: expected package.json, requirements.txt, pyproject.toml, or lock files, please make sure you are inside a directory containing an agent written in a supported language

deploying a real agent:

lk) andrewnitu@Mac my-python-agent % lk agent create
Using project [andrewnitu-test]
Creating new agent deployment
Using secrets file [.env.local]
Detected agent language [python.uv]
Using existing Dockerfile
Using existing .dockerignore

trying to deploy code that is not an agent:

lk) andrewnitu@Mac my-agents % cd meet-test
lk) andrewnitu@Mac meet-test % lk agent create
Using project [andrewnitu-test]
Creating new agent deployment
Using secrets file [.env.local]
Detected agent language [node]
Using existing Dockerfile
Using existing .dockerignore
package @livekit/agents not found in any project files. Are you sure this is an agent?

@CLAassistant
Copy link

CLAassistant commented Dec 17, 2025

CLA assistant check
All committers have signed the CLA.

@andrewnitu andrewnitu force-pushed the andrewnitu/rename-projecttype-to-projectlanguage branch from 09d855b to 152a35a Compare December 17, 2025 23:01
@andrewnitu andrewnitu changed the title rename projecttype -> applanguage change error messages to refer to 'app language' instead of 'project type' Dec 17, 2025
@andrewnitu andrewnitu changed the title change error messages to refer to 'app language' instead of 'project type' Clarify error messages for agent create when no agent in directory Dec 18, 2025
andrewnitu and others added 4 commits December 18, 2025 09:05
Co-authored-by: Kristy Marcinova <kristy.m@me.com>
@andrewnitu andrewnitu merged commit a79f27e into main Dec 18, 2025
9 checks passed
@andrewnitu andrewnitu deleted the andrewnitu/rename-projecttype-to-projectlanguage branch December 18, 2025 18:07
@yoonsio
Copy link
Contributor

yoonsio commented Dec 18, 2025

awesome work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants